2.9.0 • Published 4 years ago

@chemistry/elements v2.9.0

Weekly downloads
4
License
MIT
Repository
github
Last release
4 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

4 years ago

2.8.16

4 years ago

2.8.12

4 years ago

2.8.11

4 years ago

2.8.10

4 years ago

2.8.9

4 years ago

2.8.3

4 years ago

2.8.5

4 years ago

2.8.6

4 years ago

2.8.8

4 years ago

2.7.28

4 years ago

2.8.1

4 years ago

2.8.0

4 years ago

2.7.25

4 years ago

2.7.12

4 years ago

2.7.10

4 years ago

2.7.0

4 years ago

2.5.1

5 years ago

2.5.0

5 years ago

2.2.3

5 years ago

2.2.1

5 years ago

2.2.0

5 years ago

1.3.3

6 years ago

1.3.2

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago