rpg

0.1.1 • Public • Published

rpg Build Status

(pseudo)random password generator

Installation

browser

<script src="rpg.js" type="text/javascript"></script>

node

$ npm install rpg

Usage

rpg()                                               // > '=TM;:XUv78M['
rpg({length: 16})                                   // > '&[(OF~Kk,-8TNF0H'
rpg({length: 16, set: 'lud'})                       // > '1G7elTEr6kU5dWBP'
rpg({length: 16, set: 'lud', exclude: '123456789'}) // > 'dgomcPCg0RJsYWrx'

API

rpg([options])

options.length

Type: Number Default: 12

length of the generated password

options.set

Type: String Default: ludp

character set of password generation combination of l(lower case), u(upper case), d(digit), p(punctuation)

options.exclude

Type: String Default: ``

characters to be excluded from generation

License

MIT

Package Sidebar

Install

npm i rpg

Weekly Downloads

2

Version

0.1.1

License

MIT

Last publish

Collaborators

  • mrhooray