drawille-spark

1.0.1 • Public • Published

drawille-spark

Draw sparklines.

Install

Install the package with npm:

$ npm install drawille-spark

If you need the CLI tool, install it globally:

$ npm install drawille-spark -g

Usage

$ spark 0 30 55 80 33 150
⣠⣶⣼
echo 0 30 55 80 33 150 | spark
⣠⣶⣼
echo 0 30 55 80 33 150 | spark --lines 2
 ⢀⢸
⣰⣿⣾

API

spark(numbers[, lines])

Returns a String, with numbers graphed on it. The graph has height of lines line (defaults to 1).

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    7
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    7
  • 1.0.0
    1

Package Sidebar

Install

npm i drawille-spark

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • lennon