1.1.1 • Published 3 years ago
uniq-password v1.1.1
uniq-password
Utility function for generating uniq password, can be used by Node.js or browser.
Installation
$ npm install uniq-password --save
or
$ yarn add uniq-password
Usage
import { generatePassword } from "uniq-password";
or
const { generatePassword } = require("uniq-password");
const password = generatePassword({ length: 10 });
console.log(password); // gLk7C_ycv3
Available options
Name | Description | Required | Default Value |
---|---|---|---|
length | Size of result string | false | 16 |
withLowerLetters | Should include [a-z] | false | true |
withUpperLetters | Should include [A-Z] | false | true |
withNumbers | Should include 0123456789 | false | true |
withSymbols | Should include !@#$%^&*(){}=_- | false | true |