@rharkor/task
v1.0.1
Published
Track task progress of your scripts
Downloads
1,529
Maintainers
Readme
Task 📝
Task is an intuitive and robust tool for logging messages and tracking task progress of your scripts. It's designed to be simple to integrate and provides a variety of logging options to suit your needs.
Based on the original Logger project.
Features 🌟
- Simple Integration: Easily add Task to your project with a single command.
- Customizable Logging: Choose from a variety of logging options to suit your needs.
- Task Tracking: Monitor task progress with Task's built-in tracking capabilities.
Installation 🔧
Install Task with a simple command:
npm install @rharkor/task
Usage 🛠️
Task
To start using task in your project, simply import and use the logging functions as shown:
import { task } from "@rharkor/task"
const task1 = await task.startTask({
name: "Task 1",
})
for (let i = 0; i < 50; i++) {
task1.log("This is a task message " + i)
await new Promise((resolve) => setTimeout(resolve, 50))
}
task1.stop("Task 1 is done")
License 📄
This project is distributed under the MIT License. For more details, see the LICENSE file in the repository.
This enhanced README not only clarifies usage but also incorporates emojis to make it more engaging and reader-friendly.