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

@tukuyomil032/passgen

v1.0.2

Published

A customizable password generator CLI tool

Readme

passgen-cli

🔐 A lightweight and simple password generator CLI tool

Version License Node.js

🚀 Quick Start

Prerequisites

  • Node.js 18+
  • npm, pnpm, yarn, or bun

Installation

For End Users

Using npm
npm install -g @tukuyomil032/passgen
passgen
Using pnpm
pnpm add -g @tukuyomil032/passgen
passgen
Using yarn
yarn global add @tukuyomil032/passgen
passgen
Using bun
bun add -g @tukuyomil032/passgen
passgen

For Developers (Local Development)

macOS / Linux
git clone https://github.com/tukuyomil032/CLI-passgen.git
cd CLI-passgen
bash scripts/setup.sh
Windows (PowerShell)
git clone https://github.com/tukuyomil032/CLI-passgen.git
cd CLI-passgen
.\scripts\setup.ps1
Windows (CMD)
git clone https://github.com/tukuyomil032/CLI-passgen.git
cd CLI-passgen
scripts\setup.bat

📖 Usage

Interactive Mode (Recommended)

passgen

Select character types, password length, and copy destination interactively.

Command-line Options

# Generate a 16-character password
passgen -l 16

# Generate 5 passwords, 32 characters each, with all character types
passgen -l 32 -n -a -A -s -c 5

# Generate with random character types
passgen -l 24 -r

# Display help
passgen --help

Available Options

  • -l, --length - Password length (default: 16)
  • -c, --count - Number of passwords to generate (default: 1)
  • -n - Include numbers (0-9)
  • -a - Include lowercase letters (a-z)
  • -A - Include uppercase letters (A-Z)
  • -s - Include special characters
  • -r - Randomly select character types
  • -q, --quiet - Minimize output
  • --copy / --no-copy - Control clipboard copy behavior

🔐 Security

  • Cryptographically secure random generation using crypto.randomInt()
  • All inputs are validated
  • Full type safety with TypeScript

✨ Features

  • 🔐 Cryptographically secure password generation
  • 🎨 Beautiful ANSI color support
  • 💬 Interactive mode
  • 📋 Automatic clipboard copy
  • ⚡ Cross-platform support (macOS/Linux/Windows)
  • 🎯 Multiple CLI options

🛠️ Tech Stack

| Technology | Version | Purpose | |------------|---------|---------| | TypeScript | 5.3+ | Language | | Node.js | 18+ | Runtime | | pnpm | Latest | Package manager | | yargs | 17.7.2 | CLI argument parsing | | inquirer | 9.2.11 | Interactive prompts | | ora | 8.0.1 | Spinner display | | clipboardy | 4.0.0 | Clipboard operations |

📦 Development

Local Development Setup

pnpm install
pnpm dev          # Run with ts-node
pnpm build        # Compile TypeScript
pnpm link --global # Link globally for development

📁 Project Structure

CLI-passgen/
├── src/                    # TypeScript source code
│   ├── main.ts             # CLI entry point
│   ├── core/               # Core functionality
│   │   ├── generator.ts    # Password generation logic
│   │   ├── clipboard.ts    # Clipboard operations
│   │   └── constants.ts    # Constants and character sets
│   └── ui/                 # UI components
│       ├── display.ts      # Display rendering
│       └── interactive.ts  # Interactive mode
├── scripts/                # Setup scripts (for developers)
│   ├── setup.sh            # macOS/Linux setup
│   ├── setup.ps1           # Windows PowerShell setup
│   └── setup.bat           # Windows CMD setup
├── dist/                   # Compiled JavaScript (generated)
├── package.json            # NPM configuration
├── tsconfig.json           # TypeScript configuration
└── README.md               # This file

📄 License

MIT