Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Made require('node.io') relative from ./bin

  • Loading branch information...
commit ea1b22f3cad87aa9a05567fc886a78df1d9f3ba1 1 parent d7b912e
@chriso authored
Showing with 13 additions and 4 deletions.
  1. +4 −1 bin/io
  2. +4 −1 bin/node.io
  3. +4 −1 bin/node.io-web
  4. +1 −1  package.json
View
5 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));
View
5 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));
View
5 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));
View
2  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>",
Please sign in to comment.
Something went wrong with that request. Please try again.