Skip to content

Commit ea1b22f

Browse files
committed
Made require('node.io') relative from ./bin
1 parent d7b912e commit ea1b22f

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

bin/io

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
#!/usr/bin/env node
2-
require('node.io').cli(process.argv.slice(2));
2+
var path = require('path')
3+
, fs = require('fs')
4+
, lib = path.join(path.dirname(fs.realpathSync(__filename)), '../');
5+
require(lib).cli(process.argv.slice(2));

bin/node.io

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
#!/usr/bin/env node
2-
require('node.io').cli(process.argv.slice(2));
2+
var path = require('path')
3+
, fs = require('fs')
4+
, lib = path.join(path.dirname(fs.realpathSync(__filename)), '../');
5+
require(lib).cli(process.argv.slice(2));

bin/node.io-web

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
#!/usr/bin/env node
2-
require('node.io').web(process.argv.slice(2));
2+
var path = require('path')
3+
, fs = require('fs')
4+
, lib = path.join(path.dirname(fs.realpathSync(__filename)), '../');
5+
require(lib).web(process.argv.slice(2));

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{ "name" : "node.io",
22
"description" : "A distributed data scraping and processing framework",
3-
"version" : "0.3.5",
3+
"version" : "0.3.6",
44
"homepage" : "http://github.com/chriso/node.io",
55
"keywords" : ["data","mapreduce","map","reduce","scraping","html","parsing","parse","scrape","process","processing","data"],
66
"author" : "Chris O'Hara <cohara87@gmail.com>",

0 commit comments

Comments
 (0)