ptz-math
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i ptz-math

Weekly Downloads

11

Version

1.1.0

License

MIT

Last publish

Collaborators

  • angeloocana
  • alanmarcell