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

amrit-poem-cli

v1.1.4

Published

A simple and interactive CLI tool to generate classic nursery rhyme poem files right from your terminal.

Readme

📜 amrit-poem-cli

A simple and interactive CLI tool to generate classic nursery rhyme poem files right from your terminal.


📦 Installation

Global Installation (Recommended)

npm install -g amrit-poem-cli

Local Installation

npm install amrit-poem-cli

🚀 Usage

Method 1 — npx (no install required)

npx amrit-poem-cli generate-poem

Method 2 — Global (after global install)

poemcli generate-poem

Method 3 — Local project script

Add to your package.json:

"scripts": {
  "poem": "poemcli generate-poem"
}

Then run:

npm run poem

Method 4 — Run directly with Node

node index.js generate-poem

Method 5 — Local development with npm link

npm link
poemcli generate-poem

🎮 Interactive Demo

$ poemcli generate-poem

? Choose a poem: (Use arrow keys)
❯ Twinkle Twinkle
  Johny Johny
  Humpty Dumpty
  Baa Baa Black Sheep
  Jack and Jill

✅ Poem file created: poems/twinkle_twinkle.txt

📚 Available Poems

| # | Poem Name | |---|-------------------| | 1 | Twinkle Twinkle | | 2 | Johny Johny | | 3 | Humpty Dumpty | | 4 | Baa Baa Black Sheep | | 5 | Jack and Jill |


📁 Output Structure

Poems are saved as .txt files inside a poems/ folder, auto-created in your current working directory:

your-project/
└── poems/
    ├── twinkle_twinkle.txt
    ├── johny_johny.txt
    ├── humpty_dumpty.txt
    ├── baa_baa_black_sheep.txt
    └── jack_and_jill.txt

🛠️ All Methods at a Glance

| Method | Command | Best For | |---|---|---| | Global install | poemcli generate-poem | Frequent everyday use | | npx | npx amrit-poem-cli generate-poem | One-time / no install | | Local + npx | npx poemcli generate-poem | Project-scoped usage | | npm script | npm run poem | Integrated in a project | | Node directly | node index.js generate-poem | Debugging / dev mode | | npm link | poemcli generate-poem (linked) | Local package testing |


⚙️ Commands

| Command | Description | |---|---| | generate-poem | Launch interactive prompt to select and save a poem |


📦 Dependencies

| Package | Version | Purpose | |---|---|---| | commander | ^14.0.3 | CLI command parsing | | inquirer | ^8.2.7 | Interactive terminal prompts |


💡 Tip: Run the command multiple times to generate as many poem files as you like. Each poem is saved separately and existing files are overwritten with the latest content.