JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 68
  • Score
    100M100P100Q68742F
  • License MIT

Chemical elements information

Package Exports

  • @chemistry/elements

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@chemistry/elements) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@chemistry/elements

npm version Build Status codecov

Library that contains information about elements In periodic table: Number, Symbol, Name, Mass, max Bonds Count, Covalent & van der Waals Radius, typical color;

Technical description:

  • Typescript 2.1 (export typings)
  • Isomorphic (can be used with node & with browsers )
  • Compiled to UMD (can be used as CommonJS, AMD & direct module include syntax)

Include following clases:

  • Elements

How to use:

import { Element } from 'elements';
let hydrogen = Element.getElementById(1);
console.log('Element #1 name:', hydrogen.name); // Hydrogen

let carbon = Element.getElementByName('C');
console.log('Carbon Covalent radius:', carbon.RCow); // 0.77

Commands:

  • Run unit tests: npm run test
  • Start TDD flow: npm run tdd
  • Run linter verification: npm run lint
  • Run linter verification & fix: npm run lintfix
  • Build project: npm run build