Skip to content

Commit

Permalink
Made require('node.io') relative from ./bin
Browse files Browse the repository at this point in the history
  • Loading branch information
chriso committed Jul 20, 2011
1 parent d7b912e commit ea1b22f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
5 changes: 4 additions & 1 deletion bin/io
@@ -1,2 +1,5 @@
#!/usr/bin/env node
require('node.io').cli(process.argv.slice(2));
var path = require('path')
, fs = require('fs')
, lib = path.join(path.dirname(fs.realpathSync(__filename)), '../');
require(lib).cli(process.argv.slice(2));
5 changes: 4 additions & 1 deletion bin/node.io
@@ -1,2 +1,5 @@
#!/usr/bin/env node
require('node.io').cli(process.argv.slice(2));
var path = require('path')
, fs = require('fs')
, lib = path.join(path.dirname(fs.realpathSync(__filename)), '../');
require(lib).cli(process.argv.slice(2));
5 changes: 4 additions & 1 deletion bin/node.io-web
@@ -1,2 +1,5 @@
#!/usr/bin/env node
require('node.io').web(process.argv.slice(2));
var path = require('path')
, fs = require('fs')
, lib = path.join(path.dirname(fs.realpathSync(__filename)), '../');
require(lib).web(process.argv.slice(2));
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{ "name" : "node.io",
"description" : "A distributed data scraping and processing framework",
"version" : "0.3.5",
"version" : "0.3.6",
"homepage" : "http://github.com/chriso/node.io",
"keywords" : ["data","mapreduce","map","reduce","scraping","html","parsing","parse","scrape","process","processing","data"],
"author" : "Chris O'Hara <cohara87@gmail.com>",
Expand Down

0 comments on commit ea1b22f

Please sign in to comment.