Comparing version 0.0.4 to 0.0.5
@@ -1,14 +0,12 @@ | ||
#!/usr/local/bin/node | ||
#!/usr/bin/env node | ||
var app, data, index, _; | ||
_ = require('underscore'); | ||
var data, clark, a; | ||
clark = require('clark').clark; | ||
data = []; | ||
index = 0; | ||
_.find(process.argv, function(a, i) { | ||
index = i; | ||
return !_.isNaN(parseInt(a)); | ||
}); | ||
for(a in process.argv){ | ||
if(a > 1) // ignore name and 'executable' | ||
data.push(process.argv[a >> 0]); | ||
} | ||
data = _.rest(process.argv, index); | ||
process.stdout.write(clark(data) + "\n"); |
(function() { | ||
var data, ticks; | ||
ticks = ['▁', '▂', '▃', '▄', '▅', '▆', '▇', '█']; | ||
exports.clark = function(data) { | ||
@@ -18,2 +20,3 @@ var m, n, t; | ||
}; | ||
if (require.main === module) { | ||
@@ -27,2 +30,3 @@ data = process.argv.map(function(a) { | ||
} | ||
}).call(this); |
{ | ||
"name": "clark", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "ASCII sparklines in coffeescript. Based on 'spark' for shell.", | ||
@@ -24,2 +24,1 @@ "keywords": ["ascii", "graph", "spark", "sparklines"], | ||
} | ||
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
18819
36
219