UNPKG

pass-xkcd

Version:

Generate a password with set of words

43 lines (36 loc) 1.11 kB
const path = require('path'); const static = path.resolve(__dirname, 'static/'); module.exports = { WORDS_FILE: path.join(static, 'words.txt'), DB_FILE: path.join(static, 'db.json'), separator: " ", symbols: ["@", "#", "$", "%", "&", "!"], nos: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], symbols_len: 6, nos_len: 10, HELP: ` Pass xkcd helps you to create passwords as per the xkcd suggestions. You can use below options to favour some advances Usage: pass-xkcd -[options] [value] pass-xkcd -sep - pass-xkcd -n -s -c pass-xkcd -save github.com pass-xkcd -clear github pass-xkcd -read git pass-xkcd -add site new-pass pass-xkcd -import filepathname Options: n number, include numbers s symbol, include symbols c capital, includes captial save write to encrypted db add add your existing passwords to manager dump outputs all saved site, passwords read get from db import file to import clear remove passwords with site sep custom separator, (defaul: ' ') requires a separator string help this help h this help `, }