npm.io
1.0.3 • Published 7 years ago

listr-compose

Licence
MIT
Version
1.0.3
Deps
1
Size
5 kB
Vulns
0
Weekly
0
Stars
1

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

Keywords