Package Exports
- uniq-password
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (uniq-password) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
uniq-password
Utility function for generating uniq password, can be used by Node.js or browser.
Installation
$ npm install uniq-password --saveor
$ yarn add uniq-passwordUsage
import { generatePassword } from "uniq-password";or
const { generatePassword } = require("uniq-password");const password = generatePassword({ length: 10 });
console.log(password); // gLk7C_ycv3Available 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 |