JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q29742F
  • License MIT

Random password generator

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 --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