0.1.0 • Published 8 years ago

@nielskrijger/uid v0.1.0

Weekly downloads
2
License
ISC
Repository
-
Last release
8 years ago

UID

Generates unique ids.

Uses crypto.randomBytes() to generate true random ids.

Installation

$ npm install --save @nielskrijger/uid

Example

import uid from '@nielskrijger/uid';

uid(10, '01234567890ABCDE') // "E87153AE76"
uid() // "7kz35hb9gmg32c1v" Defaults to 16 characters from range [0-9a-z]

License

ISC