Package Exports
- listr
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (listr) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
listr 
Terminal task list
Install
$ npm install --save listrUsage
const execa = require('execa');
const Listr = require('listr');
const tasks = new Listr([
{
message: 'Install package dependencies',
task: () => execa('npm', ['install'])
},
{
message: 'Run tests',
task: () => execa('npm', ['test'])
},
{
message: 'Publish package',
task: () => execa('npm', ['publish'])
}
]);
tasks.run().catch(err => {
console.error(err);
});API
Listr([tasks])
tasks
Type: object[]
List of tasks.
message
Type: string
Message of the task.
task
Type: Function
Task function.
Instance
addTask(task)
task
Type: object[]
Task object.
run()
Start executing the tasks.
Related
- ora - Elegant terminal spinner
- cli-spinners - Spinners for use in the terminal
License
MIT © Sam Verschueren