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: