@chemistry/formula
v2.9.0
Published
Chemical formula parser
Downloads
5
Maintainers
Readme
@chemistry/formula
Library for working with chemical formula
Install
npm install @chemistry/formula
Include following clases:
- Formula
Getting started:
import { Formula } from "@chemistry/formula";
const formula = Formula.parse('C2H5OH');
console.log(formula); // { C: 2, H: 6, O:1 }
const str = Formula.convertToString(formula);
console.log(str); // C2H6O
Commands:
- Build project:
npm run build