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

@shytiger/cli-starter

v1.4.0

Published

Build powerful and reliable command-line tools with this comprehensive Node.js CLI starter kit.

Readme

CLI Starter

npm version License: MIT Build Status npm downloads

A starter template for building command-line interface (CLI) applications with Node.js and Commander.js.

Key Features

  • Robust CLI Foundation: Built with Commander.js for easy command definition, option parsing, and help generation.
  • Graceful Error Handling: Safely handles missing package.json by providing informative messages and exiting cleanly.
  • Cross-Platform Compatibility: Designed to run seamlessly on various operating systems.
  • Testable Structure: Includes Jest for unit and integration testing, ensuring reliability.

Installation

To use this CLI, first ensure you have Node.js (>=18.0.0) and npm installed.

Global Installation (Recommended for CLI Tools)

You can install @shytiger/cli-starter globally to use it as a command from anywhere in your terminal. Once installed, cli-starter becomes available on your local machine.

# Using npm
npm install -g @shytiger/cli-starter

# Using yarn
yarn global add @shytiger/cli-starter

To verify the installation, you can check the version:

cli-starter --version

Local Installation (for Development or Specific Projects)

If you prefer to clone the repository and run it locally:

git clone https://github.com/ioncakephper/cli-starter.git
cd cli-starter
npm install
# Then you can run it using:
node bin/cli-starter.js <command>

Using npx (No Installation Required)

You can also use npx to run @shytiger/cli-starter without installing it globally. This is convenient for one-off uses or to ensure you're always using the latest version. See the Usage section for examples.

Usage

Once installed, you can use @shytiger/cli-starter in several ways:

Global Command

cli-starter hello [name]
# Say hello to someone. If no name is provided, it defaults to "world".
# Output: Hello, world! (if no name)
# Output: Hello, Alice! (if name is Alice)

cli-starter --version
# Output: 0.1.0

cli-starter --help
# Displays help information

Using npx (No Installation Required)

If you have npx installed (comes with npm 5.2+), you can run the CLI without global installation:

npx @shytiger/cli-starter hello [name]
# Say hello to someone. If no name is provided, it defaults to "world".
# Output: Hello, world! (if no name)
# Output: Hello, Bob! (if name is Bob)

npx @shytiger/cli-starter --version
# Output: 0.1.0

npx @shytiger/cli-starter --help
# Displays help information

Direct Execution (for Development or Local Clones)

If you have cloned the repository and installed dependencies locally:

node bin/cli-starter.js hello [name]
# Output: Hello, world! (if no name)
# Output: Hello, Alice! (if name is Alice)

node bin/cli-starter.js --version
# Output: 0.1.0

node bin/cli-starter.js --help
# Displays help information

CLI Reference

This section provides a detailed overview of cli-starter commands and their available options.

Global Options

These options can be used with any command.

  • -V, --version: Output the current version of the CLI.
    • Example: cli-starter --version
  • -h, --help: Display help information for the CLI or a specific command.
    • Example: cli-starter --help
    • Example (for a command): cli-starter hello --help

Commands

hello [name]

Say hello to someone. If no name is provided, it defaults to "world".

  • Arguments:
    • [name] (optional): The name of the person to greet.
  • Options:
    • (No specific options for this command yet)
  • Examples:
    • cli-starter hello
      • Output: Hello, world!
    • cli-starter hello Alice
      • Output: Hello, Alice!

init or i

Initialize a new project.

  • Arguments:
    • (No specific arguments for this command)
  • Options:
    • -q, --quick: Quick initialization without prompts.
  • Examples:
    • cli-starter init
      • Output: Project initialized!
    • cli-starter i --quick
      • Output: Project initialized!

Contributing

We welcome contributions to @shytiger/cli-starter! Please see our CONTRIBUTING.md for details on how to get started, including our code of conduct.

For bug reports, feature requests, or general discussions, please visit our GitHub Issues or GitHub Discussions.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

ioncakephper

Repository Structure

└── cli-starter/
    ├── bin/
    │   └── cli-starter.js (218 B)
    ├── src/
    │   ├── commands/
    │   │   ├── hello.js (293 B)
    │   │   └── init.js (364 B)
    │   ├── utils/
    │   │   ├── applyDescriptionFormatting.js (1.4 KB)
    │   │   ├── createProgram.js (1.3 KB)
    │   │   ├── formatDescription.js (640 B)
    │   │   ├── getPackageJson.js (839 B)
    │   │   └── loadCommands.js (1.2 KB)
    │   └── index.js (1 KB)
    ├── tests/
    │   ├── utils/
    │   │   ├── __mocks__/
    │   │   │   └── commandModule.js (73 B)
    │   │   ├── applyDescriptionFormatting.test.js (2.8 KB)
    │   │   ├── createProgram.test.js (2.2 KB)
    │   │   ├── formatDescription.test.js (1.2 KB)
    │   │   ├── getPackageJson.test.js (1.8 KB)
    │   │   └── loadCommands.test.js (1.8 KB)
    │   └── cli.test.js (3.2 KB)
    ├── CHANGELOG.md (3.3 KB)
    ├── CODE_OF_CONDUCT.md (4.8 KB)
    ├── CONTRIBUTING.md (2.1 KB)
    ├── index.js (157 B)
    ├── jest.config.js (99 B)
    ├── LICENSE (1.1 KB)
    ├── markdown-magic.config.js (23 B)
    ├── package-lock.json (160.3 KB)
    ├── package.json (1.1 KB)
    └── README.md (6.6 KB)