0.2.2 • Published 3 years ago

@kykal/chemistry v0.2.2

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

What is this?

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

Units

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: