@koc/generate-password
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

generatePassword Tests npm version

NPM

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. !@#$%&

/@koc/generate-password/

    Package Sidebar

    Install

    npm i @koc/generate-password

    Weekly Downloads

    0

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    10.1 kB

    Total Files

    9

    Last publish

    Collaborators

    • koc