JSPM

listr-compose

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

Compose multiple listr task lists into one.

Package Exports

  • listr-compose

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-compose) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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