gimme-one

1.0.2 • Public • Published

Build Status downloads npm Code Climate Test Coverage dependencies Size

gimme-one

Get a random item from a list

Installation

npm install --save gimme-one

Summary

Pass in a list and get a random item from that list back.

Usage

var gimme = require('gimme-one');
var list = ['foo', 'bar', 'baz'];
console.log( gimme(list) ); // One of foo, bar, baz

Browser

Just serve dist/gimme-one.js or dist/gimme-one.min.js however you serve javascript in your application.

Contributing

Please see the contribution guidelines.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    11
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    11
  • 1.0.1
    0
  • 1.0.0
    1

Package Sidebar

Install

npm i gimme-one

Weekly Downloads

12

Version

1.0.2

License

MIT

Last publish

Collaborators

  • tandrewnichols