1.0.3 • Published 4 years ago
a-random-string v1.0.3
a-random-string
A a super simple random string generator.
a-random-string creates a random 7 digit string consisting of upper and lowercase letters along with numbers.
to use
const arandomstring = require('a-random-string');
console.log(arandomstring.generate());
Mongoose Random Id
_id: {
'type': String,
'default': arandomstring.generate
}
Currently this package only supports a seven digit string.