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 🙏

© 2024 – Pkg Stats / Ryan Hefner

ts-task-manager-cli

v1.0.1

Published

A CLI task manager built with TypeScript

Downloads

139

Readme

Task Manager CLI

A command-line interface (CLI) application for managing tasks, built with TypeScript.

Features

  • Add new tasks with title, description, priority, and status
  • Complete tasks
  • Update task status
  • View all tasks
  • View tasks by priority
  • Delete all tasks
  • Delete task by ID
  • Delete tasks by filter

Folder Structure

task-manager-cli/
├── dist/
│   ├── cli.js
│   ├── TaskManager.js
│   └── types.js
├── src/
│   ├── cli.ts
│   ├── TaskManager.ts
│   └── types.ts
├── .gitignore
├── .npmignore
├── package.json
├── README.md
└── tsconfig.json

Installation

You can install the Task Manager CLI globally using npm:

npm install -g task-manager-cli

Usage

After installation, you can run the Task Manager CLI by typing task-manager in your terminal:

task-manager

Commands

The CLI will present you with the following options:

  1. Add a new task: Prompts you to enter task details (title, description, priority, status).

    Example:

    ? Enter task title: Complete project report
    ? Enter task description: Finish the quarterly project report
    ? Select task priority: High
    ? Select task status: Todo
    Task added successfully!
  2. Complete a task: Shows a list of tasks and allows you to mark one as completed.

    Example:

    ? Select a task to complete: Complete project report
    Task status changed from Todo to Completed
  3. Update task status: Allows you to change the status of a task.

    Example:

    ? Select a task to update: Review code changes
    ? Select new status: InProgress
    Task status changed from Todo to InProgress
  4. View all tasks: Displays a table with all tasks.

    Example:

    ┌─────────┬──────────────────────┬────────────────────────────────┬──────────┬────────────┐
    │ (index) │        title         │          description           │ priority │   status   │
    ├─────────┼──────────────────────┼────────────────────────────────┼──────────┼────────────┤
    │    1    │ Complete project ... │ Finish the quarterly proje ... │  'High'  │ 'Completed'│
    │    2    │ Review code changes  │ Review pull request #42        │ 'Medium' │ 'InProgr..'│
    └─────────┴──────────────────────┴────────────────────────────────┴──────────┴────────────┘
  5. View tasks by priority: Allows you to filter tasks by priority (Low, Medium, High).

    Example:

    ? Select priority: High
    ┌─────────┬──────────────────────┬────────────────────────────────┬──────────┬────────────┐
    │ (index) │        title         │          description           │ priority │   status   │
    ├─────────┼──────────────────────┼────────────────────────────────┼──────────┼────────────┤
    │    1    │ Complete project ... │ Finish the quarterly proje ... │  'High'  │ 'Completed'│
    └─────────┴──────────────────────┴────────────────────────────────┴──────────┴────────────┘
  6. Delete all tasks: Deletes all tasks in the system.

  7. Delete task by ID: Allows you to delete a specific task by its ID. Example:

    ? Complete project
  8. Delete tasks by filter: Allows you to delete tasks based on specific criteria (ID, title, description, priority, or status).

    Example:

    ? id
      title
      description
      priority
      status
  9. Exit: Closes the application.

Development

To set up the project for development:

  1. Clone the repository:

    git clone https://github.com/Slygriyrsk/ts-task-manager-cli.git
    cd ts-task-manager-cli
  2. Install dependencies:

    npm install
  3. Build the project:

    npm run build

Screenshot 2024-11-01 232602

  1. Run the CLI in development mode:
    npm start

Screenshot 2024-11-01 233652

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.