0.2.1 • Published 1 year ago
ascii-pipeline v0.2.1
ascii-pipeline
📟 ascii pipelines made easy
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: