Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

random-item

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

random-item

Get a random item from an array

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
4.6K
-66.63%
Maintainers
1
Weekly downloads
 
Created
Source

random-item Build Status

Get a random item from an array

Install

$ npm install --save random-item

Usage

var randomItem = require('random-item');

randomItem(['pony', 'unicorn', 'rainbow']);
//=> 'unicorn'

License

MIT © Sindre Sorhus

Keywords

rand

FAQs

Package last updated on 26 Jun 2015

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