Open katsube opened 4 years ago
It is new command.
$ gpwd-h applebananapine $ gpwd-h --caps AppleBananaPine
~/.gpwd.json
{ "length": 8, "strength": "normal", "secure": false, "human": { "length": 8, "caps": false, "secure":false } }
genPassword.gen() → genPassword.generate()
genPassword.gen()
genPassword.generate()
current
module.exports = class genPassword { // ..... }
after
//------------------- // lib/genPassword.js //------------------- class genPassword { // ..... } //------------------- // lib/genPasswordHuman.js //------------------- class genPasswordHuman{ // ..... } //------------------- // index.js //------------------- module.exports = require("./lib/genPassword"); module.exports.human = require("./lib/genPasswordHuman");
example
const genPassword = require("../index.js"); const passwd = new genPassword(); const genPasswordHuman = require("../index.js").human; const passwdh = new genPasswordHuman();
English dictionary
License
It is new command.
option
update configuration file
~/.gpwd.json
etc
change method name
genPassword.gen()
→genPassword.generate()
change module.exports style
current
after
example