id-generator.js
v1.0.1
Published
This is a package to generate ids!
Downloads
8
Readme
Generate Ids with ease!
Example usage:
const { generateID } = require('id-generator.js');
generateID('XXXX-XXXX-XXXX-XXXX', { letters: true, numbers: true });
// Output: XO9A-03RD-VNFE-HV4R
generateID('XXXX-XXXX-XXXX-XXXX', { letters: true, numbers: true });
// Output: HFCL-7RJ3-2JEL-P996
generateID('XXXX-XXXX-XXXX-XXXX', { letters: true });
// Output: RRGG-VDYR-LTSG-QUWA
generateID('XXX-XXX', { numbers: true });
// Output: 751-230
generateID('XXX-XX-XXXX', { numbers: true });
// Output: 232-13-4930
generateID('ABCD-XXXX-XX', { letters: true });
// Output: ABCD-UPUT-QD