A very simple password and secret generator for the command line, built on Bun.
bun add -g makepassOr run it without installing:
bunx makepassRunning makepass with no arguments generates a 16-character password using the defaults (lowercase, uppercase, numbers, no symbols) and prints it to stdout:
makepass| Flag | Description |
|---|---|
-l, --length <number> |
Length of the password (default: 16) |
-s, --symbols |
Include symbols |
-C, --no-caps |
Exclude capital letters |
-N, --no-numbers |
Exclude numbers |
-g, --secret |
Shortcut for a 32-character alphanumeric secret (caps + numbers, no symbols) |
-i, --interactive |
Launch an interactive setup instead of using flags/defaults |
# 32-character password with symbols
makepass -l 32 -s
# lowercase-only, 20 characters
makepass -C -N -l 20
# quick 32-character secret
makepass -g
# walk through the options interactively
makepass -ibun install # install dependencies
bun run dev # run from source
bunx tsc --noEmit # type-check
bun run build # bundle to build/index.js
bun run compile # compile a standalone native binaryDistributed under the MIT License. See LICENSE for more information.
Joshua Schmitt - @jqshuv - me@jqshuv.com
Project Link: https://github.com/jqshuv/makepass
