textspark

Text sparklines

Textspark

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

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
#!/usr/bin/env node
var spark = require('textspark');
console.log(spark([1,2,3,4,5,6,7,3]))

Prints:

▁▂▃▄▅▆▇▃

Three-clause BSD; see LICENSE.