Permalink
Browse files

image viewer bin script

  • Loading branch information...
substack committed May 6, 2012
1 parent ef372dc commit b0d96e643bcb94c7778010c9d136e694893f067c
Showing with 14 additions and 0 deletions.
  1. +11 −0 bin/tube.js
  2. +3 −0 package.json
View
@@ -0,0 +1,11 @@
+#!/usr/bin/env node
+var argv = require('optimist')
+ .usage('Usage: picture-tube OPTIONS file')
+ .demand(1)
+ .describe('cols', 'number of columns to use for output')
+ .argv
+;
+var tube = require('../')(argv);
+var fs = require('fs');
+fs.createReadStream(argv._[0]).pipe(tube);
+tube.pipe(process.stdout);
View
@@ -7,6 +7,9 @@
"url" : "git://github.com/substack/picture-tube.git"
},
"main" : "index.js",
+ "bin" : {
+ "picture-tube" : "bin/tube.js"
+ },
"keywords" : [
"png",
"viewer",

0 comments on commit b0d96e6

Please sign in to comment.