Miss any of our Open RFC calls?Watch the recordings here! »

uniq-number

1.2.0 • Public • Published

uniq-number

Generate unique numbers with javascript generators.

  • Small 272 bytes (minified and gzipped).
  • No dependencies
  • Tested

Example

import { getUniq } from 'uniq-number'
 
console.log( getUniq() )
console.log( getUniq() )
console.log( getUniq() )
// 0
// 1
// 2
 
const getUniqueNumberFromTen = getUniq(10)
console.log( getUniqueNumberFromTen() )
console.log( getUniqueNumberFromTen() )
console.log( getUniqueNumberFromTen() )
// 10
// 11
// 12
 
 

Install

$ npm install --save uniq-number

Install

npm i uniq-number

DownloadsWeekly Downloads

3

Version

1.2.0

License

MIT

Unpacked Size

2.59 kB

Total Files

5

Last publish

Collaborators

  • avatar