zid
Generate random strings made up of [A-Za-z0-9] that are also URL compatible. Only good package name of '?id' left.
You choose the length. No underscore, no dash, no slash or backslash, indeed no other chars.
Synopsis
var zid = console// -> 'fA8ljv' console// -> 'vy9gDZwKJmdK' console// -> throws console// -> throws console// -> throws console// -> throws
Options
lookalikes
You can also exclude lookalike chars such as OISZbl
by using
{ lookalikes: false }
:
console.log(zid({ lookalikes: false }))
// -> returns an ID using these chars only:
// -> ABCDEFGHJKLMNPQRTUVWXYacdefghijkmnopqrstuvwxyz0123456789
// -> i.e. no OISZbl
AUTHOR
Written by Andrew Chilton:
License
MIT
(Ends)