https://github.com/eval/spark-cljs
Port of https://github.com/holman/spark in clojurescript
https://github.com/eval/spark-cljs
Last synced: 3 months ago
JSON representation
Port of https://github.com/holman/spark in clojurescript
- Host: GitHub
- URL: https://github.com/eval/spark-cljs
- Owner: eval
- License: mit
- Created: 2013-12-08T17:02:25.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-12-08T18:00:10.000Z (over 11 years ago)
- Last Synced: 2025-01-13T01:44:29.561Z (5 months ago)
- Language: Clojure
- Homepage:
- Size: 129 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
spark-cljs
==========Port of https://github.com/holman/spark in clojurescript
Requirements
------------- [Leiningen](https://github.com/technomancy/leiningen)
- [Nodejs](https://github.com/joyent/node)
- [roundup](https://github.com/bmizerany/roundup) (for tests)Usage
------------```bash
# Build it
$ lein cljsbuild once# Run it
$ node out/spark.js 0 30 55 80 33 150
▁▂▃▅▂▇# Help
$ node out/spark.js -h
```Testing
------------```bash
# Build it
$ lein cljsbuild once$ test/spark-test.sh
spark: Generates sparklines for a set of data.
it_shows_help_with_no_argv: [PASS]
it_shows_help_with_dash_h: [PASS]
it_graphs_argv_data: [PASS]
it_charts_pipe_data: [PASS]
it_charts_pipe_data_with_newlines: [PASS]
it_charts_spaced_data: [PASS]
it_charts_way_spaced_data: [PASS]
it_handles_decimals: [PASS]
it_charts_100_lt_300: [PASS]
it_charts_50_lt_100: [PASS]
it_charts_4_lt_8: [PASS]
it_charts_no_tier_0: [PASS]
=========================================================
Tests: 12 | Passed: 12 | Failed: 0
```