@koc/generate-password
v1.0.4
Published
generate random password
Downloads
7
Readme
generatePassword
Install
λ npm install @koc/generate-password --save
Usage
generatePassword({options})
Generate one password with the given options. Returns a string.
const {generatePassword} = require('@koc/generate-password');
//import {generatePassword} from '@koc/generate-password';
const password = generatePassword({
length: 10,
});
// t%0YA!5k#S
Options
| Name | Description | Default Value | |--------------------------|-----------------------------------------------------------------------|---------------| | length | Integer, length of password. | 8 | | allowedSymbols | String, put symbols in password. | !@#$%& |