Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

createpassword

arvind558824ISC1.0.0

This will convert a dash, dot, underscore, space and separated string to regularCase: node-js : nodeJs

covert, dash, dot, underscore, space, containing, string, into, regularcase

readme

Install

$ npm install --save createpassword

Usage

Default settings (easy 10 letters)

createPassword() // -> hjuikolpaq

WCustom length not easy

createPassword(12, false) // -> 87Ik98uREG1

Characters should match a pattern

createPassword(12, false, /\d/) // -> 435678987671

Customize the password prefix

createPassword(12, false, /\d/, 'pass-') // -> pass-6754329