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.

Dependencies (0)

    Dev Dependencies (32)

    Package Sidebar

    Install

    npm i gimme-one

    Weekly Downloads

    12

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • tandrewnichols