Skip to content

angeloocana/ptz-math

Repository files navigation

ptz-math

Build Status NPM codecov.io Dependency Status bitHound Score MIT license

Translations

pt-br en-us

ptz-math is a javascript library for math operations

Be welcome to learn, help and play!!!

Docs

Full docs

Use

Install

    npm install --save ptz-math

How to use

Get random number between 2 and 8:

    import { random } from ptz-math;

    const min = 2;
    const max = 8;
    const randomNumber = random(min, max);

Get random item from array:

    import { getRandomItem } from ptz-math;

    const list = ['a', 'b', 'c', 'd'];
    const randomItem = getRandomItem(list);

Contribute

NPM Global packages

    npm install -g ts-node babel-cli

Setup

    npm install   

Test

    npm test

About

ptz-math is a javascript library for math operations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published