npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

pwgen-cli

v1.0.1

Published

Interactive terminal password generator with clipboard support.

Readme

Password Generator CLI

Interactive and flag-driven password generator with clipboard support.

Installation

Install globally from the project directory

npm install -g .

After publishing to the npm registry you can install it directly:

npm install -g pwgen-cli

Usage

Once installed globally, run the CLI from anywhere:

pwgen

Follow the prompts to select the password length and character sets. The generated password is copied to your clipboard automatically.

Non-interactive mode

Skip the prompts and configure the generator with flags:

pwgen --length 24 --symbols --no-copy

Shortcuts:

pwgen --lowercase            # only lowercase letters
pwgen --lowercase --symbols  # lowercase + symbols
pwgen --count 10 --raw       # 10 passwords, plain output

Available flags:

  • --length <number> Password length (5-128, default 16)
  • --count <number> Generate multiple passwords at once (1-50, default 1)
  • --[no-]lowercase Include lowercase letters (default true)
  • --[no-]uppercase Include uppercase letters (default true)
  • --[no-]numbers Include digits (default true)
  • --[no-]symbols Include symbols (default false)
  • --[no-]copy Copy result to the system clipboard (default true)
  • --[no-]banner Toggle the ASCII art banner (default true in TTYs)
  • --raw Print the generated password(s) only (no colors/banner)
  • --help Show the help screen
  • --version Print the CLI version

When you specify any positive character flag, unspecified sets default to off—so pwgen --lowercase produces a lowercase-only password, while --no- flags simply disable individual sets.

Custom defaults

Set your own defaults by creating ~/.config/pwgen/config.json (or point PWGEN_CONFIG to another JSON file):

{
  "length": 24,
  "count": 3,
  "lowercase": true,
  "uppercase": false,
  "numbers": true,
  "symbols": true,
  "copy": false,
  "banner": false,
  "raw": true
}

Any value you provide overrides the built-in defaults, and CLI flags still win over the config.