• v0.2.0 e127bc9815

    v0.2.0 Stable

    torstein released this 2026-05-28 18:36:08 +00:00 | 3 commits to main since this release

    v0.2.0 Main focus on chemistry

    Introduces Molar: MolarConcentraion and MolarMass.

    Additionally, introduces lookup-table of atomicMass and function molecularMass that takes a molecular formula and returns a MolarMass.

    const caffeine = molecularMass("C8H10N4O2").to("g/mol");
    // => 194.19
    

    Changelog

    • build: remove deprecated ts options, tweak package.json and gitignore
    • fix: resolve type error in example
    • feat: chemistry helpers to improve working with Moles
    • feat: new helper as to cast between measurements with the same Dimensions
    • feat: new measurement classes MolarConcentration, MolarMass
    • feat: make Dimensions typed
    • feat: Concentration and SpecificVolume
    Downloads