Skip to content

Kykal/chemistry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Node.JS

What is this?

A library that contains all data from all elements in the periodic table.

Units

  • Atomic mass [unified atomic mass unit (u)]
  • Atomic radius [picometre (pm)]
  • Ionization energy & electron affinity [electronVolts (eV)]
  • Density [grams per cubic centimeter (g/cm3) ]

What info does it contain?

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
   }
}

How to import

  1. Install package using:
    npm i @kykal/chemistry
    
  2. You can import the elements to your file in two ways:
    1. 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
    1. 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 }

References

All this information was gathered thanks to: