0.2.1 • Published 1 year ago

ascii-pipeline v0.2.1

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
1 year ago

ascii-pipeline

📟 ascii pipelines made easy

Npm Version Build Status Dependency Status devDependency Status Coverage Status npm npm

Installation

npm install ascii-pipeline --save

Usage

const Pipeline = require('ascii-pipeline');

const pipe = new Pipeline([{
  name: 'starting',
  status: 'SUCCESS',
}, {
  name: 'nested',
  status: 'SUCCESS',
  children: [{
    name: 'child',
    status: 'FAIL'
  }, {
    name: 'child1',
    status: 'SUCCESS'
  },]
},{
  name: 'almost',
  status: 'IN_PROGRESS'
},{
  name: 'ending',
  status: 'UNKNOWN'
}]);

console.log(pipe.toString());

This will output:

 ─ starting ┬ nested ┬  ─ almost ─ ─ ending ─ 
            ├ child  ┤                        
            └ child1 ┘                        

Or the colorized version:

0.2.1

1 year ago

0.2.0

5 years ago

0.1.0

5 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago