fastest NPM package/library to generate random and strong password with alphabetical-numerical-ascii characters.
npm install random-ascii-password-generator --save
const randomPasswordGenerator = require('random-ascii-password-generator');
-
both the args, length and uppercase
randomPasswordGenerator(10, true);
Output - "|81SLNDDTN" -
both the args, length and lowercase
randomPasswordGenerator(12, false);
Output - "qmzg^-ryi$+9" -
no args - default 8 length and uppercase
randomPasswordGenerator();
Output - "~V?VUUGV" -
only password case but have to provide first args as undefined
randomPasswordGenerator(undefined, false);
Output - "\l]xa[6n" -
only password length
randomPasswordGenerator(5);
Output - "Y;KYV"
For live demonstration: https://codepen.io/techygeeky/pen/bGWXdbJ?editors=1011