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

@abdul_waheed/time-management-system

v1.0.0

Published

The Advanced Time Management System is a comprehensive console-based application designed to help users manage their tasks and track the time spent on each task efficiently. Built using TypeScript, the application leverages the `inquirer` library for inte

Downloads

1

Readme

Advanced Time Management System in TypeScript

Project Description

The Advanced Time Management System is a comprehensive console-based application designed to help users manage their tasks and track the time spent on each task efficiently. Built using TypeScript, the application leverages the inquirer library for interactive command-line prompts and fs-extra for file operations, ensuring that all task data is persistently stored and retrievable.

Features

  1. Add Task:

    • Allows users to create new tasks by providing a title and description.
    • Each task is assigned a unique ID for easy identification and management.
  2. Start Task:

    • Enables users to start a timer for a selected task.
    • Records the start time of the task, allowing for precise time tracking.
  3. Stop Task:

    • Allows users to stop the timer for a selected task.
    • Records the end time and calculates the total time spent on the task, adding it to the task's cumulative time.
  4. View Tasks:

    • Displays a list of all tasks, including their details such as ID, title, description, total time spent, and individual time logs.
    • Provides a clear and organized view of each task’s time logs, showing start and end times for each logged session.

Project Structure

  • index.ts: The main file containing all the logic and functionality of the time management system. It includes functions for adding tasks, starting and stopping timers, and viewing task logs.
  • tasks.json: A JSON file used to store task data persistently. This file is read and written to by the application to maintain the state of tasks between sessions.

Workflow

  1. Initialization:

    • The project is set up by initializing a Node.js project and installing the necessary dependencies, including TypeScript, ts-node, inquirer, and fs-extra.
  2. Main Menu:

    • The application starts by displaying a main menu with options to add a task, start a task, stop a task, view tasks, or exit the application.
    • Users interact with the menu using command-line prompts provided by the inquirer library.
  3. Task Management:

    • Add Task: Users are prompted to enter a title and description for a new task. The task is then added to the list and saved to the tasks.json file.
    • Start Task: Users select a task by ID to start the timer. The start time is recorded, and the task’s details are updated in the tasks.json file.
    • Stop Task: Users select a task by ID to stop the timer. The end time is recorded, the total time spent on the task is updated, and the task’s details are saved to the tasks.json file.
    • View Tasks: The application displays all tasks with their details, including the total time spent and individual time logs.

Data Persistence

  • The application uses the fs-extra library for file operations, ensuring that all task data is saved to the tasks.json file.
  • Tasks are loaded from the file when the application starts, and any changes (e.g., adding tasks, starting/stopping timers) are saved back to the file immediately.

Benefits

  • Efficiency: Helps users manage their time more effectively by tracking the time spent on various tasks.
  • Organization: Provides a clear and organized way to view tasks and their associated time logs.
  • Persistence: Ensures that task data is not lost between sessions by storing it in a JSON file.

This project provides a robust solution for time management, allowing users to keep track of their tasks and the time spent on each, thus improving productivity and time management skills.