gPass: A Password Generator CLI
gPass stands for Password Generator, it's a utility command-line tool that allows you to generate random passwords.
Join the DZone community and get the full member experience.Join For Free
Yes, it's true, I created my own password generator CLI tool and published it as an NPM package. It has only ~12kB, easy-to-use and it's open-source.
You can find the package on this link here.
You can find the source code on this link.
Why I Did It?
I built gPass because I was finding it way too tiring to visit a website, configure the settings and generate a new one every time I wanted to use a password.
I wanted something to help me with this obstacle and be easy to use for everyone who uses a terminal.
Another reason was that I haven't work on something personal in long days. I felt that the routine was drowning me and I wanted to change it.
As result, I created this small project of mine and published it.
Working of gPass
Firstly you need to install the package on your machine.
npm install -g @thpadelis/gpass
After installation, you are ready to use the
gpass alias. You can use the
gpass -h option to list all the available options.
Following are some very basic usage examples of the tool.
Create a Password With a Length of 15 Chars
gpass -l 15 # output # gV6|yA5&lA1=iV9
gpass -p # output # 5176246270
Create 5 Passwords With a Length of 10 Characters and No Symbols
gpass -l 10 -n 5 -es # output # dY6tA6nM7q # hK4eB6qE5p # cD5pM0eJ0l # cM4bV5uQ6s # sD3bG1yV2n
Create a Password and Copy It to the Clipboard
You can find more examples in the README.md file.
If you like, please consider dropping a comment, like, or even a new feature idea.
Opinions expressed by DZone contributors are their own.