ascii-pipeline

0.2.1Β β€’Β PublicΒ β€’Β Published

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:

Readme

Keywords

none

Package Sidebar

Install

npm i ascii-pipeline

Weekly Downloads

6

Version

0.2.1

License

Apache-2.0

Unpacked Size

30.1 kB

Total Files

6

Last publish

Collaborators

  • gabrielcsapo