listr3
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

listr-3

A dead-simple terminal task list.

Installation

npm i listr3

Example

listr-3-anim

Listr3 is designed to be super-simple to use. No need to write a schema before-hand, just say what you're doing and we'll handle it.

import Task from "listr3"
 
const task = new Task()
 
task("Doing stuff...")
sleep(1000)
 
task("Doing next stuff...")
sleep(1000)
 
const progress = task("Doing some complicated stuff", 400)
 
for (let i = 0; i < 400; i++) {
  sleep(100)
  progress()
}
 
task("Finally finishing up...")
sleep(1000)
 
task.finish()

Customization

We use the ora and cli-progress projects and make those option sets fully available - check out the types.

Contribution

Contribution is encouraged! If I missed anything, or there's a use-case I didn't consider, definitely feel free to file an issue and/or PR. This project is licensed under the MIT license as most npm packages are. (see license.md).

Package Sidebar

Install

npm i listr3

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

38.1 kB

Total Files

65

Last publish

Collaborators

  • mpoteat