0.4.0 • Published 10 years ago
smart-id v0.4.0
##smart-id
Generate random string for you.
###Installation
npm install smart-id###Get started
var smartId = require("smart-id");
var id = smartId.make(); // will make a random string like: mYcAEQExvm###Api
smartId.make(mode, length)
mode is a string, it can be:
astands for use only lowercase charactersa-z.Astands for use only uppercase charactersA-Z.0stands for use only numbers0-9._stands for add_to candidate characters, can take more than one like$%^&*_.- all before can be used at the same time, like
aA0_means the candidate isa-z,A-Z,0-9and_. sis special, it stands for smart mode, this will trim confused characters like0,oandO.
- default mode is
aA0. - default length is
10.
