uniq-password
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

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

Dependencies (0)

    Dev Dependencies (7)

    Package Sidebar

    Install

    npm i uniq-password

    Weekly Downloads

    0

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    4.8 kB

    Total Files

    4

    Last publish

    Collaborators

    • boris_the_blade