node_task 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/lib/node_task/index.js +28 -21
  3. data/lib/node_task/node_modules/ndjson/cli.js +23 -0
  4. data/lib/node_task/node_modules/ndjson/collaborators.md +7 -0
  5. data/lib/node_task/node_modules/ndjson/index.js +30 -0
  6. data/lib/node_task/node_modules/ndjson/node_modules/minimist/example/parse.js +2 -0
  7. data/lib/node_task/node_modules/ndjson/node_modules/minimist/index.js +236 -0
  8. data/lib/node_task/node_modules/ndjson/node_modules/minimist/package.json +71 -0
  9. data/lib/node_task/node_modules/ndjson/node_modules/minimist/readme.markdown +91 -0
  10. data/lib/node_task/node_modules/ndjson/node_modules/minimist/test/all_bool.js +32 -0
  11. data/lib/node_task/node_modules/ndjson/node_modules/minimist/test/bool.js +166 -0
  12. data/lib/node_task/node_modules/ndjson/node_modules/minimist/test/dash.js +31 -0
  13. data/lib/node_task/node_modules/ndjson/node_modules/minimist/test/default_bool.js +35 -0
  14. data/lib/node_task/node_modules/ndjson/node_modules/minimist/test/dotted.js +22 -0
  15. data/lib/node_task/node_modules/ndjson/node_modules/minimist/test/kv_short.js +16 -0
  16. data/lib/node_task/node_modules/ndjson/node_modules/minimist/test/long.js +31 -0
  17. data/lib/node_task/node_modules/ndjson/node_modules/minimist/test/num.js +36 -0
  18. data/lib/node_task/node_modules/ndjson/node_modules/minimist/test/parse.js +197 -0
  19. data/lib/node_task/node_modules/ndjson/node_modules/minimist/test/parse_modified.js +9 -0
  20. data/lib/node_task/node_modules/ndjson/node_modules/minimist/test/short.js +67 -0
  21. data/lib/node_task/node_modules/ndjson/node_modules/minimist/test/stop_early.js +15 -0
  22. data/lib/node_task/node_modules/ndjson/node_modules/minimist/test/unknown.js +102 -0
  23. data/lib/node_task/node_modules/ndjson/node_modules/minimist/test/whitespace.js +8 -0
  24. data/lib/node_task/node_modules/ndjson/node_modules/split2/README.md +74 -0
  25. data/lib/node_task/node_modules/ndjson/node_modules/split2/index.js +83 -0
  26. data/lib/node_task/node_modules/ndjson/node_modules/split2/package.json +55 -0
  27. data/lib/node_task/node_modules/ndjson/node_modules/split2/test.js +149 -0
  28. data/lib/node_task/node_modules/ndjson/node_modules/through2/README.md +132 -0
  29. data/lib/node_task/node_modules/ndjson/node_modules/through2/node_modules/readable-stream/README.md +15 -0
  30. data/lib/node_task/node_modules/ndjson/node_modules/through2/node_modules/readable-stream/duplex.js +1 -0
  31. data/lib/node_task/node_modules/ndjson/node_modules/through2/node_modules/readable-stream/lib/_stream_duplex.js +89 -0
  32. data/lib/node_task/node_modules/ndjson/node_modules/through2/node_modules/readable-stream/lib/_stream_passthrough.js +46 -0
  33. data/lib/node_task/node_modules/ndjson/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js +982 -0
  34. data/lib/node_task/node_modules/ndjson/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js +210 -0
  35. data/lib/node_task/node_modules/ndjson/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js +386 -0
  36. data/lib/node_task/node_modules/ndjson/node_modules/through2/node_modules/readable-stream/node_modules/core-util-is/README.md +3 -0
  37. data/lib/node_task/node_modules/ndjson/node_modules/through2/node_modules/readable-stream/node_modules/core-util-is/float.patch +604 -0
  38. data/lib/node_task/node_modules/ndjson/node_modules/through2/node_modules/readable-stream/node_modules/core-util-is/lib/util.js +107 -0
  39. data/lib/node_task/node_modules/ndjson/node_modules/through2/node_modules/readable-stream/node_modules/core-util-is/package.json +53 -0
  40. data/lib/node_task/node_modules/ndjson/node_modules/through2/node_modules/readable-stream/node_modules/core-util-is/util.js +106 -0
  41. data/lib/node_task/node_modules/ndjson/node_modules/through2/node_modules/readable-stream/node_modules/inherits/README.md +42 -0
  42. data/lib/node_task/node_modules/ndjson/node_modules/through2/node_modules/readable-stream/node_modules/inherits/inherits.js +1 -0
  43. data/lib/node_task/node_modules/ndjson/node_modules/through2/node_modules/readable-stream/node_modules/inherits/inherits_browser.js +23 -0
  44. data/lib/node_task/node_modules/ndjson/node_modules/through2/node_modules/readable-stream/node_modules/inherits/package.json +50 -0
  45. data/lib/node_task/node_modules/ndjson/node_modules/through2/node_modules/readable-stream/node_modules/inherits/test.js +25 -0
  46. data/lib/node_task/node_modules/ndjson/node_modules/through2/node_modules/readable-stream/node_modules/isarray/README.md +54 -0
  47. data/lib/node_task/node_modules/ndjson/node_modules/through2/node_modules/readable-stream/node_modules/isarray/build/build.js +209 -0
  48. data/lib/node_task/node_modules/ndjson/node_modules/through2/node_modules/readable-stream/node_modules/isarray/component.json +19 -0
  49. data/lib/node_task/node_modules/ndjson/node_modules/through2/node_modules/readable-stream/node_modules/isarray/index.js +3 -0
  50. data/lib/node_task/node_modules/ndjson/node_modules/through2/node_modules/readable-stream/node_modules/isarray/package.json +53 -0
  51. data/lib/node_task/node_modules/ndjson/node_modules/through2/node_modules/readable-stream/node_modules/string_decoder/README.md +7 -0
  52. data/lib/node_task/node_modules/ndjson/node_modules/through2/node_modules/readable-stream/node_modules/string_decoder/index.js +221 -0
  53. data/lib/node_task/node_modules/ndjson/node_modules/through2/node_modules/readable-stream/node_modules/string_decoder/package.json +54 -0
  54. data/lib/node_task/node_modules/ndjson/node_modules/through2/node_modules/readable-stream/package.json +70 -0
  55. data/lib/node_task/node_modules/ndjson/node_modules/through2/node_modules/readable-stream/passthrough.js +1 -0
  56. data/lib/node_task/node_modules/ndjson/node_modules/through2/node_modules/readable-stream/readable.js +8 -0
  57. data/lib/node_task/node_modules/ndjson/node_modules/through2/node_modules/readable-stream/transform.js +1 -0
  58. data/lib/node_task/node_modules/ndjson/node_modules/through2/node_modules/readable-stream/writable.js +1 -0
  59. data/lib/node_task/node_modules/ndjson/node_modules/through2/node_modules/xtend/README.md +32 -0
  60. data/lib/node_task/node_modules/ndjson/node_modules/through2/node_modules/xtend/immutable.js +17 -0
  61. data/lib/node_task/node_modules/ndjson/node_modules/through2/node_modules/xtend/mutable.js +15 -0
  62. data/lib/node_task/node_modules/ndjson/node_modules/through2/node_modules/xtend/package.json +88 -0
  63. data/lib/node_task/node_modules/ndjson/node_modules/through2/node_modules/xtend/test.js +63 -0
  64. data/lib/node_task/node_modules/ndjson/node_modules/through2/package.json +65 -0
  65. data/lib/node_task/node_modules/ndjson/node_modules/through2/through2.js +96 -0
  66. data/lib/node_task/node_modules/ndjson/package.json +64 -0
  67. data/lib/node_task/node_modules/ndjson/readme.md +55 -0
  68. data/lib/node_task/node_modules/ndjson/test.js +73 -0
  69. data/lib/node_task/node_task.rb +6 -13
  70. data/lib/node_task/package.json +2 -3
  71. metadata +69 -3
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "core-util-is",
3
+ "version": "1.0.1",
4
+ "description": "The `util.is*` functions introduced in Node v0.12.",
5
+ "main": "lib/util.js",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git://github.com/isaacs/core-util-is.git"
9
+ },
10
+ "keywords": [
11
+ "util",
12
+ "isBuffer",
13
+ "isArray",
14
+ "isNumber",
15
+ "isString",
16
+ "isRegExp",
17
+ "isThis",
18
+ "isThat",
19
+ "polyfill"
20
+ ],
21
+ "author": {
22
+ "name": "Isaac Z. Schlueter",
23
+ "email": "i@izs.me",
24
+ "url": "http://blog.izs.me/"
25
+ },
26
+ "license": "MIT",
27
+ "bugs": {
28
+ "url": "https://github.com/isaacs/core-util-is/issues"
29
+ },
30
+ "readme": "# core-util-is\n\nThe `util.is*` functions introduced in Node v0.12.\n",
31
+ "readmeFilename": "README.md",
32
+ "homepage": "https://github.com/isaacs/core-util-is",
33
+ "_id": "core-util-is@1.0.1",
34
+ "dist": {
35
+ "shasum": "6b07085aef9a3ccac6ee53bf9d3df0c1521a5538",
36
+ "tarball": "http://registry.npmjs.org/core-util-is/-/core-util-is-1.0.1.tgz"
37
+ },
38
+ "_from": "core-util-is@>=1.0.0 <1.1.0",
39
+ "_npmVersion": "1.3.23",
40
+ "_npmUser": {
41
+ "name": "isaacs",
42
+ "email": "i@izs.me"
43
+ },
44
+ "maintainers": [
45
+ {
46
+ "name": "isaacs",
47
+ "email": "i@izs.me"
48
+ }
49
+ ],
50
+ "directories": {},
51
+ "_shasum": "6b07085aef9a3ccac6ee53bf9d3df0c1521a5538",
52
+ "_resolved": "http://registry.npmjs.org/core-util-is/-/core-util-is-1.0.1.tgz"
53
+ }
@@ -0,0 +1,106 @@
1
+ // Copyright Joyent, Inc. and other Node contributors.
2
+ //
3
+ // Permission is hereby granted, free of charge, to any person obtaining a
4
+ // copy of this software and associated documentation files (the
5
+ // "Software"), to deal in the Software without restriction, including
6
+ // without limitation the rights to use, copy, modify, merge, publish,
7
+ // distribute, sublicense, and/or sell copies of the Software, and to permit
8
+ // persons to whom the Software is furnished to do so, subject to the
9
+ // following conditions:
10
+ //
11
+ // The above copyright notice and this permission notice shall be included
12
+ // in all copies or substantial portions of the Software.
13
+ //
14
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15
+ // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
17
+ // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
18
+ // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
19
+ // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
20
+ // USE OR OTHER DEALINGS IN THE SOFTWARE.
21
+
22
+ // NOTE: These type checking functions intentionally don't use `instanceof`
23
+ // because it is fragile and can be easily faked with `Object.create()`.
24
+ function isArray(ar) {
25
+ return Array.isArray(ar);
26
+ }
27
+ exports.isArray = isArray;
28
+
29
+ function isBoolean(arg) {
30
+ return typeof arg === 'boolean';
31
+ }
32
+ exports.isBoolean = isBoolean;
33
+
34
+ function isNull(arg) {
35
+ return arg === null;
36
+ }
37
+ exports.isNull = isNull;
38
+
39
+ function isNullOrUndefined(arg) {
40
+ return arg == null;
41
+ }
42
+ exports.isNullOrUndefined = isNullOrUndefined;
43
+
44
+ function isNumber(arg) {
45
+ return typeof arg === 'number';
46
+ }
47
+ exports.isNumber = isNumber;
48
+
49
+ function isString(arg) {
50
+ return typeof arg === 'string';
51
+ }
52
+ exports.isString = isString;
53
+
54
+ function isSymbol(arg) {
55
+ return typeof arg === 'symbol';
56
+ }
57
+ exports.isSymbol = isSymbol;
58
+
59
+ function isUndefined(arg) {
60
+ return arg === void 0;
61
+ }
62
+ exports.isUndefined = isUndefined;
63
+
64
+ function isRegExp(re) {
65
+ return isObject(re) && objectToString(re) === '[object RegExp]';
66
+ }
67
+ exports.isRegExp = isRegExp;
68
+
69
+ function isObject(arg) {
70
+ return typeof arg === 'object' && arg !== null;
71
+ }
72
+ exports.isObject = isObject;
73
+
74
+ function isDate(d) {
75
+ return isObject(d) && objectToString(d) === '[object Date]';
76
+ }
77
+ exports.isDate = isDate;
78
+
79
+ function isError(e) {
80
+ return isObject(e) && objectToString(e) === '[object Error]';
81
+ }
82
+ exports.isError = isError;
83
+
84
+ function isFunction(arg) {
85
+ return typeof arg === 'function';
86
+ }
87
+ exports.isFunction = isFunction;
88
+
89
+ function isPrimitive(arg) {
90
+ return arg === null ||
91
+ typeof arg === 'boolean' ||
92
+ typeof arg === 'number' ||
93
+ typeof arg === 'string' ||
94
+ typeof arg === 'symbol' || // ES6 symbol
95
+ typeof arg === 'undefined';
96
+ }
97
+ exports.isPrimitive = isPrimitive;
98
+
99
+ function isBuffer(arg) {
100
+ return arg instanceof Buffer;
101
+ }
102
+ exports.isBuffer = isBuffer;
103
+
104
+ function objectToString(o) {
105
+ return Object.prototype.toString.call(o);
106
+ }
@@ -0,0 +1,42 @@
1
+ Browser-friendly inheritance fully compatible with standard node.js
2
+ [inherits](http://nodejs.org/api/util.html#util_util_inherits_constructor_superconstructor).
3
+
4
+ This package exports standard `inherits` from node.js `util` module in
5
+ node environment, but also provides alternative browser-friendly
6
+ implementation through [browser
7
+ field](https://gist.github.com/shtylman/4339901). Alternative
8
+ implementation is a literal copy of standard one located in standalone
9
+ module to avoid requiring of `util`. It also has a shim for old
10
+ browsers with no `Object.create` support.
11
+
12
+ While keeping you sure you are using standard `inherits`
13
+ implementation in node.js environment, it allows bundlers such as
14
+ [browserify](https://github.com/substack/node-browserify) to not
15
+ include full `util` package to your client code if all you need is
16
+ just `inherits` function. It worth, because browser shim for `util`
17
+ package is large and `inherits` is often the single function you need
18
+ from it.
19
+
20
+ It's recommended to use this package instead of
21
+ `require('util').inherits` for any code that has chances to be used
22
+ not only in node.js but in browser too.
23
+
24
+ ## usage
25
+
26
+ ```js
27
+ var inherits = require('inherits');
28
+ // then use exactly as the standard one
29
+ ```
30
+
31
+ ## note on version ~1.0
32
+
33
+ Version ~1.0 had completely different motivation and is not compatible
34
+ neither with 2.0 nor with standard node.js `inherits`.
35
+
36
+ If you are using version ~1.0 and planning to switch to ~2.0, be
37
+ careful:
38
+
39
+ * new version uses `super_` instead of `super` for referencing
40
+ superclass
41
+ * new version overwrites current prototype while old one preserves any
42
+ existing fields on it
@@ -0,0 +1,23 @@
1
+ if (typeof Object.create === 'function') {
2
+ // implementation from standard node.js 'util' module
3
+ module.exports = function inherits(ctor, superCtor) {
4
+ ctor.super_ = superCtor
5
+ ctor.prototype = Object.create(superCtor.prototype, {
6
+ constructor: {
7
+ value: ctor,
8
+ enumerable: false,
9
+ writable: true,
10
+ configurable: true
11
+ }
12
+ });
13
+ };
14
+ } else {
15
+ // old school shim for old browsers
16
+ module.exports = function inherits(ctor, superCtor) {
17
+ ctor.super_ = superCtor
18
+ var TempCtor = function () {}
19
+ TempCtor.prototype = superCtor.prototype
20
+ ctor.prototype = new TempCtor()
21
+ ctor.prototype.constructor = ctor
22
+ }
23
+ }
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "inherits",
3
+ "description": "Browser-friendly inheritance fully compatible with standard node.js inherits()",
4
+ "version": "2.0.1",
5
+ "keywords": [
6
+ "inheritance",
7
+ "class",
8
+ "klass",
9
+ "oop",
10
+ "object-oriented",
11
+ "inherits",
12
+ "browser",
13
+ "browserify"
14
+ ],
15
+ "main": "./inherits.js",
16
+ "browser": "./inherits_browser.js",
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git://github.com/isaacs/inherits.git"
20
+ },
21
+ "license": "ISC",
22
+ "scripts": {
23
+ "test": "node test"
24
+ },
25
+ "bugs": {
26
+ "url": "https://github.com/isaacs/inherits/issues"
27
+ },
28
+ "_id": "inherits@2.0.1",
29
+ "dist": {
30
+ "shasum": "b17d08d326b4423e568eff719f91b0b1cbdf69f1",
31
+ "tarball": "http://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz"
32
+ },
33
+ "_from": "inherits@>=2.0.1 <2.1.0",
34
+ "_npmVersion": "1.3.8",
35
+ "_npmUser": {
36
+ "name": "isaacs",
37
+ "email": "i@izs.me"
38
+ },
39
+ "maintainers": [
40
+ {
41
+ "name": "isaacs",
42
+ "email": "i@izs.me"
43
+ }
44
+ ],
45
+ "directories": {},
46
+ "_shasum": "b17d08d326b4423e568eff719f91b0b1cbdf69f1",
47
+ "_resolved": "http://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz",
48
+ "readme": "ERROR: No README data found!",
49
+ "homepage": "https://github.com/isaacs/inherits#readme"
50
+ }
@@ -0,0 +1,25 @@
1
+ var inherits = require('./inherits.js')
2
+ var assert = require('assert')
3
+
4
+ function test(c) {
5
+ assert(c.constructor === Child)
6
+ assert(c.constructor.super_ === Parent)
7
+ assert(Object.getPrototypeOf(c) === Child.prototype)
8
+ assert(Object.getPrototypeOf(Object.getPrototypeOf(c)) === Parent.prototype)
9
+ assert(c instanceof Child)
10
+ assert(c instanceof Parent)
11
+ }
12
+
13
+ function Child() {
14
+ Parent.call(this)
15
+ test(this)
16
+ }
17
+
18
+ function Parent() {}
19
+
20
+ inherits(Child, Parent)
21
+
22
+ var c = new Child
23
+ test(c)
24
+
25
+ console.log('ok')
@@ -0,0 +1,54 @@
1
+
2
+ # isarray
3
+
4
+ `Array#isArray` for older browsers.
5
+
6
+ ## Usage
7
+
8
+ ```js
9
+ var isArray = require('isarray');
10
+
11
+ console.log(isArray([])); // => true
12
+ console.log(isArray({})); // => false
13
+ ```
14
+
15
+ ## Installation
16
+
17
+ With [npm](http://npmjs.org) do
18
+
19
+ ```bash
20
+ $ npm install isarray
21
+ ```
22
+
23
+ Then bundle for the browser with
24
+ [browserify](https://github.com/substack/browserify).
25
+
26
+ With [component](http://component.io) do
27
+
28
+ ```bash
29
+ $ component install juliangruber/isarray
30
+ ```
31
+
32
+ ## License
33
+
34
+ (MIT)
35
+
36
+ Copyright (c) 2013 Julian Gruber &lt;julian@juliangruber.com&gt;
37
+
38
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
39
+ this software and associated documentation files (the "Software"), to deal in
40
+ the Software without restriction, including without limitation the rights to
41
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
42
+ of the Software, and to permit persons to whom the Software is furnished to do
43
+ so, subject to the following conditions:
44
+
45
+ The above copyright notice and this permission notice shall be included in all
46
+ copies or substantial portions of the Software.
47
+
48
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
49
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
50
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
51
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
52
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
53
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
54
+ SOFTWARE.
@@ -0,0 +1,209 @@
1
+
2
+ /**
3
+ * Require the given path.
4
+ *
5
+ * @param {String} path
6
+ * @return {Object} exports
7
+ * @api public
8
+ */
9
+
10
+ function require(path, parent, orig) {
11
+ var resolved = require.resolve(path);
12
+
13
+ // lookup failed
14
+ if (null == resolved) {
15
+ orig = orig || path;
16
+ parent = parent || 'root';
17
+ var err = new Error('Failed to require "' + orig + '" from "' + parent + '"');
18
+ err.path = orig;
19
+ err.parent = parent;
20
+ err.require = true;
21
+ throw err;
22
+ }
23
+
24
+ var module = require.modules[resolved];
25
+
26
+ // perform real require()
27
+ // by invoking the module's
28
+ // registered function
29
+ if (!module.exports) {
30
+ module.exports = {};
31
+ module.client = module.component = true;
32
+ module.call(this, module.exports, require.relative(resolved), module);
33
+ }
34
+
35
+ return module.exports;
36
+ }
37
+
38
+ /**
39
+ * Registered modules.
40
+ */
41
+
42
+ require.modules = {};
43
+
44
+ /**
45
+ * Registered aliases.
46
+ */
47
+
48
+ require.aliases = {};
49
+
50
+ /**
51
+ * Resolve `path`.
52
+ *
53
+ * Lookup:
54
+ *
55
+ * - PATH/index.js
56
+ * - PATH.js
57
+ * - PATH
58
+ *
59
+ * @param {String} path
60
+ * @return {String} path or null
61
+ * @api private
62
+ */
63
+
64
+ require.resolve = function(path) {
65
+ if (path.charAt(0) === '/') path = path.slice(1);
66
+ var index = path + '/index.js';
67
+
68
+ var paths = [
69
+ path,
70
+ path + '.js',
71
+ path + '.json',
72
+ path + '/index.js',
73
+ path + '/index.json'
74
+ ];
75
+
76
+ for (var i = 0; i < paths.length; i++) {
77
+ var path = paths[i];
78
+ if (require.modules.hasOwnProperty(path)) return path;
79
+ }
80
+
81
+ if (require.aliases.hasOwnProperty(index)) {
82
+ return require.aliases[index];
83
+ }
84
+ };
85
+
86
+ /**
87
+ * Normalize `path` relative to the current path.
88
+ *
89
+ * @param {String} curr
90
+ * @param {String} path
91
+ * @return {String}
92
+ * @api private
93
+ */
94
+
95
+ require.normalize = function(curr, path) {
96
+ var segs = [];
97
+
98
+ if ('.' != path.charAt(0)) return path;
99
+
100
+ curr = curr.split('/');
101
+ path = path.split('/');
102
+
103
+ for (var i = 0; i < path.length; ++i) {
104
+ if ('..' == path[i]) {
105
+ curr.pop();
106
+ } else if ('.' != path[i] && '' != path[i]) {
107
+ segs.push(path[i]);
108
+ }
109
+ }
110
+
111
+ return curr.concat(segs).join('/');
112
+ };
113
+
114
+ /**
115
+ * Register module at `path` with callback `definition`.
116
+ *
117
+ * @param {String} path
118
+ * @param {Function} definition
119
+ * @api private
120
+ */
121
+
122
+ require.register = function(path, definition) {
123
+ require.modules[path] = definition;
124
+ };
125
+
126
+ /**
127
+ * Alias a module definition.
128
+ *
129
+ * @param {String} from
130
+ * @param {String} to
131
+ * @api private
132
+ */
133
+
134
+ require.alias = function(from, to) {
135
+ if (!require.modules.hasOwnProperty(from)) {
136
+ throw new Error('Failed to alias "' + from + '", it does not exist');
137
+ }
138
+ require.aliases[to] = from;
139
+ };
140
+
141
+ /**
142
+ * Return a require function relative to the `parent` path.
143
+ *
144
+ * @param {String} parent
145
+ * @return {Function}
146
+ * @api private
147
+ */
148
+
149
+ require.relative = function(parent) {
150
+ var p = require.normalize(parent, '..');
151
+
152
+ /**
153
+ * lastIndexOf helper.
154
+ */
155
+
156
+ function lastIndexOf(arr, obj) {
157
+ var i = arr.length;
158
+ while (i--) {
159
+ if (arr[i] === obj) return i;
160
+ }
161
+ return -1;
162
+ }
163
+
164
+ /**
165
+ * The relative require() itself.
166
+ */
167
+
168
+ function localRequire(path) {
169
+ var resolved = localRequire.resolve(path);
170
+ return require(resolved, parent, path);
171
+ }
172
+
173
+ /**
174
+ * Resolve relative to the parent.
175
+ */
176
+
177
+ localRequire.resolve = function(path) {
178
+ var c = path.charAt(0);
179
+ if ('/' == c) return path.slice(1);
180
+ if ('.' == c) return require.normalize(p, path);
181
+
182
+ // resolve deps by returning
183
+ // the dep in the nearest "deps"
184
+ // directory
185
+ var segs = parent.split('/');
186
+ var i = lastIndexOf(segs, 'deps') + 1;
187
+ if (!i) i = 0;
188
+ path = segs.slice(0, i + 1).join('/') + '/deps/' + path;
189
+ return path;
190
+ };
191
+
192
+ /**
193
+ * Check if module is defined at `path`.
194
+ */
195
+
196
+ localRequire.exists = function(path) {
197
+ return require.modules.hasOwnProperty(localRequire.resolve(path));
198
+ };
199
+
200
+ return localRequire;
201
+ };
202
+ require.register("isarray/index.js", function(exports, require, module){
203
+ module.exports = Array.isArray || function (arr) {
204
+ return Object.prototype.toString.call(arr) == '[object Array]';
205
+ };
206
+
207
+ });
208
+ require.alias("isarray/index.js", "isarray/index.js");
209
+
@@ -0,0 +1,19 @@
1
+ {
2
+ "name" : "isarray",
3
+ "description" : "Array#isArray for older browsers",
4
+ "version" : "0.0.1",
5
+ "repository" : "juliangruber/isarray",
6
+ "homepage": "https://github.com/juliangruber/isarray",
7
+ "main" : "index.js",
8
+ "scripts" : [
9
+ "index.js"
10
+ ],
11
+ "dependencies" : {},
12
+ "keywords": ["browser","isarray","array"],
13
+ "author": {
14
+ "name": "Julian Gruber",
15
+ "email": "mail@juliangruber.com",
16
+ "url": "http://juliangruber.com"
17
+ },
18
+ "license": "MIT"
19
+ }
@@ -0,0 +1,3 @@
1
+ module.exports = Array.isArray || function (arr) {
2
+ return Object.prototype.toString.call(arr) == '[object Array]';
3
+ };
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "isarray",
3
+ "description": "Array#isArray for older browsers",
4
+ "version": "0.0.1",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git://github.com/juliangruber/isarray.git"
8
+ },
9
+ "homepage": "https://github.com/juliangruber/isarray",
10
+ "main": "index.js",
11
+ "scripts": {
12
+ "test": "tap test/*.js"
13
+ },
14
+ "dependencies": {},
15
+ "devDependencies": {
16
+ "tap": "*"
17
+ },
18
+ "keywords": [
19
+ "browser",
20
+ "isarray",
21
+ "array"
22
+ ],
23
+ "author": {
24
+ "name": "Julian Gruber",
25
+ "email": "mail@juliangruber.com",
26
+ "url": "http://juliangruber.com"
27
+ },
28
+ "license": "MIT",
29
+ "_id": "isarray@0.0.1",
30
+ "dist": {
31
+ "shasum": "8a18acfca9a8f4177e09abfc6038939b05d1eedf",
32
+ "tarball": "http://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz"
33
+ },
34
+ "_from": "isarray@0.0.1",
35
+ "_npmVersion": "1.2.18",
36
+ "_npmUser": {
37
+ "name": "juliangruber",
38
+ "email": "julian@juliangruber.com"
39
+ },
40
+ "maintainers": [
41
+ {
42
+ "name": "juliangruber",
43
+ "email": "julian@juliangruber.com"
44
+ }
45
+ ],
46
+ "directories": {},
47
+ "_shasum": "8a18acfca9a8f4177e09abfc6038939b05d1eedf",
48
+ "_resolved": "http://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz",
49
+ "bugs": {
50
+ "url": "https://github.com/juliangruber/isarray/issues"
51
+ },
52
+ "readme": "ERROR: No README data found!"
53
+ }
@@ -0,0 +1,7 @@
1
+ **string_decoder.js** (`require('string_decoder')`) from Node.js core
2
+
3
+ Copyright Joyent, Inc. and other Node contributors. See LICENCE file for details.
4
+
5
+ Version numbers match the versions found in Node core, e.g. 0.10.24 matches Node 0.10.24, likewise 0.11.10 matches Node 0.11.10. **Prefer the stable version over the unstable.**
6
+
7
+ The *build/* directory contains a build script that will scrape the source from the [joyent/node](https://github.com/joyent/node) repo given a specific Node version.