npm.io
1.0.3 • Published 5 years ago

random-password-async

Licence
MIT
Version
1.0.3
Deps
0
Size
3 kB
Vulns
0
Weekly
0

random-password-async

A simple async random password generator that uses /dev/urandom on Linux.

Install

npm install random-password-async  

Usage

const randomPassword = require('random-password-async');

const getPasswords = async () => {
    for (let i = 30; i < 50; i++) {
        const pwd = await randomPassword(i);
        console.log(pwd);
    }
}

getPasswords();

Keywords