ASCII sparklines for Node
JavaScript
Switch branches/tags
Nothing to show
Pull request Compare This branch is 7 commits ahead, 17 commits behind msiebuhr:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
package.json
spark.js

README.md

Textspark

Node.js/JavaScript implementation of @holman's spark.

Install

From repository:

git clone git://github.com/msiebuhr/node-textspark.git
cd node-textspark
npm link
cd ../your-other-project
npm link textspark

From NPM:

npm install textspark

Usage

#!/usr/bin/env node

var spark = require('textspark');

console.log(spark([1,2,3,4,5,6,7,3]))

Returns:

▁▂▂▃▅▆▆▂

TODO

  • CLI binary, so it behaves like the original spark-tool.
  • Tests

License

Three-clause BSD; see LICENSE.