Permalink
Browse files

COMMANDer data

  • Loading branch information...
substack committed Jul 1, 2012
1 parent 8721f9d commit b69196b1bb6635371445671a82a50ef151434d3b
Showing with 25 additions and 2 deletions.
  1. +14 −0 README.markdown
  2. +7 −0 bin/cmd.js
  3. +4 −2 package.json
View
@@ -25,12 +25,26 @@ Return a readable animated hot ansi tea stream.
Return a readable cold ansi tea stream.
+# command-line usage
+
+```
+usage: earl-grey {hot|cold}
+```
+
# install
+To get the library, with [npm](http://npmjs.org) do:
+
```
npm install earl-grey
```
+and to get the command:
+
+```
+npm install -g earl-grey
+```
+
# license
MIT
View
@@ -0,0 +1,7 @@
+#!/usr/bin/env node
+var tea = require('../');
+var temp = process.argv[2] || 'hot';
+if ([ 'hot', 'cold' ].indexOf(temp) < 0) {
+ return console.error('impossible temperature');
+}
+tea[temp]().pipe(process.stdout);
View
@@ -1,9 +1,11 @@
{
"name" : "earl-grey",
- "version" : "0.0.0",
+ "version" : "0.0.1",
"description" : "animated ansi earl grey tea",
"main" : "index.js",
- "bin" : {},
+ "bin" : {
+ "earl-grey" : "bin/cmd.js"
+ },
"directories" : {
"example" : "example",
"test" : "test"

0 comments on commit b69196b

Please sign in to comment.