id-lite
v1.0.0
Published
extremely light (uu)id generator
Downloads
1
Readme
Date Extras
- Extremely light-weight id generation function
- Zero Dependencies
Installation
Install via NPM
npm install id-lite
Example Usage
Importing
const getId = require('id-lite')
// or
import getId from 'id-lite'
Generating ID/UUID's
getId( length, [ multiCase, numbersOnly, alphaOnly, upperCase, lowerCase ] )
getId(4)
// -> 4af1
getId(8)
// -> xw4sz2nc
getId(8, { numbersOnly:true })
// -> 45525949
getId(8, { alphaOnly:true, upperCase:true })
// -> PQEHNSQF