A library that contains all data from all elements in the periodic table.
- Atomic mass [unified atomic mass unit (
u
)] - Atomic radius [picometre (
pm
)] - Ionization energy & electron affinity [electronVolts (
eV
)] - Density [grams per cubic centimeter (
g/cm3
) ]
Every and each chemical element will have the next data:
{
name,
symbol,
atomic_number,
standard_number,
standard_state,
atomic_mass,
electron_configuration,
oxidation_states,
electronegativity: {
pauling_scale,
allen_scale
},
atomic_radius: {
van_der_waals,
empirical,
covalent
},
ionization_energy,
electron_affinity,
melting_point: {
kelvin,
celsius,
fahrenheit
},
boiling_point: {
kelvin,
celsius,
fahrenheit
},
density,
discovered: {
by,
year
},
period,
group: {
block,
group_A,
group_B,
classification
}
}
- Install package using:
npm i @kykal/chemistry
- You can import the elements to your file in two ways:
- If you will use a certain amount of elements, for example:
const { helium, argon, ..., uranium } = require('@kykal/chemistry'); console.log( helium.discovered.by ); //Output: Pierre-Jules-Cesar Janssen
- If you will use all elements:
Note: to make it easier for users, the index 0 is null. This way you can call the element using its atomic number. ;)
const { element } = require('@kykal/chemistry'); //Import all elements in an array console.log( element[1].melting_point ); //Hydrogen //Output: { kelvin: 13.81, celsius: -259.34, fahrenheit: -434.81 }
All this information was gathered thanks to:
- National Center for Biotechnology Information (2021). PubChem Periodic Table of Elements. Retrieved September 25, 2021 from https://pubchem.ncbi.nlm.nih.gov/periodic-table/.