1.0.0 • Published 3 years ago

@teleology/credential-generators v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@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