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

1.0.3 • Public • Published

Listr Compose

Compose multiple listr task lists into one.

Install

npm install --save listr-compose

Usage

import * as Listr from 'listr';
import compose from 'listr-compose';
 
const listFoo = new Listr ([
  {
    title: 'Foo',
    task: () => true
  }
]);
 
const listBar = new Listr ([
  {
    title: 'Bar',
    task: () => true
  }
]);
 
const listFooBar = compose ( listFoo, listBar );
 
listFooBar.run ();

License

MIT © Fabio Spampinato

Dependents (2)

Package Sidebar

Install

npm i listr-compose

Weekly Downloads

2

Version

1.0.3

License

MIT

Unpacked Size

5.61 kB

Total Files

8

Last publish

Collaborators

  • fabiospampinato