Skip to content

gabrielcsapo/ascii-pipeline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

17 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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: