@teleology/credential-generators
A utility to generate credentials for username + password
Installation
yarn add @teleology/credential-generators
Username Usage
const { username } = require('@teleology/credential-generators');
// All options
username({
animals: true,
adjectives: true,
countries: true,
numbers: 2,
lowercase: true,
}); // 45sierraleonenewtfragmental
const custom = username({
seed: 'sully',
numbers: 2,
lowercase: true
}); // sully37
Password Usage
const { password } = require('@teleology/credential-generators');
// All options
password({
uppercase: 1,
lowercase: 8,
special: 1,
numbers: 1,
}); // xsgH7w)ibft
const custom = password({
uppercase: 4,
lowercase: 1,
numbers: 1,
}); // 2HvESG
Changelog
1.0.0
- Initial publications