1.1.1 • Published 1 year ago

molprint v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

MolPrint NPM Package

Npm package providing random chemical compounds.

Installation

npm install molprint

Use

  1. Import the package function..

    import getCompound from "molprint";
  2. Call the imported function..

    const compound = getCompound();
    console.log(compound);

    This will output a random chemical compound with description to the console.

    getCompound() has an optional boolean parameter detailed: true by default.

    If detailed: false, only the compound will be output, without description.

    import getCompound from "./index.js";
    console.log(getCompound(false)); 
    //Out: { compound: 'Ethanol (C2H5OH)', description: null }

If you'd like to contribute, feel free to submit a pull request.

1.1.1

1 year ago

1.1.0

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago