Calculate molecular mass in atomic mass units
yarn add molecular-mass
yarn molecular-mass H20 # => 18.02
import { calculateMolecularMass } from 'molecular-mass';
console.log(calculateMolecularMass('H2O')); // => 18.02
git clone https://github.com/eignatyev/molecular-mass.git
cd molecular-mass
yarn
yarn build # compile the project
node bin/index.js H20 # => 18.02
yarn test