New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

ptz-math

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ptz-math

ptz-math is a library for math operations such as random()

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

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

Keywords

polutz

FAQs

Package last updated on 30 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts