@chemistry/formula
    TypeScript icon, indicating that this package has built-in type declarations

    2.9.0 • Public • Published

    @chemistry/formula

    npm version Build Status codecov License: MIT

    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

    Install

    npm i @chemistry/formula

    DownloadsWeekly Downloads

    7

    Version

    2.9.0

    License

    MIT

    Unpacked Size

    65.5 kB

    Total Files

    8

    Last publish

    Collaborators

    • avatar