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

command-line-tool-task-manager

v1.0.0

Published

A simple and powerful command-line task manager — add, list, complete, edit, search and track tasks right from your terminal.

Readme

cli-task-manager

A simple and powerful command-line task manager. Add, list, complete, edit, search, and track tasks right from your terminal — no account, no cloud, just a local JSON file in your home directory.

CI npm version License: MIT


Installation

npm install -g command-line-tool-task-manager

Requires Node.js >= 18

Once installed, the task command is available globally.


Quick Start

task add "Buy groceries"
task add "Submit report" --priority high
task list
task complete 1
task stats

Commands

task add <title>

Add a new task.

| Option | Alias | Description | Default | |--------|-------|-------------|---------| | --priority <level> | -p | high, medium, or low | medium |

task add "Read documentation"
task add "Fix critical bug" -p high
task add "Clean up comments" -p low

task list / task ls

List all tasks in a formatted table, sorted by status → priority → ID.

| Option | Alias | Description | |--------|-------|-------------| | --filter <status> | -f | completed or pending | | --priority <level> | -p | high, medium, or low |

task list
task ls
task list --filter pending
task list --filter completed
task list --priority high

task complete <id> / task done <id>

Mark a task as completed.

task complete 3
task done 3

task edit <id>

Edit a task's title or priority.

| Option | Alias | Description | |--------|-------|-------------| | --title <title> | -t | New title | | --priority <level> | -p | New priority |

task edit 2 --title "Updated title"
task edit 2 --priority high
task edit 2 -t "New title" -p low

task delete <id> / task rm <id>

Permanently delete a task.

task delete 4
task rm 4

task search <keyword>

Search tasks by keyword (case-insensitive). Matching text is highlighted.

task search bug
task search "meeting notes"

task stats

Show completion statistics with a visual progress bar.

task stats
  Task Statistics
  ─────────────────────────────────
  Total     : 8
  Completed : 5
  Pending   : 3
  Progress  : [██████████████████░░░░░░░░░░░░] 63%

task clear

Remove all completed tasks in one go.

task clear

Data Storage

Tasks are saved to ~/.task-manager/tasks.json. This file is created automatically on first use and persists across all directories and sessions.

To use a custom location (e.g. for per-project task lists):

TASK_MANAGER_DATA_DIR=/path/to/dir task list

Development

git clone https://github.com/ankitw497/Command-Line-Task-Manager.git
cd Command-Line-Task-Manager
npm install

# Run the CLI locally
node src/index.js add "Test task"

# Or link it globally for development
npm link
task add "Test task"

# Run tests
npm test

Project Structure

src/
  index.js    — CLI entry point (commands + argument parsing)
  tasks.js    — Business logic (add, complete, edit, delete, search …)
  storage.js  — JSON persistence (read/write ~/.task-manager/tasks.json)
  display.js  — Table rendering and output formatting
tests/
  tasks.test.js    — Unit tests for task operations (35 tests)
  storage.test.js  — Unit tests for storage layer

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feat/my-feature)
  3. Commit your changes
  4. Open a Pull Request

Please ensure all tests pass (npm test) before submitting.


License

MIT © Ankit Wahane