Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gabrielcsapo/ascii-pipeline
📟 ascii pipelines made easy
https://github.com/gabrielcsapo/ascii-pipeline
ascii javascript pipeline utility
Last synced: 21 days ago
JSON representation
📟 ascii pipelines made easy
- Host: GitHub
- URL: https://github.com/gabrielcsapo/ascii-pipeline
- Owner: gabrielcsapo
- License: apache-2.0
- Created: 2018-01-01T02:13:56.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-02T22:02:05.000Z (almost 2 years ago)
- Last Synced: 2024-10-13T20:44:45.548Z (24 days ago)
- Topics: ascii, javascript, pipeline, utility
- Language: JavaScript
- Homepage: https://gabrielcsapo.github.io/ascii-pipeline
- Size: 650 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# ascii-pipeline
> 📟 ascii pipelines made easy
[![Npm Version](https://img.shields.io/npm/v/ascii-pipeline.svg)](https://www.npmjs.com/package/ascii-pipeline)
[![Build Status](https://travis-ci.org/gabrielcsapo/ascii-pipeline.svg?branch=master)](https://travis-ci.org/gabrielcsapo/ascii-pipeline)
[![Dependency Status](https://starbuck.gabrielcsapo.com/badge/github/gabrielcsapo/ascii-pipeline/status.svg)](https://starbuck.gabrielcsapo.com/github/gabrielcsapo/ascii-pipeline)
[![devDependency Status](https://starbuck.gabrielcsapo.com/badge/github/gabrielcsapo/ascii-pipeline/dev-status.svg)](https://starbuck.gabrielcsapo.com/github/gabrielcsapo/ascii-pipeline#info=devDependencies)
[![Coverage Status](https://lcov-server.gabrielcsapo.com/badge/github%2Ecom/gabrielcsapo/ascii-pipeline.svg)](https://lcov-server.gabrielcsapo.com/coverage/github%2Ecom/gabrielcsapo/ascii-pipeline)
[![npm](https://img.shields.io/npm/dt/ascii-pipeline.svg?maxAge=2592000)]()
[![npm](https://img.shields.io/npm/dm/ascii-pipeline.svg?maxAge=2592000)]()## Installation
```
npm install ascii-pipeline --save
```## Usage
```js
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:
```bash
─ starting ┬ nested ┬ ─ almost ─ ─ ending ─
├ child ┤
└ child1 ┘
```Or the colorized version: