1.0.2 • Published 7 years ago

gimme-one v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

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.