uniqueid
Generate a unique sequential ID. Optionally pass a prefix, suffix, or multiplier.
Install
npm:
Install withnpm i uniqueid --save-dev
Run tests
npm test
Usage
var uniqueId = ;console;//=> ['a', 'b', 'c'];
API
id
Generate a unique ID.
options
{Object}: Optionally pass aprefix
,suffix
and/or `multiplier.returns
{String}: The unique id.
Optionally pass a prefix to prepend, a suffix to append, or a multiplier to use on the ID.
; //=> '25' ;//=> 'apple_10' ;//=> '10_orange' ;//=> 5, 10, 15, 20...
To reset the id
to zero, do id.reset()
.
Author
Jon Schlinkert
License
Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license
This file was generated by verb-cli on September 14, 2014.