2.9.0 • Published 6 years ago

@chemistry/elements v2.9.0

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

@chemistry/elements

npm version Build Status codecov License: MIT

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

Install

npm install @chemistry/elements

Getting started:

import { ChemElement, ChemElementData } from '@chemistry/elements';

const hydrogen = ChemElement.getById(1);
console.log(hydrogen);
//   { id: 1, symbol: "H", RCow: 0.37, RVdW: 1.2, maxBonds: 1, mass: 1.00794, name: "Hydrogen", posX: 1, posY: 1, color: "#FFFFFF", color2: "#808080" }

const carbon = ChemElement.getBySymbol('C');
console.log(carbon);
//   { id: 6, symbol: "C", RCow: 0.77, RVdW: 1.7, maxBonds: 4, mass: 12.0107, name: "Carbon", posX: 2, posY: 14, color: "#909090", color2: "#000000" }

const elementsList = ChemElement.getAllSymbols();
console.log(elementsList);
// [H, He, Li, Be, B, C, N, O, F, Ne, .... ]

// Print out all list of elements
console.log(ChemElementData[9]);
// { id: 7, symbol: "N", RCow: 0.75, RVdW: 1.6, maxBonds: 4, mass: 14.0067, name: "Nitrogen", posX: 2, posY: 15, color: "#3050F8", color2: "#304FF7" }

Contain following info about Carbon:

  • Number in periodic table: 6
  • Symbol of Element: C
  • Element name: Carbon
  • Element mass: 12.0107
  • Covalent Radius of element: 0.77
  • van der Waals radius of the element: 1.7
  • Element max Bonds: 4
  • Element color: 909090
  • Element color dark: 000000
  • Position X in periodic Table: 2
  • Position Y in periodic Table: 14

Commands:

  • Build project: npm run build
2.9.0

6 years ago

2.8.16

6 years ago

2.8.12

6 years ago

2.8.11

6 years ago

2.8.10

6 years ago

2.8.9

6 years ago

2.8.3

6 years ago

2.8.5

6 years ago

2.8.6

6 years ago

2.8.8

6 years ago

2.7.28

6 years ago

2.8.1

6 years ago

2.8.0

6 years ago

2.7.25

6 years ago

2.7.12

6 years ago

2.7.10

6 years ago

2.7.0

6 years ago

2.5.1

7 years ago

2.5.0

7 years ago

2.2.3

7 years ago

2.2.1

7 years ago

2.2.0

7 years ago

1.3.3

7 years ago

1.3.2

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.0

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago