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

array-generator

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

array-generator

Generates and array with the your properties

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

Array generator

Generate an unsorted array with the given properties

Installing

$ npm install array-generator --save

How to use

arrayGenerator(size, maxValue, minValue)

/* values range is [minValue, maxValue) */

How to use

const arrayGenerator = require('array-generator)

arrayGenerator(5, 1, 6)

/* return random unsorted array like [2, 3, 1, 5, 4]  */

Running the tests

$ npm run test

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Keywords

array

FAQs

Package last updated on 02 Sep 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