nice-random-id-generator
v0.1.1
Published
Random id generator
Downloads
2
Readme
nice-random-id-generator
Installation
npm i --save nice-random-id-generator
Usage
const generateRandomId = require('nice-random-id-generator');
generateRandomId(); // 'OAeB04QI'
generateRandomId({ prefix: 'id-' }) // 'id-oPFbLzsG'
generateRandomId({ prefix: 'id-', length: 15 }) // 'id-T+5x8FlhpaES8NN'
generateRandomId({ prefix: 'id-', length: 15, character_set: 'base64url' }) // 'id-AAtjeXc_UQJqOFW'