JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1538903
  • Score
    100M100P100Q190780F
  • License MIT

Terminal task list

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 Build Status

Terminal task list

Install

$ npm install --save listr

Usage

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.

  • ora - Elegant terminal spinner
  • cli-spinners - Spinners for use in the terminal

License

MIT © Sam Verschueren