github

chunqiuyiyu / ervy

  • пятница, 2 ноября 2018 г. в 00:15:54
https://github.com/chunqiuyiyu/ervy

JavaScript
Bring charts to terminal.



___________                    
\_   _____/_________  _____.__.
 |    __)_\_  __ \  \/ <   |  |
 |        \|  | \/\   / \___  |
/_______  /|__|    \_/  / ____|
        \/              \/     

Travis (.org) GitHub JavaScript Style Guide

Bring charts to terminal.

Preview

Ervy site

Why build this

There is no special reason, just because I love terminal and ASCII art. It's very cool! Hope you enjoy Ervy and make your terminal more beautiful.

Supported Chart types

Bar

Pie

bullet

Donut

Gauge

Scatter

APIs

main function

ervy.[chartType](data, options)

render colored characters

// foreground color
ervy.fg(color, character)

// background color
ervy.bg(color, [length])

Supported color: black, red, green, yellow, blue, magenta, cyan and white.

Use demo to understand how to combine APIs in actual code.

Documents

Come soon...

License

MIT