chemical

    0.1.0 • Public • Published

    chemical

    JavaScript interface for chemicals

    require example

    var chemical = require('chemical')
    var carbon = chemical({
      formula: 'C'
    })
     
    carbon instanceof chemical // true

    Proposed interface

    No methods are implemented in this version. If you know about JavaScript or chemistry, please contribute your ideas about how to best implement this interface. Below is a loose example of the proposed interface for future versions.

    var hydrogen = chemical('H')
    var oxygen = chemical('O2')
    var reaction = hydrogen.react(water)

    Chemicals (chemical substances) include elements, compounds, and mixtures. Chemicals are expressed as formulas. Chemicals react with other chemicals. Reactions are classified into types. The API should include such abilities.

    License

    MIT

    Keywords

    Install

    npm i chemical

    DownloadsWeekly Downloads

    1

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • ryanve