@teleology/credential-generators
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@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

Package Sidebar

Install

npm i @teleology/credential-generators

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

207 kB

Total Files

32

Last publish

Collaborators

  • icarus-sullivan