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

1.0.1 • Public • Published

passWhip nodejs workflow

NPM

Motivation

Existing password generating packets are using the Math.random(), which doesn't provide a proper level of entropy, or it can be applied only in nodejs or browser environment.

Usage

Installation

npm i --save passwhip

Include the module

import { generatePassword } from 'passWhip';

Package is also available to use as UMD Module, UMD bundle, ESM, and bundled ESM (check out a lib directory)

Call it

// for CJS or es2015 module call 
generatePassword({
  numbers: true
}); // j>z8zquMh!

// if you're use an UMD module
passWhip.generatePassword({
  symbols: true
}); // r<X2vbQ+Tl

Available options

Name Description Default
value
length Integer. Length of password. 12
letters Boolean. Put letters in password. true
numbers Boolean. Put numbers in password. true
symbols Boolean. Put symbols in password. true
randomCase Boolean. Letters in random case. true
uppercase Boolean. Letters in upper case. false
lowercase Boolean. Letters in lower case. false
exclude String[]. Characters to be excluded from password. []
excludeSimilarCharacters Boolean. Exclude visually similar characters from password. false

Package Sidebar

Install

npm i passwhip

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

67.3 kB

Total Files

25

Last publish

Collaborators

  • gruf