Periodic Table of elements
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
etc
src
.editorconfig
.gitignore
.npmignore
.travis.yml
README.md
package-lock.json
package.json
tsconfig.json
tslint.json

README.md

@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