sprockets-browserify 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +70 -0
- data/Rakefile +38 -0
- data/lib/sprockets/browserify/engine.rb +15 -0
- data/lib/sprockets/browserify.rb +37 -0
- data/lib/sprockets-browserify.rb +2 -0
- data/lib/tasks/sprockets-browserify_tasks.rake +4 -0
- data/node_modules/JSONStream/LICENSE.APACHE2 +15 -0
- data/node_modules/JSONStream/LICENSE.MIT +24 -0
- data/node_modules/JSONStream/examples/all_docs.js +13 -0
- data/node_modules/JSONStream/index.js +189 -0
- data/node_modules/JSONStream/node_modules/jsonparse/LICENSE +24 -0
- data/node_modules/JSONStream/node_modules/jsonparse/README.markdown +11 -0
- data/node_modules/JSONStream/node_modules/jsonparse/bench.js +26 -0
- data/node_modules/JSONStream/node_modules/jsonparse/examples/twitterfeed.js +30 -0
- data/node_modules/JSONStream/node_modules/jsonparse/jsonparse.js +379 -0
- data/node_modules/JSONStream/node_modules/jsonparse/package.json +34 -0
- data/node_modules/JSONStream/node_modules/jsonparse/samplejson/basic.json +167 -0
- data/node_modules/JSONStream/node_modules/jsonparse/samplejson/basic2.json +180 -0
- data/node_modules/JSONStream/node_modules/jsonparse/test/primitives.js +54 -0
- data/node_modules/JSONStream/node_modules/jsonparse/test/utf8.js +38 -0
- data/node_modules/JSONStream/package.json +38 -0
- data/node_modules/JSONStream/readme.markdown +145 -0
- data/node_modules/JSONStream/test/bool.js +41 -0
- data/node_modules/JSONStream/test/destroy_missing.js +22 -0
- data/node_modules/JSONStream/test/empty.js +44 -0
- data/node_modules/JSONStream/test/fixtures/all_npm.json +4030 -0
- data/node_modules/JSONStream/test/fn.js +39 -0
- data/node_modules/JSONStream/test/memory.js +69 -0
- data/node_modules/JSONStream/test/multiple_objects.js +42 -0
- data/node_modules/JSONStream/test/multiple_objects_error.js +35 -0
- data/node_modules/JSONStream/test/parsejson.js +28 -0
- data/node_modules/JSONStream/test/stringify.js +41 -0
- data/node_modules/JSONStream/test/stringify_object.js +47 -0
- data/node_modules/JSONStream/test/test.js +35 -0
- data/node_modules/JSONStream/test/test2.js +29 -0
- data/node_modules/JSONStream/test/two-ways.js +41 -0
- data/node_modules/browserify/LICENSE +63 -0
- data/node_modules/browserify/README.markdown +172 -0
- data/node_modules/browserify/bin/cmd.js +161 -0
- data/node_modules/browserify/builtins/__browserify_process.js +55 -0
- data/node_modules/browserify/builtins/assert.js +314 -0
- data/node_modules/browserify/builtins/child_process.js +2 -0
- data/node_modules/browserify/builtins/events.js +178 -0
- data/node_modules/browserify/builtins/fs.js +1 -0
- data/node_modules/browserify/builtins/https.js +1 -0
- data/node_modules/browserify/builtins/net.js +1 -0
- data/node_modules/browserify/builtins/path.js +175 -0
- data/node_modules/browserify/builtins/querystring.js +250 -0
- data/node_modules/browserify/builtins/stream.js +119 -0
- data/node_modules/browserify/builtins/string_decoder.js +161 -0
- data/node_modules/browserify/builtins/sys.js +1 -0
- data/node_modules/browserify/builtins/timers.js +39 -0
- data/node_modules/browserify/builtins/tls.js +1 -0
- data/node_modules/browserify/builtins/tty.js +2 -0
- data/node_modules/browserify/builtins/url.js +604 -0
- data/node_modules/browserify/builtins/util.js +351 -0
- data/node_modules/browserify/doc/methods.markdown +182 -0
- data/node_modules/browserify/doc/recipes.markdown +62 -0
- data/node_modules/browserify/example/debug/browserify.js +219 -0
- data/node_modules/browserify/example/debug/build.sh +3 -0
- data/node_modules/browserify/example/debug/index.html +7 -0
- data/node_modules/browserify/example/debug/js/entry.js +2 -0
- data/node_modules/browserify/example/debug/js/thrower.js +3 -0
- data/node_modules/browserify/example/debug/server.js +9 -0
- data/node_modules/browserify/example/simple-build/browserify.js +368 -0
- data/node_modules/browserify/example/simple-build/build.sh +3 -0
- data/node_modules/browserify/example/simple-build/index.html +9 -0
- data/node_modules/browserify/example/simple-build/js/bar.js +3 -0
- data/node_modules/browserify/example/simple-build/js/entry.js +5 -0
- data/node_modules/browserify/example/simple-build/js/foo.js +5 -0
- data/node_modules/browserify/example/simple-build/server.js +9 -0
- data/node_modules/browserify/example/test/b.js +5 -0
- data/node_modules/browserify/example/test/bar.js +3 -0
- data/node_modules/browserify/example/test/foo.js +3 -0
- data/node_modules/browserify/example/test/m.js +3 -0
- data/node_modules/browserify/example/test/n.js +3 -0
- data/node_modules/browserify/example/using-http/bundle.js +813 -0
- data/node_modules/browserify/example/using-http/entry.js +25 -0
- data/node_modules/browserify/example/using-http/index.html +9 -0
- data/node_modules/browserify/example/using-http/server.js +28 -0
- data/node_modules/browserify/index.js +202 -0
- data/node_modules/browserify/lib/watch.js +75 -0
- data/node_modules/browserify/lib/wrap.js +583 -0
- data/node_modules/browserify/lib/wrappers.js +10 -0
- data/node_modules/browserify/node_modules/buffer-browserify/README.md +11 -0
- data/node_modules/browserify/node_modules/buffer-browserify/buffer_ieee754.js +84 -0
- data/node_modules/browserify/node_modules/buffer-browserify/index.js +1317 -0
- data/node_modules/browserify/node_modules/buffer-browserify/node_modules/base64-js/README.md +14 -0
- data/node_modules/browserify/node_modules/buffer-browserify/node_modules/base64-js/lib/b64.js +84 -0
- data/node_modules/browserify/node_modules/buffer-browserify/node_modules/base64-js/package.json +26 -0
- data/node_modules/browserify/node_modules/buffer-browserify/node_modules/base64-js/test/runner.js +50 -0
- data/node_modules/browserify/node_modules/buffer-browserify/package.json +42 -0
- data/node_modules/browserify/node_modules/buffer-browserify/test/buffer.js +218 -0
- data/node_modules/browserify/node_modules/coffee-script/CNAME +1 -0
- data/node_modules/browserify/node_modules/coffee-script/CONTRIBUTING.md +9 -0
- data/node_modules/browserify/node_modules/coffee-script/LICENSE +22 -0
- data/node_modules/browserify/node_modules/coffee-script/README +51 -0
- data/node_modules/browserify/node_modules/coffee-script/Rakefile +79 -0
- data/node_modules/browserify/node_modules/coffee-script/bin/cake +7 -0
- data/node_modules/browserify/node_modules/coffee-script/bin/coffee +7 -0
- data/node_modules/browserify/node_modules/coffee-script/extras/jsl.conf +44 -0
- data/node_modules/browserify/node_modules/coffee-script/lib/coffee-script/browser.js +101 -0
- data/node_modules/browserify/node_modules/coffee-script/lib/coffee-script/cake.js +113 -0
- data/node_modules/browserify/node_modules/coffee-script/lib/coffee-script/coffee-script.js +218 -0
- data/node_modules/browserify/node_modules/coffee-script/lib/coffee-script/command.js +506 -0
- data/node_modules/browserify/node_modules/coffee-script/lib/coffee-script/grammar.js +623 -0
- data/node_modules/browserify/node_modules/coffee-script/lib/coffee-script/helpers.js +150 -0
- data/node_modules/browserify/node_modules/coffee-script/lib/coffee-script/index.js +11 -0
- data/node_modules/browserify/node_modules/coffee-script/lib/coffee-script/lexer.js +905 -0
- data/node_modules/browserify/node_modules/coffee-script/lib/coffee-script/nodes.js +3088 -0
- data/node_modules/browserify/node_modules/coffee-script/lib/coffee-script/optparse.js +138 -0
- data/node_modules/browserify/node_modules/coffee-script/lib/coffee-script/parser.js +608 -0
- data/node_modules/browserify/node_modules/coffee-script/lib/coffee-script/repl.js +104 -0
- data/node_modules/browserify/node_modules/coffee-script/lib/coffee-script/rewriter.js +478 -0
- data/node_modules/browserify/node_modules/coffee-script/lib/coffee-script/scope.js +147 -0
- data/node_modules/browserify/node_modules/coffee-script/lib/coffee-script/sourcemap.js +237 -0
- data/node_modules/browserify/node_modules/coffee-script/package.json +48 -0
- data/node_modules/browserify/node_modules/commondir/README.markdown +45 -0
- data/node_modules/browserify/node_modules/commondir/example/base.js +3 -0
- data/node_modules/browserify/node_modules/commondir/example/dir.js +3 -0
- data/node_modules/browserify/node_modules/commondir/index.js +29 -0
- data/node_modules/browserify/node_modules/commondir/package.json +43 -0
- data/node_modules/browserify/node_modules/commondir/test/dirs.js +66 -0
- data/node_modules/browserify/node_modules/console-browserify/LICENCE +19 -0
- data/node_modules/browserify/node_modules/console-browserify/README.md +32 -0
- data/node_modules/browserify/node_modules/console-browserify/index.js +85 -0
- data/node_modules/browserify/node_modules/console-browserify/package.json +76 -0
- data/node_modules/browserify/node_modules/console-browserify/test/index.js +67 -0
- data/node_modules/browserify/node_modules/console-browserify/test/static/index.html +12 -0
- data/node_modules/browserify/node_modules/console-browserify/test/static/test-adapter.js +53 -0
- data/node_modules/browserify/node_modules/crypto-browserify/example/bundle.js +637 -0
- data/node_modules/browserify/node_modules/crypto-browserify/example/index.html +12 -0
- data/node_modules/browserify/node_modules/crypto-browserify/example/test.js +4 -0
- data/node_modules/browserify/node_modules/crypto-browserify/index.js +74 -0
- data/node_modules/browserify/node_modules/crypto-browserify/md5.js +384 -0
- data/node_modules/browserify/node_modules/crypto-browserify/package.json +30 -0
- data/node_modules/browserify/node_modules/crypto-browserify/readme.markdown +20 -0
- data/node_modules/browserify/node_modules/crypto-browserify/rng.js +37 -0
- data/node_modules/browserify/node_modules/crypto-browserify/sha.js +210 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/simple.js +35 -0
- data/node_modules/browserify/node_modules/deputy/README.markdown +55 -0
- data/node_modules/browserify/node_modules/deputy/example/cache.js +5 -0
- data/node_modules/browserify/node_modules/deputy/index.js +46 -0
- data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/LICENSE +21 -0
- data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/examples/pow.js +6 -0
- data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/index.js +82 -0
- data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/package.json +30 -0
- data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/readme.markdown +63 -0
- data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/chmod.js +38 -0
- data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/clobber.js +37 -0
- data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/mkdirp.js +28 -0
- data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/perm.js +32 -0
- data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/perm_sync.js +39 -0
- data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/race.js +41 -0
- data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/rel.js +32 -0
- data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/return.js +25 -0
- data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/return_sync.js +24 -0
- data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/root.js +18 -0
- data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/sync.js +32 -0
- data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/umask.js +28 -0
- data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/umask_sync.js +32 -0
- data/node_modules/browserify/node_modules/deputy/package.json +43 -0
- data/node_modules/browserify/node_modules/deputy/test/cache.js +58 -0
- data/node_modules/browserify/node_modules/detective/README.markdown +66 -0
- data/node_modules/browserify/node_modules/detective/example/strings.js +6 -0
- data/node_modules/browserify/node_modules/detective/example/strings_src.js +3 -0
- data/node_modules/browserify/node_modules/detective/index.js +60 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/LICENSE.BSD +19 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/README.md +74 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/codemirror/codemirror.css +112 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/codemirror/codemirror.js +2972 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/codemirror/javascript.js +360 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/json2.js +487 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/style.css +164 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/yui/treeview-min.js +12 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/yui/treeview-sprite.gif +0 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/yui/treeview.css +7 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/yui/yahoo-dom-event.js +14 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/bin/esparse.js +42 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/changes +92 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/cm +696 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/checkenv.js +42 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/collector.html +82 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/collector.js +170 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/functiontrace.html +106 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/functiontrace.js +123 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/parse.css +82 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/parse.html +352 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/precedence.html +225 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/rewrite.html +120 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/rewrite.js +71 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/esprima.js +3577 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/index.html +103 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/package.json +39 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/Tokenizer.js +646 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/XMLHttpRequest.js +509 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/ZeParser.js +2185 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/backbone-0.5.3.js +1158 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/benchmark.js +3261 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/escodegen.js +906 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/esmorph.js +240 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/ext-core-3.0.0.js +6579 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/ext-core-3.1.0.js +10255 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/jquery-1.6.4.js +9046 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/jquery-1.7.1.js +9266 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/jquery.mobile-1.0.js +6951 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/jsdefs.js +731 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/jslex.js +588 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/jsparse.js +1921 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/mootools-1.3.2.js +5952 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/mootools-1.4.1.js +6297 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/parse-js.js +1342 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/platform.js +878 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/prototype-1.6.1.js +4874 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/prototype-1.7.0.0.js +6082 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/underscore-1.2.3.js +981 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/benchmarks.html +58 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/benchmarks.js +328 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/compare.html +140 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/compare.js +270 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/compat.html +40 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/compat.js +239 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/coverage.footer.html +3 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/coverage.header.html +37 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/coverage.html +3617 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/index.html +36 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/reflect.js +403 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/run.js +66 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/test.js +16659 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/tools/generate-unicode-regex.py +164 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/tools/update-coverage.sh +28 -0
- data/node_modules/browserify/node_modules/detective/package.json +43 -0
- data/node_modules/browserify/node_modules/detective/test/both.js +11 -0
- data/node_modules/browserify/node_modules/detective/test/chained.js +9 -0
- data/node_modules/browserify/node_modules/detective/test/files/both.js +4 -0
- data/node_modules/browserify/node_modules/detective/test/files/chained.js +5 -0
- data/node_modules/browserify/node_modules/detective/test/files/nested.js +22 -0
- data/node_modules/browserify/node_modules/detective/test/files/skip.js +7 -0
- data/node_modules/browserify/node_modules/detective/test/files/strings.js +13 -0
- data/node_modules/browserify/node_modules/detective/test/files/word.js +13 -0
- data/node_modules/browserify/node_modules/detective/test/nested.js +9 -0
- data/node_modules/browserify/node_modules/detective/test/skip.js +9 -0
- data/node_modules/browserify/node_modules/detective/test/strings.js +9 -0
- data/node_modules/browserify/node_modules/detective/test/word.js +12 -0
- data/node_modules/browserify/node_modules/http-browserify/example/get/index.html +9 -0
- data/node_modules/browserify/node_modules/http-browserify/example/get/main.js +14 -0
- data/node_modules/browserify/node_modules/http-browserify/example/get/server.js +12 -0
- data/node_modules/browserify/node_modules/http-browserify/example/headers/index.html +9 -0
- data/node_modules/browserify/node_modules/http-browserify/example/headers/main.js +18 -0
- data/node_modules/browserify/node_modules/http-browserify/example/headers/server.js +15 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/data.json +139 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/index.html +9 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/main.js +13 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/LICENSE.APACHE2 +15 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/LICENSE.MIT +24 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/examples/all_docs.js +13 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/index.js +189 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/LICENSE +24 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/README.markdown +11 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/bench.js +26 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/examples/twitterfeed.js +30 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/jsonparse.js +379 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/package.json +36 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/samplejson/basic.json +167 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/samplejson/basic2.json +180 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/test/primitives.js +54 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/test/utf8.js +38 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/package.json +40 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/readme.markdown +145 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/bool.js +41 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/destroy_missing.js +22 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/empty.js +44 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/fixtures/all_npm.json +4030 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/fn.js +39 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/memory.js +69 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/multiple_objects.js +42 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/multiple_objects_error.js +35 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/parsejson.js +28 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/stringify.js +41 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/stringify_object.js +47 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/test.js +35 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/test2.js +29 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/two-ways.js +41 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/server.js +10 -0
- data/node_modules/browserify/node_modules/http-browserify/example/post/index.html +9 -0
- data/node_modules/browserify/node_modules/http-browserify/example/post/main.js +16 -0
- data/node_modules/browserify/node_modules/http-browserify/example/post/server.js +19 -0
- data/node_modules/browserify/node_modules/http-browserify/example/streaming/index.html +9 -0
- data/node_modules/browserify/node_modules/http-browserify/example/streaming/main.js +16 -0
- data/node_modules/browserify/node_modules/http-browserify/example/streaming/server.js +21 -0
- data/node_modules/browserify/node_modules/http-browserify/index.js +60 -0
- data/node_modules/browserify/node_modules/http-browserify/lib/request.js +128 -0
- data/node_modules/browserify/node_modules/http-browserify/lib/response.js +119 -0
- data/node_modules/browserify/node_modules/http-browserify/node_modules/concat-stream/index.js +48 -0
- data/node_modules/browserify/node_modules/http-browserify/node_modules/concat-stream/package.json +29 -0
- data/node_modules/browserify/node_modules/http-browserify/node_modules/concat-stream/readme.md +31 -0
- data/node_modules/browserify/node_modules/http-browserify/node_modules/concat-stream/test.js +34 -0
- data/node_modules/browserify/node_modules/http-browserify/package.json +42 -0
- data/node_modules/browserify/node_modules/http-browserify/readme.markdown +128 -0
- data/node_modules/browserify/node_modules/nub/README.markdown +23 -0
- data/node_modules/browserify/node_modules/nub/index.js +64 -0
- data/node_modules/browserify/node_modules/nub/package.json +42 -0
- data/node_modules/browserify/node_modules/nub/test/by.js +51 -0
- data/node_modules/browserify/node_modules/nub/test/nub.js +46 -0
- data/node_modules/browserify/node_modules/optimist/LICENSE +21 -0
- data/node_modules/browserify/node_modules/optimist/README.markdown +487 -0
- data/node_modules/browserify/node_modules/optimist/example/bool.js +10 -0
- data/node_modules/browserify/node_modules/optimist/example/boolean_double.js +7 -0
- data/node_modules/browserify/node_modules/optimist/example/boolean_single.js +7 -0
- data/node_modules/browserify/node_modules/optimist/example/default_hash.js +8 -0
- data/node_modules/browserify/node_modules/optimist/example/default_singles.js +7 -0
- data/node_modules/browserify/node_modules/optimist/example/divide.js +8 -0
- data/node_modules/browserify/node_modules/optimist/example/line_count.js +20 -0
- data/node_modules/browserify/node_modules/optimist/example/line_count_options.js +29 -0
- data/node_modules/browserify/node_modules/optimist/example/line_count_wrap.js +29 -0
- data/node_modules/browserify/node_modules/optimist/example/nonopt.js +4 -0
- data/node_modules/browserify/node_modules/optimist/example/reflect.js +2 -0
- data/node_modules/browserify/node_modules/optimist/example/short.js +3 -0
- data/node_modules/browserify/node_modules/optimist/example/string.js +11 -0
- data/node_modules/browserify/node_modules/optimist/example/usage-options.js +19 -0
- data/node_modules/browserify/node_modules/optimist/example/xup.js +10 -0
- data/node_modules/browserify/node_modules/optimist/index.js +475 -0
- data/node_modules/browserify/node_modules/optimist/node_modules/wordwrap/README.markdown +70 -0
- data/node_modules/browserify/node_modules/optimist/node_modules/wordwrap/example/center.js +10 -0
- data/node_modules/browserify/node_modules/optimist/node_modules/wordwrap/example/meat.js +3 -0
- data/node_modules/browserify/node_modules/optimist/node_modules/wordwrap/index.js +76 -0
- data/node_modules/browserify/node_modules/optimist/node_modules/wordwrap/package.json +41 -0
- data/node_modules/browserify/node_modules/optimist/node_modules/wordwrap/test/break.js +30 -0
- data/node_modules/browserify/node_modules/optimist/node_modules/wordwrap/test/idleness.txt +63 -0
- data/node_modules/browserify/node_modules/optimist/node_modules/wordwrap/test/wrap.js +31 -0
- data/node_modules/browserify/node_modules/optimist/package.json +47 -0
- data/node_modules/browserify/node_modules/optimist/test/_/argv.js +2 -0
- data/node_modules/browserify/node_modules/optimist/test/_/bin.js +3 -0
- data/node_modules/browserify/node_modules/optimist/test/_.js +71 -0
- data/node_modules/browserify/node_modules/optimist/test/parse.js +433 -0
- data/node_modules/browserify/node_modules/optimist/test/usage.js +292 -0
- data/node_modules/browserify/node_modules/optimist/x.js +1 -0
- data/node_modules/browserify/node_modules/resolve/LICENSE +18 -0
- data/node_modules/browserify/node_modules/resolve/README.markdown +47 -0
- data/node_modules/browserify/node_modules/resolve/index.js +109 -0
- data/node_modules/browserify/node_modules/resolve/package.json +41 -0
- data/node_modules/browserify/node_modules/resolve/test/core.js +12 -0
- data/node_modules/browserify/node_modules/resolve/test/filter.js +15 -0
- data/node_modules/browserify/node_modules/resolve/test/mock.js +68 -0
- data/node_modules/browserify/node_modules/resolve/test/resolver/bar/node_modules/foo/index.js +1 -0
- data/node_modules/browserify/node_modules/resolve/test/resolver/baz/doom.js +0 -0
- data/node_modules/browserify/node_modules/resolve/test/resolver/baz/package.json +3 -0
- data/node_modules/browserify/node_modules/resolve/test/resolver/baz/quux.js +1 -0
- data/node_modules/browserify/node_modules/resolve/test/resolver/biz/node_modules/grux/index.js +1 -0
- data/node_modules/browserify/node_modules/resolve/test/resolver/biz/node_modules/tiv/index.js +1 -0
- data/node_modules/browserify/node_modules/resolve/test/resolver/cup.coffee +1 -0
- data/node_modules/browserify/node_modules/resolve/test/resolver/foo.js +1 -0
- data/node_modules/browserify/node_modules/resolve/test/resolver/mug.coffee +0 -0
- data/node_modules/browserify/node_modules/resolve/test/resolver/mug.js +0 -0
- data/node_modules/browserify/node_modules/resolve/test/resolver/other_path/lib/other-lib.js +0 -0
- data/node_modules/browserify/node_modules/resolve/test/resolver/other_path/root.js +0 -0
- data/node_modules/browserify/node_modules/resolve/test/resolver.js +157 -0
- data/node_modules/browserify/node_modules/syntax-error/LICENSE +18 -0
- data/node_modules/browserify/node_modules/syntax-error/example/check.js +12 -0
- data/node_modules/browserify/node_modules/syntax-error/example/src.js +9 -0
- data/node_modules/browserify/node_modules/syntax-error/index.js +54 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/LICENSE.BSD +19 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/README.md +74 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/codemirror/codemirror.css +112 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/codemirror/codemirror.js +2972 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/codemirror/javascript.js +360 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/json2.js +487 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/style.css +164 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/yui/treeview-min.js +12 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/yui/treeview-sprite.gif +0 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/yui/treeview.css +7 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/yui/yahoo-dom-event.js +14 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/bin/esparse.js +42 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/changes +92 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/cm +696 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/checkenv.js +42 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/collector.html +82 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/collector.js +170 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/functiontrace.html +106 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/functiontrace.js +123 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/parse.css +82 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/parse.html +352 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/precedence.html +225 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/rewrite.html +120 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/rewrite.js +71 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/esprima.js +3577 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/index.html +103 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/package.json +39 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/Tokenizer.js +646 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/XMLHttpRequest.js +509 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/ZeParser.js +2185 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/backbone-0.5.3.js +1158 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/benchmark.js +3261 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/escodegen.js +906 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/esmorph.js +240 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/ext-core-3.0.0.js +6579 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/ext-core-3.1.0.js +10255 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/jquery-1.6.4.js +9046 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/jquery-1.7.1.js +9266 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/jquery.mobile-1.0.js +6951 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/jsdefs.js +731 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/jslex.js +588 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/jsparse.js +1921 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/mootools-1.3.2.js +5952 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/mootools-1.4.1.js +6297 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/parse-js.js +1342 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/platform.js +878 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/prototype-1.6.1.js +4874 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/prototype-1.7.0.0.js +6082 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/underscore-1.2.3.js +981 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/benchmarks.html +58 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/benchmarks.js +328 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/compare.html +140 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/compare.js +270 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/compat.html +40 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/compat.js +239 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/coverage.footer.html +3 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/coverage.header.html +37 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/coverage.html +3617 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/index.html +36 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/reflect.js +403 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/run.js +66 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/test.js +16659 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/tools/generate-unicode-regex.py +164 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/tools/update-coverage.sh +28 -0
- data/node_modules/browserify/node_modules/syntax-error/package.json +46 -0
- data/node_modules/browserify/node_modules/syntax-error/readme.markdown +87 -0
- data/node_modules/browserify/node_modules/syntax-error/test/check.js +17 -0
- data/node_modules/browserify/node_modules/syntax-error/test/sources/check.js +9 -0
- data/node_modules/browserify/node_modules/vm-browserify/README.markdown +103 -0
- data/node_modules/browserify/node_modules/vm-browserify/example/run/bundle.js +473 -0
- data/node_modules/browserify/node_modules/vm-browserify/example/run/entry.js +6 -0
- data/node_modules/browserify/node_modules/vm-browserify/example/run/index.html +9 -0
- data/node_modules/browserify/node_modules/vm-browserify/example/run/server.js +6 -0
- data/node_modules/browserify/node_modules/vm-browserify/index.js +85 -0
- data/node_modules/browserify/node_modules/vm-browserify/package.json +39 -0
- data/node_modules/browserify/node_modules/vm-browserify/testling/run.js +22 -0
- data/node_modules/browserify/node_modules/vm-browserify/testling/test.sh +11 -0
- data/node_modules/browserify/package.json +71 -0
- data/node_modules/browserify/test/alias.js +58 -0
- data/node_modules/browserify/test/backbone.js +21 -0
- data/node_modules/browserify/test/bin.js +39 -0
- data/node_modules/browserify/test/buffer.js +99 -0
- data/node_modules/browserify/test/bundle.js +32 -0
- data/node_modules/browserify/test/cache.js +28 -0
- data/node_modules/browserify/test/coffee/bar.js +1 -0
- data/node_modules/browserify/test/coffee/baz.coffee +1 -0
- data/node_modules/browserify/test/coffee/entry.coffee +1 -0
- data/node_modules/browserify/test/coffee/foo.coffee +1 -0
- data/node_modules/browserify/test/coffee/index.coffee +5 -0
- data/node_modules/browserify/test/coffee/nested/nested.coffee +2 -0
- data/node_modules/browserify/test/coffee.js +39 -0
- data/node_modules/browserify/test/comment/main.js +2 -0
- data/node_modules/browserify/test/comment.js +17 -0
- data/node_modules/browserify/test/crypto.js +37 -0
- data/node_modules/browserify/test/dnode.js +27 -0
- data/node_modules/browserify/test/dollar/dollar/index.js +7 -0
- data/node_modules/browserify/test/dollar.js +19 -0
- data/node_modules/browserify/test/entry/main.js +1 -0
- data/node_modules/browserify/test/entry/one.js +1 -0
- data/node_modules/browserify/test/entry/two.js +1 -0
- data/node_modules/browserify/test/entry.js +36 -0
- data/node_modules/browserify/test/error_code/src.js +2 -0
- data/node_modules/browserify/test/error_code.js +24 -0
- data/node_modules/browserify/test/export/entry.js +1 -0
- data/node_modules/browserify/test/export.js +52 -0
- data/node_modules/browserify/test/field/miss.js +1 -0
- data/node_modules/browserify/test/field/node_modules/z-miss/browser.js +1 -0
- data/node_modules/browserify/test/field/node_modules/z-miss/main.js +1 -0
- data/node_modules/browserify/test/field/node_modules/z-miss/package.json +4 -0
- data/node_modules/browserify/test/field/node_modules/z-object/browser.js +1 -0
- data/node_modules/browserify/test/field/node_modules/z-object/main.js +1 -0
- data/node_modules/browserify/test/field/node_modules/z-object/package.json +6 -0
- data/node_modules/browserify/test/field/node_modules/z-string/browser.js +1 -0
- data/node_modules/browserify/test/field/node_modules/z-string/main.js +1 -0
- data/node_modules/browserify/test/field/node_modules/z-string/package.json +4 -0
- data/node_modules/browserify/test/field/node_modules/z-sub/browser/a.js +1 -0
- data/node_modules/browserify/test/field/node_modules/z-sub/browser/b.js +1 -0
- data/node_modules/browserify/test/field/node_modules/z-sub/main.js +1 -0
- data/node_modules/browserify/test/field/node_modules/z-sub/package.json +4 -0
- data/node_modules/browserify/test/field/object.js +1 -0
- data/node_modules/browserify/test/field/string.js +1 -0
- data/node_modules/browserify/test/field/sub.js +1 -0
- data/node_modules/browserify/test/field.js +64 -0
- data/node_modules/browserify/test/global/main.js +2 -0
- data/node_modules/browserify/test/global.js +19 -0
- data/node_modules/browserify/test/jade.js +35 -0
- data/node_modules/browserify/test/json/beep.json +4 -0
- data/node_modules/browserify/test/json/main.js +1 -0
- data/node_modules/browserify/test/json.js +17 -0
- data/node_modules/browserify/test/maxlisteners.js +8 -0
- data/node_modules/browserify/test/module.js +22 -0
- data/node_modules/browserify/test/multi_entry/a.js +2 -0
- data/node_modules/browserify/test/multi_entry/b.js +2 -0
- data/node_modules/browserify/test/multi_entry/c.js +3 -0
- data/node_modules/browserify/test/multi_entry.js +20 -0
- data/node_modules/browserify/test/multi_ignore.js +23 -0
- data/node_modules/browserify/test/node_modules/beep/index.js +1 -0
- data/node_modules/browserify/test/require_cache.js +18 -0
- data/node_modules/browserify/test/retarget.js +27 -0
- data/node_modules/browserify/test/seq.js +47 -0
- data/node_modules/browserify/test/subdep/index.js +1 -0
- data/node_modules/browserify/test/subdep/node_modules/qq/b.js +1 -0
- data/node_modules/browserify/test/subdep/node_modules/qq/ignore_me.js +1 -0
- data/node_modules/browserify/test/subdep/node_modules/qq/node_modules/a/index.js +1 -0
- data/node_modules/browserify/test/subdep/node_modules/qq/node_modules/a/package.json +5 -0
- data/node_modules/browserify/test/subdep/node_modules/qq/node_modules/c/index.js +1 -0
- data/node_modules/browserify/test/subdep/node_modules/qq/node_modules/c/package.json +5 -0
- data/node_modules/browserify/test/subdep/node_modules/qq/node_modules/f/index.js +1 -0
- data/node_modules/browserify/test/subdep/node_modules/qq/node_modules/z/index.js +1 -0
- data/node_modules/browserify/test/subdep/node_modules/qq/package.json +3 -0
- data/node_modules/browserify/test/subdep/package.json +6 -0
- data/node_modules/browserify/test/subdep.js +26 -0
- data/node_modules/browserify/test/util.js +48 -0
- data/node_modules/browserify/test/watch/a.js +1 -0
- data/node_modules/browserify/test/watch.js +91 -0
- data/node_modules/browserify/test/wrap/a.js +2 -0
- data/node_modules/browserify/test/wrap/c.js +1 -0
- data/node_modules/browserify/test/wrap/node_modules/b/main.js +1 -0
- data/node_modules/browserify/test/wrap/node_modules/b/package.json +3 -0
- data/node_modules/browserify/test/wrap/node_modules/skipmetoo/index.js +1 -0
- data/node_modules/browserify/test/wrap/skipme.js +1 -0
- data/node_modules/browserify/test/wrap/x.js +0 -0
- data/node_modules/browserify/test/wrap.js +43 -0
- data/node_modules/browserify/testling/README.markdown +29 -0
- data/node_modules/browserify/testling/test.sh +37 -0
- data/node_modules/browserify/testling/tick.js +9 -0
- data/node_modules/browserify/testling/timers.js +50 -0
- data/node_modules/browserify/testling/util.js +24 -0
- data/node_modules/browserify/v2.markdown +41 -0
- data/node_modules/browserify/wrappers/alias.js +1 -0
- data/node_modules/browserify/wrappers/body.js +2 -0
- data/node_modules/browserify/wrappers/body_debug.js +2 -0
- data/node_modules/browserify/wrappers/entry.js +3 -0
- data/node_modules/browserify/wrappers/entry_debug.js +3 -0
- data/node_modules/browserify/wrappers/package.js +3 -0
- data/node_modules/browserify/wrappers/prelude.js +196 -0
- data/node_modules/module-deps/LICENSE +18 -0
- data/node_modules/module-deps/cmd.js +8 -0
- data/node_modules/module-deps/example/deps.js +8 -0
- data/node_modules/module-deps/example/files/bar.js +3 -0
- data/node_modules/module-deps/example/files/foo.js +5 -0
- data/node_modules/module-deps/example/files/main.js +2 -0
- data/node_modules/module-deps/example/files/xyz.js +2 -0
- data/node_modules/module-deps/index.js +142 -0
- data/node_modules/module-deps/node_modules/browser-resolve/README.md +14 -0
- data/node_modules/module-deps/node_modules/browser-resolve/builtin/assert.js +314 -0
- data/node_modules/module-deps/node_modules/browser-resolve/builtin/child_process.js +2 -0
- data/node_modules/module-deps/node_modules/browser-resolve/builtin/events.js +183 -0
- data/node_modules/module-deps/node_modules/browser-resolve/builtin/fs.js +1 -0
- data/node_modules/module-deps/node_modules/browser-resolve/builtin/https.js +13 -0
- data/node_modules/module-deps/node_modules/browser-resolve/builtin/net.js +1 -0
- data/node_modules/module-deps/node_modules/browser-resolve/builtin/path.js +175 -0
- data/node_modules/module-deps/node_modules/browser-resolve/builtin/process.js +55 -0
- data/node_modules/module-deps/node_modules/browser-resolve/builtin/querystring.js +250 -0
- data/node_modules/module-deps/node_modules/browser-resolve/builtin/stream.js +119 -0
- data/node_modules/module-deps/node_modules/browser-resolve/builtin/string_decoder.js +161 -0
- data/node_modules/module-deps/node_modules/browser-resolve/builtin/sys.js +1 -0
- data/node_modules/module-deps/node_modules/browser-resolve/builtin/timers.js +39 -0
- data/node_modules/module-deps/node_modules/browser-resolve/builtin/tls.js +1 -0
- data/node_modules/module-deps/node_modules/browser-resolve/builtin/tty.js +2 -0
- data/node_modules/module-deps/node_modules/browser-resolve/builtin/url.js +604 -0
- data/node_modules/module-deps/node_modules/browser-resolve/builtin/util.js +351 -0
- data/node_modules/module-deps/node_modules/browser-resolve/index.js +144 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/buffer-browserify/README.md +11 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/buffer-browserify/buffer_ieee754.js +84 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/buffer-browserify/index.js +1282 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/buffer-browserify/node_modules/base64-js/README.md +14 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/buffer-browserify/node_modules/base64-js/lib/b64.js +84 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/buffer-browserify/node_modules/base64-js/package.json +26 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/buffer-browserify/node_modules/base64-js/test/runner.js +50 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/buffer-browserify/package.json +42 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/buffer-browserify/test/buffer.js +121 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/console-browserify/LICENCE +19 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/console-browserify/README.md +32 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/console-browserify/index.js +85 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/console-browserify/package.json +76 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/console-browserify/test/index.js +67 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/console-browserify/test/static/index.html +12 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/console-browserify/test/static/test-adapter.js +53 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/crypto-browserify/example/bundle.js +637 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/crypto-browserify/example/index.html +12 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/crypto-browserify/example/test.js +4 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/crypto-browserify/index.js +74 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/crypto-browserify/md5.js +384 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/crypto-browserify/package.json +30 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/crypto-browserify/readme.markdown +20 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/crypto-browserify/rng.js +37 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/crypto-browserify/sha.js +210 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/crypto-browserify/test/simple.js +35 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/README.markdown +128 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/example/get/index.html +9 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/example/get/main.js +14 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/example/get/server.js +12 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/example/headers/index.html +9 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/example/headers/main.js +18 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/example/headers/server.js +15 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/example/post/index.html +9 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/example/post/main.js +16 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/example/post/server.js +19 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/example/streaming/index.html +9 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/example/streaming/main.js +16 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/example/streaming/server.js +21 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/index.js +59 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/lib/request.js +122 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/lib/response.js +119 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/node_modules/concat-stream/index.js +48 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/node_modules/concat-stream/package.json +29 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/node_modules/concat-stream/readme.md +31 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/node_modules/concat-stream/test.js +34 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/package.json +42 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/vm-browserify/README.markdown +103 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/vm-browserify/example/run/bundle.js +473 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/vm-browserify/example/run/entry.js +6 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/vm-browserify/example/run/index.html +9 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/vm-browserify/example/run/server.js +6 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/vm-browserify/index.js +85 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/vm-browserify/package.json +39 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/vm-browserify/testling/run.js +22 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/vm-browserify/testling/test.sh +11 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/zlib-browserify/index.js +43 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/zlib-browserify/package.json +33 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/zlib-browserify/readme.md +1 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/zlib-browserify/test/zlib.test.js +65 -0
- data/node_modules/module-deps/node_modules/browser-resolve/node_modules/zlib-browserify/zlib.js +55 -0
- data/node_modules/module-deps/node_modules/browser-resolve/package.json +38 -0
- data/node_modules/module-deps/node_modules/browser-resolve/test/core.js +20 -0
- data/node_modules/module-deps/node_modules/browser-resolve/test/fixtures/foo.js +1 -0
- data/node_modules/module-deps/node_modules/browser-resolve/test/local.js +15 -0
- data/node_modules/module-deps/node_modules/browser-resolve/test/mocha.opts +1 -0
- data/node_modules/module-deps/node_modules/browser-resolve/test/modules.js +99 -0
- data/node_modules/module-deps/node_modules/detective/LICENSE +18 -0
- data/node_modules/module-deps/node_modules/detective/example/strings.js +6 -0
- data/node_modules/module-deps/node_modules/detective/example/strings_src.js +3 -0
- data/node_modules/module-deps/node_modules/detective/index.js +62 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/LICENSE.BSD +19 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/LICENSE.source-map +27 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/README.md +99 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/bin/escodegen.js +43 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/bin/esgenerate.js +43 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/escodegen.js +2245 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/LICENSE +28 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/Makefile.dryice.js +165 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/README.md +268 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/build/assert-shim.js +56 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/build/mini-require.js +152 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/build/prefix-source-map.jsm +20 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/build/prefix-utils.jsm +18 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/build/suffix-browser.js +8 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/build/suffix-source-map.jsm +6 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/build/suffix-utils.jsm +20 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/build/test-prefix.js +8 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/build/test-suffix.js +3 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/lib/source-map/array-set.js +107 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/lib/source-map/base64-vlq.js +144 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/lib/source-map/base64.js +42 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/lib/source-map/binary-search.js +81 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/lib/source-map/source-map-consumer.js +379 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/lib/source-map/source-map-generator.js +202 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/lib/source-map/source-node.js +199 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/lib/source-map/util.js +40 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/lib/source-map.js +8 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/node_modules/amdefine/LICENSE +58 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/node_modules/amdefine/README.md +119 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/node_modules/amdefine/amdefine.js +299 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/node_modules/amdefine/package.json +29 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/package.json +38 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/run-tests.js +72 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/source-map/test-api.js +26 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/source-map/test-array-set.js +71 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/source-map/test-base64-vlq.js +24 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/source-map/test-base64.js +35 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/source-map/test-binary-search.js +54 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/source-map/test-dog-fooding.js +72 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/source-map/test-source-map-consumer.js +142 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/source-map/test-source-map-generator.js +187 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/source-map/test-source-node.js +163 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/source-map/util.js +78 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/package.json +48 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/esprima/ChangeLog +18 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/esprima/LICENSE.BSD +19 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/esprima/README.md +73 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/esprima/bin/esparse.js +117 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/esprima/bin/esvalidate.js +177 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/esprima/component.json +14 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/esprima/doc/index.html +473 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/esprima/esprima.js +3895 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/esprima/examples/detectnestedternary.js +106 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/esprima/examples/findbooleantrap.js +173 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/esprima/examples/tokendist.js +33 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/esprima/index.html +102 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/esprima/package.json +40 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/benchmarks.html +58 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/benchmarks.js +334 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/compare.html +69 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/compare.js +328 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/compat.html +40 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/compat.js +239 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/coverage.footer.html +3 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/coverage.header.html +37 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/coverage.html +4676 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/index.html +37 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/module.html +36 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/module.js +129 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/reflect.js +422 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/run.js +66 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/runner.js +387 -0
- data/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/test.js +19764 -0
- data/node_modules/module-deps/node_modules/detective/package.json +36 -0
- data/node_modules/module-deps/node_modules/detective/readme.markdown +70 -0
- data/node_modules/module-deps/node_modules/detective/test/both.js +11 -0
- data/node_modules/module-deps/node_modules/detective/test/chained.js +9 -0
- data/node_modules/module-deps/node_modules/detective/test/files/both.js +4 -0
- data/node_modules/module-deps/node_modules/detective/test/files/chained.js +5 -0
- data/node_modules/module-deps/node_modules/detective/test/files/nested.js +22 -0
- data/node_modules/module-deps/node_modules/detective/test/files/shebang.js +5 -0
- data/node_modules/module-deps/node_modules/detective/test/files/strings.js +13 -0
- data/node_modules/module-deps/node_modules/detective/test/files/word.js +13 -0
- data/node_modules/module-deps/node_modules/detective/test/nested.js +9 -0
- data/node_modules/module-deps/node_modules/detective/test/shebang.js +9 -0
- data/node_modules/module-deps/node_modules/detective/test/strings.js +9 -0
- data/node_modules/module-deps/node_modules/detective/test/word.js +12 -0
- data/node_modules/module-deps/node_modules/resolve/LICENSE +18 -0
- data/node_modules/module-deps/node_modules/resolve/example/async.js +5 -0
- data/node_modules/module-deps/node_modules/resolve/example/sync.js +3 -0
- data/node_modules/module-deps/node_modules/resolve/index.js +5 -0
- data/node_modules/module-deps/node_modules/resolve/lib/async.js +131 -0
- data/node_modules/module-deps/node_modules/resolve/lib/core.js +4 -0
- data/node_modules/module-deps/node_modules/resolve/lib/core.json +38 -0
- data/node_modules/module-deps/node_modules/resolve/lib/sync.js +98 -0
- data/node_modules/module-deps/node_modules/resolve/package.json +32 -0
- data/node_modules/module-deps/node_modules/resolve/readme.markdown +134 -0
- data/node_modules/module-deps/node_modules/resolve/test/core.js +12 -0
- data/node_modules/module-deps/node_modules/resolve/test/filter.js +17 -0
- data/node_modules/module-deps/node_modules/resolve/test/filter_sync.js +15 -0
- data/node_modules/module-deps/node_modules/resolve/test/mock.js +68 -0
- data/node_modules/module-deps/node_modules/resolve/test/mock_sync.js +68 -0
- data/node_modules/module-deps/node_modules/resolve/test/resolver/bar/node_modules/foo/index.js +1 -0
- data/node_modules/module-deps/node_modules/resolve/test/resolver/baz/doom.js +0 -0
- data/node_modules/module-deps/node_modules/resolve/test/resolver/baz/package.json +3 -0
- data/node_modules/module-deps/node_modules/resolve/test/resolver/baz/quux.js +1 -0
- data/node_modules/module-deps/node_modules/resolve/test/resolver/biz/node_modules/grux/index.js +1 -0
- data/node_modules/module-deps/node_modules/resolve/test/resolver/biz/node_modules/tiv/index.js +1 -0
- data/node_modules/module-deps/node_modules/resolve/test/resolver/cup.coffee +1 -0
- data/node_modules/module-deps/node_modules/resolve/test/resolver/foo.js +1 -0
- data/node_modules/module-deps/node_modules/resolve/test/resolver/mug.coffee +0 -0
- data/node_modules/module-deps/node_modules/resolve/test/resolver/mug.js +0 -0
- data/node_modules/module-deps/node_modules/resolve/test/resolver/other_path/lib/other-lib.js +0 -0
- data/node_modules/module-deps/node_modules/resolve/test/resolver/other_path/root.js +0 -0
- data/node_modules/module-deps/node_modules/resolve/test/resolver.js +144 -0
- data/node_modules/module-deps/node_modules/resolve/test/resolver_sync.js +157 -0
- data/node_modules/module-deps/package.json +47 -0
- data/node_modules/module-deps/readme.markdown +128 -0
- data/node_modules/module-deps/test/bundle.js +21 -0
- data/node_modules/module-deps/test/deps.js +42 -0
- data/node_modules/module-deps/test/files/bar.js +3 -0
- data/node_modules/module-deps/test/files/foo.js +5 -0
- data/node_modules/module-deps/test/files/main.js +2 -0
- data/node_modules/module-deps/test/files/tr_module/f.js +1 -0
- data/node_modules/module-deps/test/files/tr_module/main.js +7 -0
- data/node_modules/module-deps/test/files/tr_module/node_modules/g/index.js +1 -0
- data/node_modules/module-deps/test/files/tr_module/node_modules/g/node_modules/insert-ggg/index.js +7 -0
- data/node_modules/module-deps/test/files/tr_module/node_modules/g/package.json +6 -0
- data/node_modules/module-deps/test/files/tr_module/node_modules/insert-aaa/index.js +7 -0
- data/node_modules/module-deps/test/files/tr_module/node_modules/insert-bbb/index.js +7 -0
- data/node_modules/module-deps/test/files/tr_module/node_modules/m/index.js +3 -0
- data/node_modules/module-deps/test/files/tr_sh/f.js +1 -0
- data/node_modules/module-deps/test/files/tr_sh/main.js +7 -0
- data/node_modules/module-deps/test/files/tr_sh/node_modules/g/index.js +1 -0
- data/node_modules/module-deps/test/files/tr_sh/node_modules/g/package.json +6 -0
- data/node_modules/module-deps/test/files/tr_sh/node_modules/g/tr_g.js +6 -0
- data/node_modules/module-deps/test/files/tr_sh/node_modules/m/index.js +3 -0
- data/node_modules/module-deps/test/files/tr_sh/tr_a.js +6 -0
- data/node_modules/module-deps/test/files/tr_sh/tr_b.js +6 -0
- data/node_modules/module-deps/test/files/xyz.js +2 -0
- data/node_modules/module-deps/test/tr_fn.js +29 -0
- data/node_modules/module-deps/test/tr_module.js +21 -0
- data/node_modules/module-deps/test/tr_sh.js +21 -0
- data/node_modules/through/LICENSE.APACHE2 +15 -0
- data/node_modules/through/LICENSE.MIT +24 -0
- data/node_modules/through/index.js +103 -0
- data/node_modules/through/package.json +35 -0
- data/node_modules/through/readme.markdown +43 -0
- data/node_modules/through/test/buffering.js +71 -0
- data/node_modules/through/test/end.js +27 -0
- data/node_modules/through/test/index.js +113 -0
- data/package.json +11 -0
- metadata +846 -0
@@ -0,0 +1,32 @@
|
|
1
|
+
var mkdirp = require('../');
|
2
|
+
var path = require('path');
|
3
|
+
var fs = require('fs');
|
4
|
+
var test = require('tap').test;
|
5
|
+
|
6
|
+
test('async perm', function (t) {
|
7
|
+
t.plan(2);
|
8
|
+
var file = '/tmp/' + (Math.random() * (1<<30)).toString(16);
|
9
|
+
|
10
|
+
mkdirp(file, 0755, function (err) {
|
11
|
+
if (err) t.fail(err);
|
12
|
+
else path.exists(file, function (ex) {
|
13
|
+
if (!ex) t.fail('file not created')
|
14
|
+
else fs.stat(file, function (err, stat) {
|
15
|
+
if (err) t.fail(err)
|
16
|
+
else {
|
17
|
+
t.equal(stat.mode & 0777, 0755);
|
18
|
+
t.ok(stat.isDirectory(), 'target not a directory');
|
19
|
+
t.end();
|
20
|
+
}
|
21
|
+
})
|
22
|
+
})
|
23
|
+
});
|
24
|
+
});
|
25
|
+
|
26
|
+
test('async root perm', function (t) {
|
27
|
+
mkdirp('/tmp', 0755, function (err) {
|
28
|
+
if (err) t.fail(err);
|
29
|
+
t.end();
|
30
|
+
});
|
31
|
+
t.end();
|
32
|
+
});
|
@@ -0,0 +1,39 @@
|
|
1
|
+
var mkdirp = require('../');
|
2
|
+
var path = require('path');
|
3
|
+
var fs = require('fs');
|
4
|
+
var test = require('tap').test;
|
5
|
+
|
6
|
+
test('sync perm', function (t) {
|
7
|
+
t.plan(2);
|
8
|
+
var file = '/tmp/' + (Math.random() * (1<<30)).toString(16) + '.json';
|
9
|
+
|
10
|
+
mkdirp.sync(file, 0755);
|
11
|
+
path.exists(file, function (ex) {
|
12
|
+
if (!ex) t.fail('file not created')
|
13
|
+
else fs.stat(file, function (err, stat) {
|
14
|
+
if (err) t.fail(err)
|
15
|
+
else {
|
16
|
+
t.equal(stat.mode & 0777, 0755);
|
17
|
+
t.ok(stat.isDirectory(), 'target not a directory');
|
18
|
+
t.end();
|
19
|
+
}
|
20
|
+
})
|
21
|
+
});
|
22
|
+
});
|
23
|
+
|
24
|
+
test('sync root perm', function (t) {
|
25
|
+
t.plan(1);
|
26
|
+
|
27
|
+
var file = '/tmp';
|
28
|
+
mkdirp.sync(file, 0755);
|
29
|
+
path.exists(file, function (ex) {
|
30
|
+
if (!ex) t.fail('file not created')
|
31
|
+
else fs.stat(file, function (err, stat) {
|
32
|
+
if (err) t.fail(err)
|
33
|
+
else {
|
34
|
+
t.ok(stat.isDirectory(), 'target not a directory');
|
35
|
+
t.end();
|
36
|
+
}
|
37
|
+
})
|
38
|
+
});
|
39
|
+
});
|
@@ -0,0 +1,41 @@
|
|
1
|
+
var mkdirp = require('../').mkdirp;
|
2
|
+
var path = require('path');
|
3
|
+
var fs = require('fs');
|
4
|
+
var test = require('tap').test;
|
5
|
+
|
6
|
+
test('race', function (t) {
|
7
|
+
t.plan(4);
|
8
|
+
var ps = [ '', 'tmp' ];
|
9
|
+
|
10
|
+
for (var i = 0; i < 25; i++) {
|
11
|
+
var dir = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
|
12
|
+
ps.push(dir);
|
13
|
+
}
|
14
|
+
var file = ps.join('/');
|
15
|
+
|
16
|
+
var res = 2;
|
17
|
+
mk(file, function () {
|
18
|
+
if (--res === 0) t.end();
|
19
|
+
});
|
20
|
+
|
21
|
+
mk(file, function () {
|
22
|
+
if (--res === 0) t.end();
|
23
|
+
});
|
24
|
+
|
25
|
+
function mk (file, cb) {
|
26
|
+
mkdirp(file, 0755, function (err) {
|
27
|
+
if (err) t.fail(err);
|
28
|
+
else path.exists(file, function (ex) {
|
29
|
+
if (!ex) t.fail('file not created')
|
30
|
+
else fs.stat(file, function (err, stat) {
|
31
|
+
if (err) t.fail(err)
|
32
|
+
else {
|
33
|
+
t.equal(stat.mode & 0777, 0755);
|
34
|
+
t.ok(stat.isDirectory(), 'target not a directory');
|
35
|
+
if (cb) cb();
|
36
|
+
}
|
37
|
+
})
|
38
|
+
})
|
39
|
+
});
|
40
|
+
}
|
41
|
+
});
|
@@ -0,0 +1,32 @@
|
|
1
|
+
var mkdirp = require('../');
|
2
|
+
var path = require('path');
|
3
|
+
var fs = require('fs');
|
4
|
+
var test = require('tap').test;
|
5
|
+
|
6
|
+
test('rel', function (t) {
|
7
|
+
t.plan(2);
|
8
|
+
var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
|
9
|
+
var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
|
10
|
+
var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
|
11
|
+
|
12
|
+
var cwd = process.cwd();
|
13
|
+
process.chdir('/tmp');
|
14
|
+
|
15
|
+
var file = [x,y,z].join('/');
|
16
|
+
|
17
|
+
mkdirp(file, 0755, function (err) {
|
18
|
+
if (err) t.fail(err);
|
19
|
+
else path.exists(file, function (ex) {
|
20
|
+
if (!ex) t.fail('file not created')
|
21
|
+
else fs.stat(file, function (err, stat) {
|
22
|
+
if (err) t.fail(err)
|
23
|
+
else {
|
24
|
+
process.chdir(cwd);
|
25
|
+
t.equal(stat.mode & 0777, 0755);
|
26
|
+
t.ok(stat.isDirectory(), 'target not a directory');
|
27
|
+
t.end();
|
28
|
+
}
|
29
|
+
})
|
30
|
+
})
|
31
|
+
});
|
32
|
+
});
|
@@ -0,0 +1,25 @@
|
|
1
|
+
var mkdirp = require('../');
|
2
|
+
var path = require('path');
|
3
|
+
var fs = require('fs');
|
4
|
+
var test = require('tap').test;
|
5
|
+
|
6
|
+
test('return value', function (t) {
|
7
|
+
t.plan(4);
|
8
|
+
var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
|
9
|
+
var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
|
10
|
+
var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
|
11
|
+
|
12
|
+
var file = '/tmp/' + [x,y,z].join('/');
|
13
|
+
|
14
|
+
// should return the first dir created.
|
15
|
+
// By this point, it would be profoundly surprising if /tmp didn't
|
16
|
+
// already exist, since every other test makes things in there.
|
17
|
+
mkdirp(file, function (err, made) {
|
18
|
+
t.ifError(err);
|
19
|
+
t.equal(made, '/tmp/' + x);
|
20
|
+
mkdirp(file, function (err, made) {
|
21
|
+
t.ifError(err);
|
22
|
+
t.equal(made, null);
|
23
|
+
});
|
24
|
+
});
|
25
|
+
});
|
@@ -0,0 +1,24 @@
|
|
1
|
+
var mkdirp = require('../');
|
2
|
+
var path = require('path');
|
3
|
+
var fs = require('fs');
|
4
|
+
var test = require('tap').test;
|
5
|
+
|
6
|
+
test('return value', function (t) {
|
7
|
+
t.plan(2);
|
8
|
+
var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
|
9
|
+
var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
|
10
|
+
var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
|
11
|
+
|
12
|
+
var file = '/tmp/' + [x,y,z].join('/');
|
13
|
+
|
14
|
+
// should return the first dir created.
|
15
|
+
// By this point, it would be profoundly surprising if /tmp didn't
|
16
|
+
// already exist, since every other test makes things in there.
|
17
|
+
// Note that this will throw on failure, which will fail the test.
|
18
|
+
var made = mkdirp.sync(file);
|
19
|
+
t.equal(made, '/tmp/' + x);
|
20
|
+
|
21
|
+
// making the same file again should have no effect.
|
22
|
+
made = mkdirp.sync(file);
|
23
|
+
t.equal(made, null);
|
24
|
+
});
|
@@ -0,0 +1,18 @@
|
|
1
|
+
var mkdirp = require('../');
|
2
|
+
var path = require('path');
|
3
|
+
var fs = require('fs');
|
4
|
+
var test = require('tap').test;
|
5
|
+
|
6
|
+
test('root', function (t) {
|
7
|
+
// '/' on unix, 'c:/' on windows.
|
8
|
+
var file = path.resolve('/');
|
9
|
+
|
10
|
+
mkdirp(file, 0755, function (err) {
|
11
|
+
if (err) throw err
|
12
|
+
fs.stat(file, function (er, stat) {
|
13
|
+
if (er) throw er
|
14
|
+
t.ok(stat.isDirectory(), 'target is a directory');
|
15
|
+
t.end();
|
16
|
+
})
|
17
|
+
});
|
18
|
+
});
|
@@ -0,0 +1,32 @@
|
|
1
|
+
var mkdirp = require('../');
|
2
|
+
var path = require('path');
|
3
|
+
var fs = require('fs');
|
4
|
+
var test = require('tap').test;
|
5
|
+
|
6
|
+
test('sync', function (t) {
|
7
|
+
t.plan(2);
|
8
|
+
var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
|
9
|
+
var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
|
10
|
+
var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
|
11
|
+
|
12
|
+
var file = '/tmp/' + [x,y,z].join('/');
|
13
|
+
|
14
|
+
try {
|
15
|
+
mkdirp.sync(file, 0755);
|
16
|
+
} catch (err) {
|
17
|
+
t.fail(err);
|
18
|
+
return t.end();
|
19
|
+
}
|
20
|
+
|
21
|
+
path.exists(file, function (ex) {
|
22
|
+
if (!ex) t.fail('file not created')
|
23
|
+
else fs.stat(file, function (err, stat) {
|
24
|
+
if (err) t.fail(err)
|
25
|
+
else {
|
26
|
+
t.equal(stat.mode & 0777, 0755);
|
27
|
+
t.ok(stat.isDirectory(), 'target not a directory');
|
28
|
+
t.end();
|
29
|
+
}
|
30
|
+
});
|
31
|
+
});
|
32
|
+
});
|
@@ -0,0 +1,28 @@
|
|
1
|
+
var mkdirp = require('../');
|
2
|
+
var path = require('path');
|
3
|
+
var fs = require('fs');
|
4
|
+
var test = require('tap').test;
|
5
|
+
|
6
|
+
test('implicit mode from umask', function (t) {
|
7
|
+
t.plan(2);
|
8
|
+
var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
|
9
|
+
var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
|
10
|
+
var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
|
11
|
+
|
12
|
+
var file = '/tmp/' + [x,y,z].join('/');
|
13
|
+
|
14
|
+
mkdirp(file, function (err) {
|
15
|
+
if (err) t.fail(err);
|
16
|
+
else path.exists(file, function (ex) {
|
17
|
+
if (!ex) t.fail('file not created')
|
18
|
+
else fs.stat(file, function (err, stat) {
|
19
|
+
if (err) t.fail(err)
|
20
|
+
else {
|
21
|
+
t.equal(stat.mode & 0777, 0777 & (~process.umask()));
|
22
|
+
t.ok(stat.isDirectory(), 'target not a directory');
|
23
|
+
t.end();
|
24
|
+
}
|
25
|
+
})
|
26
|
+
})
|
27
|
+
});
|
28
|
+
});
|
@@ -0,0 +1,32 @@
|
|
1
|
+
var mkdirp = require('../');
|
2
|
+
var path = require('path');
|
3
|
+
var fs = require('fs');
|
4
|
+
var test = require('tap').test;
|
5
|
+
|
6
|
+
test('umask sync modes', function (t) {
|
7
|
+
t.plan(2);
|
8
|
+
var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
|
9
|
+
var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
|
10
|
+
var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
|
11
|
+
|
12
|
+
var file = '/tmp/' + [x,y,z].join('/');
|
13
|
+
|
14
|
+
try {
|
15
|
+
mkdirp.sync(file);
|
16
|
+
} catch (err) {
|
17
|
+
t.fail(err);
|
18
|
+
return t.end();
|
19
|
+
}
|
20
|
+
|
21
|
+
path.exists(file, function (ex) {
|
22
|
+
if (!ex) t.fail('file not created')
|
23
|
+
else fs.stat(file, function (err, stat) {
|
24
|
+
if (err) t.fail(err)
|
25
|
+
else {
|
26
|
+
t.equal(stat.mode & 0777, (0777 & (~process.umask())));
|
27
|
+
t.ok(stat.isDirectory(), 'target not a directory');
|
28
|
+
t.end();
|
29
|
+
}
|
30
|
+
});
|
31
|
+
});
|
32
|
+
});
|
@@ -0,0 +1,43 @@
|
|
1
|
+
{
|
2
|
+
"name": "deputy",
|
3
|
+
"description": "caching layer for detective",
|
4
|
+
"version": "0.0.4",
|
5
|
+
"repository": {
|
6
|
+
"type": "git",
|
7
|
+
"url": "git://github.com/substack/node-deputy.git"
|
8
|
+
},
|
9
|
+
"main": "index.js",
|
10
|
+
"keywords": [
|
11
|
+
"detective",
|
12
|
+
"require",
|
13
|
+
"cache"
|
14
|
+
],
|
15
|
+
"directories": {
|
16
|
+
"lib": ".",
|
17
|
+
"example": "example",
|
18
|
+
"test": "test"
|
19
|
+
},
|
20
|
+
"scripts": {
|
21
|
+
"test": "tap test/*.js"
|
22
|
+
},
|
23
|
+
"dependencies": {
|
24
|
+
"mkdirp": "~0.3.3",
|
25
|
+
"detective": "~0.2.0"
|
26
|
+
},
|
27
|
+
"devDependencies": {
|
28
|
+
"tap": "0.0.x"
|
29
|
+
},
|
30
|
+
"engines": {
|
31
|
+
"node": ">=0.4.0"
|
32
|
+
},
|
33
|
+
"license": "MIT",
|
34
|
+
"author": {
|
35
|
+
"name": "James Halliday",
|
36
|
+
"email": "mail@substack.net",
|
37
|
+
"url": "http://substack.net"
|
38
|
+
},
|
39
|
+
"readme": "deputy\n======\n\nThis module is a caching layer around\n[node-detective](http://github.com/substack/node-detective).\n\n[![build status](https://secure.travis-ci.org/substack/node-deputy.png)](http://travis-ci.org/substack/node-deputy)\n\nexample\n=======\n\ncache.js\n--------\n\n``` js\nvar deputy = require('deputy');\nvar detective = deputy(process.env.HOME + '/.config/deputy.json');\n\nvar deps = detective.find('require(\"a\"); require(\"b\")');\nconsole.dir(deps);\n```\n\noutput:\n\n```\n$ node cache.js \n{ strings: [ 'a', 'b' ], expressions: [] }\n$ cat ~/.config/deputy.json \n{\"55952d490bd28e3e256f0b036ced834d\":{\"strings\":[\"a\",\"b\"],\"expressions\":[]}}\n```\n\nmethods\n=======\n\n``` js\nvar deputy = require('deputy')\n```\n\nvar detective = deputy(cacheFile)\n---------------------------------\n\nReturn a new [detective](http://github.com/substack/node-detective)\nobject using `cacheFile` for caching.\n\ninstall\n=======\n\nWith [npm](http://npmjs.org) do:\n\n npm install deputy\n\nlicense\n=======\n\nMIT/X11\n",
|
40
|
+
"readmeFilename": "README.markdown",
|
41
|
+
"_id": "deputy@0.0.4",
|
42
|
+
"_from": "deputy@~0.0.3"
|
43
|
+
}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
var test = require('tap').test;
|
2
|
+
var deputy = require('../');
|
3
|
+
var fs = require('fs');
|
4
|
+
var crypto = require('crypto');
|
5
|
+
|
6
|
+
test('cache with new file', function (t) {
|
7
|
+
t.plan(4);
|
8
|
+
|
9
|
+
var ps = []; for (var i = 0; i < 10; i++) {
|
10
|
+
ps.push(Math.floor(Math.random() * (1<<30)).toString(16));
|
11
|
+
}
|
12
|
+
var file = '/tmp/' + ps.join('/') + '.json';
|
13
|
+
var detective = deputy(file);
|
14
|
+
|
15
|
+
var src = [
|
16
|
+
[
|
17
|
+
'require("a"); require("b")',
|
18
|
+
{ strings : ['a','b'], expressions : [] }
|
19
|
+
],
|
20
|
+
[
|
21
|
+
'require("x"); require(x+1)',
|
22
|
+
{ strings : [ 'x' ], expressions : [ 'x+1' ] }
|
23
|
+
]
|
24
|
+
];
|
25
|
+
|
26
|
+
t.deepEqual(detective.find(src[0][0]), src[0][1]);
|
27
|
+
setTimeout(firstFile, 100);
|
28
|
+
|
29
|
+
function compareSources (ix, cb) {
|
30
|
+
fs.readFile(file, function (err, body) {
|
31
|
+
t.deepEqual(
|
32
|
+
src.slice(0,ix).reduce(function (acc,s) {
|
33
|
+
acc[hash(s[0])] = s[1];
|
34
|
+
return acc;
|
35
|
+
}, {}),
|
36
|
+
JSON.parse(body)
|
37
|
+
);
|
38
|
+
cb();
|
39
|
+
});
|
40
|
+
}
|
41
|
+
|
42
|
+
function firstFile () {
|
43
|
+
compareSources(1, function () {
|
44
|
+
t.deepEqual(detective.find(src[1][0]), src[1][1]);
|
45
|
+
setTimeout(secondFile, 100);
|
46
|
+
});
|
47
|
+
}
|
48
|
+
|
49
|
+
function secondFile () {
|
50
|
+
compareSources(2, function () {
|
51
|
+
t.end();
|
52
|
+
});
|
53
|
+
}
|
54
|
+
|
55
|
+
function hash (src) {
|
56
|
+
return new crypto.Hash('md5').update(src).digest('hex');
|
57
|
+
}
|
58
|
+
});
|
@@ -0,0 +1,66 @@
|
|
1
|
+
detective
|
2
|
+
=========
|
3
|
+
|
4
|
+
Find all calls to require() no matter how crazily nested using a proper walk of
|
5
|
+
the AST.
|
6
|
+
|
7
|
+
[![build status](https://secure.travis-ci.org/substack/node-detective.png)](http://travis-ci.org/substack/node-detective)
|
8
|
+
|
9
|
+
example
|
10
|
+
=======
|
11
|
+
|
12
|
+
strings
|
13
|
+
-------
|
14
|
+
|
15
|
+
strings_src.js:
|
16
|
+
|
17
|
+
````javascript
|
18
|
+
var a = require('a');
|
19
|
+
var b = require('b');
|
20
|
+
var c = require('c');
|
21
|
+
````
|
22
|
+
|
23
|
+
strings.js:
|
24
|
+
|
25
|
+
````javascript
|
26
|
+
var detective = require('detective');
|
27
|
+
var fs = require('fs');
|
28
|
+
|
29
|
+
var src = fs.readFileSync(__dirname + '/strings_src.js');
|
30
|
+
var requires = detective(src);
|
31
|
+
console.dir(requires);
|
32
|
+
````
|
33
|
+
|
34
|
+
output:
|
35
|
+
|
36
|
+
$ node examples/strings.js
|
37
|
+
[ 'a', 'b', 'c' ]
|
38
|
+
|
39
|
+
methods
|
40
|
+
=======
|
41
|
+
|
42
|
+
var detective = require('detective');
|
43
|
+
|
44
|
+
detective(src, opts)
|
45
|
+
--------------------
|
46
|
+
|
47
|
+
Give some source body `src`, return an array of all the require()s with string
|
48
|
+
arguments.
|
49
|
+
|
50
|
+
The options parameter `opts` is passed along to `detective.find()`.
|
51
|
+
|
52
|
+
detective.find(src, opts)
|
53
|
+
-------------------------
|
54
|
+
|
55
|
+
Give some source body `src`, return an object with "strings" and "expressions"
|
56
|
+
arrays for each of the require() calls.
|
57
|
+
|
58
|
+
The "expressions" array will contain the stringified expressions.
|
59
|
+
|
60
|
+
Optionally you can specify a different function besides `"require"` to analyze
|
61
|
+
with `opts.word`.
|
62
|
+
|
63
|
+
installation
|
64
|
+
============
|
65
|
+
|
66
|
+
npm install detective
|
@@ -0,0 +1,60 @@
|
|
1
|
+
var esprima = require('esprima');
|
2
|
+
|
3
|
+
var traverse = function (node, cb) {
|
4
|
+
if (Array.isArray(node)) {
|
5
|
+
node.forEach(function (x) {
|
6
|
+
traverse(x, cb);
|
7
|
+
});
|
8
|
+
}
|
9
|
+
else if (node && typeof node === 'object') {
|
10
|
+
cb(node);
|
11
|
+
|
12
|
+
Object.keys(node).forEach(function (key) {
|
13
|
+
traverse(node[key], cb);
|
14
|
+
});
|
15
|
+
}
|
16
|
+
};
|
17
|
+
|
18
|
+
var walk = function (src, cb) {
|
19
|
+
var ast = esprima.parse(src, { range : true });
|
20
|
+
traverse(ast, cb);
|
21
|
+
};
|
22
|
+
|
23
|
+
var exports = module.exports = function (src, opts) {
|
24
|
+
return exports.find(src, opts).strings;
|
25
|
+
};
|
26
|
+
|
27
|
+
exports.find = function (src, opts) {
|
28
|
+
if (!opts) opts = {};
|
29
|
+
var word = opts.word === undefined ? 'require' : opts.word;
|
30
|
+
if (typeof src !== 'string') src = String(src);
|
31
|
+
|
32
|
+
function isRequire (node) {
|
33
|
+
var c = node.callee;
|
34
|
+
return c
|
35
|
+
&& node.type === 'CallExpression'
|
36
|
+
&& c.type === 'Identifier'
|
37
|
+
&& c.name === word
|
38
|
+
&& src.slice(c.range[0], c.range[1] + 1) === word
|
39
|
+
;
|
40
|
+
}
|
41
|
+
|
42
|
+
var modules = { strings : [], expressions : [] };
|
43
|
+
|
44
|
+
if (src.indexOf(word) == -1) return modules;
|
45
|
+
|
46
|
+
walk(src, function (node) {
|
47
|
+
if (!isRequire(node)) return;
|
48
|
+
if (node.arguments.length
|
49
|
+
&& node.arguments[0].type === 'Literal') {
|
50
|
+
modules.strings.push(node.arguments[0].value);
|
51
|
+
}
|
52
|
+
else {
|
53
|
+
var r = node.arguments[0].range;
|
54
|
+
var s = src.slice(r[0], r[1] + 1);
|
55
|
+
modules.expressions.push(s);
|
56
|
+
}
|
57
|
+
});
|
58
|
+
|
59
|
+
return modules;
|
60
|
+
};
|
@@ -0,0 +1,19 @@
|
|
1
|
+
Redistribution and use in source and binary forms, with or without
|
2
|
+
modification, are permitted provided that the following conditions are met:
|
3
|
+
|
4
|
+
* Redistributions of source code must retain the above copyright
|
5
|
+
notice, this list of conditions and the following disclaimer.
|
6
|
+
* Redistributions in binary form must reproduce the above copyright
|
7
|
+
notice, this list of conditions and the following disclaimer in the
|
8
|
+
documentation and/or other materials provided with the distribution.
|
9
|
+
|
10
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
11
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
12
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
13
|
+
ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
|
14
|
+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
15
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
16
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
17
|
+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
18
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
19
|
+
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
@@ -0,0 +1,74 @@
|
|
1
|
+
Esprima ([esprima.org](http://esprima.org)) is an educational
|
2
|
+
[ECMAScript](http://www.ecma-international.org/publications/standards/Ecma-262.htm)
|
3
|
+
(also popularly known as [JavaScript](http://en.wikipedia.org/wiki/JavaScript>JavaScript))
|
4
|
+
parsing infrastructure for multipurpose analysis. It is also written in ECMAScript.
|
5
|
+
|
6
|
+
Esprima serves as a good basis for various tools such as source
|
7
|
+
modification ([Esmorph](https://github.com/ariya/esmorph)), coverage analyzer
|
8
|
+
([node-cover](https://github.com/itay/node-cover) and
|
9
|
+
[coveraje](https://github.com/coveraje/coveraje)),
|
10
|
+
source-to-source compiler ([Marv](https://github.com/Yoric/Marv-the-Tinker)),
|
11
|
+
syntax formatter ([Code Painter](https://github.com/fawek/codepainter)),
|
12
|
+
and code generator ([escodegen](https://github.com/Constellation/escodegen)).
|
13
|
+
|
14
|
+
Esprima can be used in a web browser:
|
15
|
+
|
16
|
+
<script src="esprima.js"></script>
|
17
|
+
|
18
|
+
or in a Node.js application via the package manager:
|
19
|
+
|
20
|
+
npm install esprima
|
21
|
+
|
22
|
+
Esprima parser output is compatible with Mozilla (SpiderMonkey)
|
23
|
+
[Parser API](https://developer.mozilla.org/en/SpiderMonkey/Parser_API).
|
24
|
+
|
25
|
+
A very simple example:
|
26
|
+
|
27
|
+
esprima.parse('var answer=42').body[0].declarations[0].init
|
28
|
+
|
29
|
+
produces the following object:
|
30
|
+
|
31
|
+
{ type: 'Literal', value: 42 }
|
32
|
+
|
33
|
+
Esprima is still in the development, for now please check
|
34
|
+
[the wiki documentation](http://wiki.esprima.org).
|
35
|
+
|
36
|
+
Since it is not comprehensive nor complete, refer to the
|
37
|
+
[issue tracker](http://issues.esprima.org) for
|
38
|
+
[known problems](http://code.google.com/p/esprima/issues/list?q=Defect)
|
39
|
+
and [future plans](http://code.google.com/p/esprima/issues/list?q=Enhancement).
|
40
|
+
Esprima is supported on [many browsers](http://code.google.com/p/esprima/wiki/BrowserCompatibility):
|
41
|
+
IE 6+, Firefox 1+, Safari 3+, Chrome 1+, and Opera 8+.
|
42
|
+
|
43
|
+
Feedback and contribution are welcomed! Please join the
|
44
|
+
[mailing list](http://groups.google.com/group/esprima) and read the
|
45
|
+
[contribution guide](http://code.google.com/p/esprima/wiki/ContributionGuide)
|
46
|
+
for further info.
|
47
|
+
|
48
|
+
|
49
|
+
### License
|
50
|
+
|
51
|
+
Copyright (C) 2012, 2011 [Ariya Hidayat](http://ariya.ofilabs.com/about)
|
52
|
+
(twitter: [@ariyahidayat](http://twitter.com/ariyahidayat)) and other contributors.
|
53
|
+
|
54
|
+
Redistribution and use in source and binary forms, with or without
|
55
|
+
modification, are permitted provided that the following conditions are met:
|
56
|
+
|
57
|
+
* Redistributions of source code must retain the above copyright
|
58
|
+
notice, this list of conditions and the following disclaimer.
|
59
|
+
|
60
|
+
* Redistributions in binary form must reproduce the above copyright
|
61
|
+
notice, this list of conditions and the following disclaimer in the
|
62
|
+
documentation and/or other materials provided with the distribution.
|
63
|
+
|
64
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
65
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
66
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
67
|
+
ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
|
68
|
+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
69
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
70
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
71
|
+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
72
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
73
|
+
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
74
|
+
|