freezerwatch 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +10 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +40 -0
- data/Rakefile +1 -0
- data/bin/console +14 -0
- data/bin/freezerwatch +9 -0
- data/bin/setup +7 -0
- data/freezerwatch.gemspec +23 -0
- data/lib/freezerwatch.rb +5 -0
- data/lib/freezerwatch/version.rb +3 -0
- data/node_modules/.bin/freezerwatch +139 -0
- data/node_modules/freezerwatch/.npmignore +3 -0
- data/node_modules/freezerwatch/.ruby-version +1 -0
- data/node_modules/freezerwatch/Gemfile +4 -0
- data/node_modules/freezerwatch/Gemfile.lock +79 -0
- data/node_modules/freezerwatch/LICENSE +23 -0
- data/node_modules/freezerwatch/README.md +41 -0
- data/node_modules/freezerwatch/Rakefile +13 -0
- data/node_modules/freezerwatch/freezerwatch.js +139 -0
- data/node_modules/freezerwatch/metrics/bigfiles_high_water_mark +1 -0
- data/node_modules/freezerwatch/metrics/cane_high_water_mark +1 -0
- data/node_modules/freezerwatch/metrics/flay_high_water_mark +1 -0
- data/node_modules/freezerwatch/metrics/flog_high_water_mark +1 -0
- data/node_modules/freezerwatch/metrics/punchlist_high_water_mark +2 -0
- data/node_modules/freezerwatch/metrics/reek_high_water_mark +1 -0
- data/node_modules/freezerwatch/metrics/rubocop_high_water_mark +1 -0
- data/node_modules/freezerwatch/node_modules/async/.jshintrc +25 -0
- data/node_modules/freezerwatch/node_modules/async/.travis.yml +6 -0
- data/node_modules/freezerwatch/node_modules/async/CHANGELOG.md +65 -0
- data/node_modules/freezerwatch/node_modules/async/LICENSE +19 -0
- data/node_modules/freezerwatch/node_modules/async/README.md +1803 -0
- data/node_modules/freezerwatch/node_modules/async/bower.json +43 -0
- data/node_modules/freezerwatch/node_modules/async/component.json +17 -0
- data/node_modules/freezerwatch/node_modules/async/coverage/base.css +182 -0
- data/node_modules/freezerwatch/node_modules/async/coverage/index.html +73 -0
- data/node_modules/freezerwatch/node_modules/async/coverage/lcov-report/base.css +182 -0
- data/node_modules/freezerwatch/node_modules/async/coverage/lcov-report/index.html +73 -0
- data/node_modules/freezerwatch/node_modules/async/coverage/lcov-report/lib/async.js.html +3900 -0
- data/node_modules/freezerwatch/node_modules/async/coverage/lcov-report/lib/index.html +73 -0
- data/node_modules/freezerwatch/node_modules/async/coverage/lcov-report/prettify.css +1 -0
- data/node_modules/freezerwatch/node_modules/async/coverage/lcov-report/prettify.js +1 -0
- data/node_modules/freezerwatch/node_modules/async/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- data/node_modules/freezerwatch/node_modules/async/coverage/lcov-report/sorter.js +156 -0
- data/node_modules/freezerwatch/node_modules/async/coverage/lcov.info +1452 -0
- data/node_modules/freezerwatch/node_modules/async/coverage/lib/async.js.html +3597 -0
- data/node_modules/freezerwatch/node_modules/async/coverage/lib/index.html +73 -0
- data/node_modules/freezerwatch/node_modules/async/coverage/prettify.css +1 -0
- data/node_modules/freezerwatch/node_modules/async/coverage/prettify.js +1 -0
- data/node_modules/freezerwatch/node_modules/async/coverage/sort-arrow-sprite.png +0 -0
- data/node_modules/freezerwatch/node_modules/async/coverage/sorter.js +156 -0
- data/node_modules/freezerwatch/node_modules/async/lib/async.js +1191 -0
- data/node_modules/freezerwatch/node_modules/async/nyc_output/5074.json +1 -0
- data/node_modules/freezerwatch/node_modules/async/package.json +96 -0
- data/node_modules/freezerwatch/node_modules/async/support/sync-package-managers.js +53 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/.npmignore +15 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/Client.js +60 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/Device.js +38 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/DeviceRawReadStream.js +36 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/DeviceSingleRawReadStream.js +29 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/DeviceStream.js +35 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/LICENSE +23 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/README.md +25 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/index.js +1 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/.npmignore +2 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/.travis.yml +12 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/LICENSE +55 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/README.md +364 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/index.js +156 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/lib/copy.js +8 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/lib/debug.js +7 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/lib/getSafe.js +34 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/lib/optional.js +5 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/.bin/uuid +26 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/aws-sign2/LICENSE +55 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/aws-sign2/README.md +4 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/aws-sign2/index.js +202 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/aws-sign2/package.json +46 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/forever-agent/LICENSE +55 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/forever-agent/README.md +4 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/forever-agent/index.js +119 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/forever-agent/package.json +45 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/License +19 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/Readme.md +175 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/lib/form_data.js +351 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/async/.travis.yml +5 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/async/LICENSE +19 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/async/README.md +1647 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/async/bower.json +38 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/async/component.json +16 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/async/lib/async.js +1123 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/async/package.json +84 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/async/support/sync-package-managers.js +53 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/combined-stream/License +19 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/combined-stream/Readme.md +132 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/combined-stream/lib/combined_stream.js +188 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/.npmignore +2 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/License +19 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/Makefile +7 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/Readme.md +154 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/lib/delayed_stream.js +99 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/package.json +42 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/common.js +6 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-delayed-http-upload.js +38 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-delayed-stream-auto-pause.js +21 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-delayed-stream-pause.js +14 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-delayed-stream.js +48 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-handle-source-errors.js +15 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-max-data-size.js +18 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-pipe-resumes.js +13 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-proxy-readable.js +13 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/run.js +7 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/combined-stream/package.json +60 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/package.json +80 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/.npmignore +18 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/.travis.yml +5 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/LICENSE +24 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/Makefile +10 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/README.md +627 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/example/usage.js +78 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/images/hawk.png +0 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/images/logo.png +0 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/index.js +1 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/lib/browser.js +485 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/lib/client.js +367 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/lib/crypto.js +111 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/lib/index.js +15 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/lib/server.js +524 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/lib/utils.js +183 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/boom/.npmignore +18 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/boom/.travis.yml +5 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/boom/LICENSE +24 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/boom/Makefile +11 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/boom/README.md +6 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/boom/images/boom.png +0 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/boom/index.js +1 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/boom/lib/index.js +207 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/boom/package.json +64 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/boom/test/index.js +245 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/cryptiles/.npmignore +18 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/cryptiles/.travis.yml +5 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/cryptiles/LICENSE +24 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/cryptiles/Makefile +11 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/cryptiles/README.md +6 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/cryptiles/index.js +1 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/cryptiles/lib/index.js +68 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/cryptiles/package.json +65 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/cryptiles/test/index.js +101 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/hoek/.npmignore +18 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/hoek/.travis.yml +5 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/hoek/LICENSE +33 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/hoek/Makefile +10 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/hoek/README.md +436 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/hoek/images/hoek.png +0 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/hoek/index.js +1 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/hoek/lib/escape.js +132 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/hoek/lib/index.js +585 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/hoek/package.json +70 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/hoek/test/escaper.js +86 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/hoek/test/index.js +1078 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/hoek/test/modules/test1.js +1 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/hoek/test/modules/test2.js +1 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/hoek/test/modules/test3.js +1 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/sntp/.npmignore +18 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/sntp/.travis.yml +5 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/sntp/LICENSE +24 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/sntp/Makefile +11 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/sntp/README.md +68 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/sntp/examples/offset.js +16 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/sntp/examples/time.js +25 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/sntp/index.js +1 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/sntp/lib/index.js +409 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/sntp/package.json +65 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/sntp/test/index.js +359 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/package.json +70 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/test/browser.js +771 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/test/client.js +206 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/test/crypto.js +86 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/test/index.js +316 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/test/message.js +246 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/test/readme.js +98 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/test/server.js +686 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/test/uri.js +456 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/test/utils.js +120 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/.dir-locals.el +6 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/.npmignore +7 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/LICENSE +18 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/README.md +79 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/http_signing.md +296 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/lib/index.js +26 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/lib/parser.js +304 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/lib/signer.js +178 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/lib/util.js +304 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/lib/verify.js +42 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/asn1/.npmignore +2 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/asn1/LICENSE +19 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/asn1/README.md +50 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/errors.js +13 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/index.js +27 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/reader.js +267 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/types.js +36 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/writer.js +317 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/index.js +20 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/asn1/package.json +63 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/asn1/tst/ber/reader.test.js +172 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/asn1/tst/ber/writer.test.js +296 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/assert-plus/README.md +126 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/assert-plus/assert.js +245 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/assert-plus/package.json +45 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/ctype/.npmignore +1 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/ctype/CHANGELOG +78 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/ctype/LICENSE +24 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/ctype/README +82 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/ctype/README.old +298 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/ctype/ctf.js +245 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/ctype/ctio.js +1485 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/ctype/ctype.js +944 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/ctype/man/man3ctype/ctio.3ctype +241 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/ctype/package.json +42 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/ctype/tools/jsl.conf +129 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/ctype/tools/jsstyle +839 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/package.json +72 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/json-stringify-safe/.npmignore +1 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/json-stringify-safe/CHANGELOG.md +14 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/json-stringify-safe/LICENSE +15 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/json-stringify-safe/Makefile +35 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/json-stringify-safe/README.md +52 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/json-stringify-safe/package.json +68 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/json-stringify-safe/stringify.js +27 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/json-stringify-safe/test/mocha.opts +2 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/json-stringify-safe/test/stringify_test.js +246 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/mime/LICENSE +19 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/mime/README.md +66 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/mime/mime.js +114 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/mime/package.json +57 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/mime/test.js +84 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/mime/types/mime.types +1588 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/mime/types/node.types +77 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/node-uuid/.npmignore +2 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/node-uuid/LICENSE.md +21 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/node-uuid/README.md +243 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/node-uuid/benchmark/README.md +53 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/node-uuid/benchmark/bench.gnu +174 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/node-uuid/benchmark/bench.sh +34 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/node-uuid/benchmark/benchmark-native.c +34 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/node-uuid/benchmark/benchmark.js +84 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/node-uuid/bin/uuid +26 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/node-uuid/bower.json +23 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/node-uuid/component.json +18 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/node-uuid/package.json +65 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/node-uuid/test/compare_v1.js +63 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/node-uuid/test/test.html +17 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/node-uuid/test/test.js +228 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/node-uuid/uuid.js +247 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/oauth-sign/LICENSE +55 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/oauth-sign/README.md +4 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/oauth-sign/index.js +43 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/oauth-sign/package.json +48 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/oauth-sign/test.js +49 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/qs/.gitmodules +6 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/qs/.npmignore +7 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/qs/Readme.md +58 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/qs/index.js +366 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/qs/package.json +55 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/tough-cookie/.jshintrc +72 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/tough-cookie/.npmignore +3 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/tough-cookie/LICENSE +78 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/tough-cookie/README.md +380 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/tough-cookie/generate-pubsuffix.js +230 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/tough-cookie/lib/cookie.js +947 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/tough-cookie/lib/memstore.js +102 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/tough-cookie/lib/pubsuffix.js +69 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/tough-cookie/node_modules/punycode/LICENSE-MIT.txt +20 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/tough-cookie/node_modules/punycode/README.md +176 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/tough-cookie/node_modules/punycode/package.json +81 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/tough-cookie/node_modules/punycode/punycode.js +530 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/tough-cookie/package.json +63 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/tough-cookie/public-suffix.txt +5229 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/tough-cookie/test.js +1340 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/tunnel-agent/LICENSE +55 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/tunnel-agent/README.md +4 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/tunnel-agent/index.js +227 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/tunnel-agent/package.json +45 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/package.json +74 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/request.js +1244 -0
- data/node_modules/freezerwatch/node_modules/lacrosse/package.json +34 -0
- data/node_modules/freezerwatch/node_modules/optparse/README.md +163 -0
- data/node_modules/freezerwatch/node_modules/optparse/TODO +1 -0
- data/node_modules/freezerwatch/node_modules/optparse/examples/browser-test.html +75 -0
- data/node_modules/freezerwatch/node_modules/optparse/examples/nodejs-test.js +86 -0
- data/node_modules/freezerwatch/node_modules/optparse/lib/optparse.js +309 -0
- data/node_modules/freezerwatch/node_modules/optparse/package.json +46 -0
- data/node_modules/freezerwatch/node_modules/optparse/seed.yml +5 -0
- data/node_modules/freezerwatch/node_modules/osenv/.npmignore +13 -0
- data/node_modules/freezerwatch/node_modules/osenv/.travis.yml +9 -0
- data/node_modules/freezerwatch/node_modules/osenv/LICENSE +15 -0
- data/node_modules/freezerwatch/node_modules/osenv/README.md +63 -0
- data/node_modules/freezerwatch/node_modules/osenv/node_modules/os-homedir/index.js +24 -0
- data/node_modules/freezerwatch/node_modules/osenv/node_modules/os-homedir/license +21 -0
- data/node_modules/freezerwatch/node_modules/osenv/node_modules/os-homedir/package.json +70 -0
- data/node_modules/freezerwatch/node_modules/osenv/node_modules/os-homedir/readme.md +33 -0
- data/node_modules/freezerwatch/node_modules/osenv/node_modules/os-tmpdir/index.js +25 -0
- data/node_modules/freezerwatch/node_modules/osenv/node_modules/os-tmpdir/license +21 -0
- data/node_modules/freezerwatch/node_modules/osenv/node_modules/os-tmpdir/package.json +70 -0
- data/node_modules/freezerwatch/node_modules/osenv/node_modules/os-tmpdir/readme.md +36 -0
- data/node_modules/freezerwatch/node_modules/osenv/osenv.js +72 -0
- data/node_modules/freezerwatch/node_modules/osenv/package.json +76 -0
- data/node_modules/freezerwatch/node_modules/osenv/test/unix.js +71 -0
- data/node_modules/freezerwatch/node_modules/osenv/test/windows.js +74 -0
- data/node_modules/freezerwatch/node_modules/osenv/x.tap +39 -0
- data/node_modules/freezerwatch/package.json +37 -0
- metadata +384 -0
@@ -0,0 +1,77 @@
|
|
1
|
+
# What: WebVTT
|
2
|
+
# Why: To allow formats intended for marking up external text track resources.
|
3
|
+
# http://dev.w3.org/html5/webvtt/
|
4
|
+
# Added by: niftylettuce
|
5
|
+
text/vtt vtt
|
6
|
+
|
7
|
+
# What: Google Chrome Extension
|
8
|
+
# Why: To allow apps to (work) be served with the right content type header.
|
9
|
+
# http://codereview.chromium.org/2830017
|
10
|
+
# Added by: niftylettuce
|
11
|
+
application/x-chrome-extension crx
|
12
|
+
|
13
|
+
# What: HTC support
|
14
|
+
# Why: To properly render .htc files such as CSS3PIE
|
15
|
+
# Added by: niftylettuce
|
16
|
+
text/x-component htc
|
17
|
+
|
18
|
+
# What: HTML5 application cache manifes ('.manifest' extension)
|
19
|
+
# Why: De-facto standard. Required by Mozilla browser when serving HTML5 apps
|
20
|
+
# per https://developer.mozilla.org/en/offline_resources_in_firefox
|
21
|
+
# Added by: louisremi
|
22
|
+
text/cache-manifest manifest
|
23
|
+
|
24
|
+
# What: node binary buffer format
|
25
|
+
# Why: semi-standard extension w/in the node community
|
26
|
+
# Added by: tootallnate
|
27
|
+
application/octet-stream buffer
|
28
|
+
|
29
|
+
# What: The "protected" MP-4 formats used by iTunes.
|
30
|
+
# Why: Required for streaming music to browsers (?)
|
31
|
+
# Added by: broofa
|
32
|
+
application/mp4 m4p
|
33
|
+
audio/mp4 m4a
|
34
|
+
|
35
|
+
# What: Video format, Part of RFC1890
|
36
|
+
# Why: See https://github.com/bentomas/node-mime/pull/6
|
37
|
+
# Added by: mjrusso
|
38
|
+
video/MP2T ts
|
39
|
+
|
40
|
+
# What: EventSource mime type
|
41
|
+
# Why: mime type of Server-Sent Events stream
|
42
|
+
# http://www.w3.org/TR/eventsource/#text-event-stream
|
43
|
+
# Added by: francois2metz
|
44
|
+
text/event-stream event-stream
|
45
|
+
|
46
|
+
# What: Mozilla App manifest mime type
|
47
|
+
# Why: https://developer.mozilla.org/en/Apps/Manifest#Serving_manifests
|
48
|
+
# Added by: ednapiranha
|
49
|
+
application/x-web-app-manifest+json webapp
|
50
|
+
|
51
|
+
# What: Lua file types
|
52
|
+
# Why: Googling around shows de-facto consensus on these
|
53
|
+
# Added by: creationix (Issue #45)
|
54
|
+
text/x-lua lua
|
55
|
+
application/x-lua-bytecode luac
|
56
|
+
|
57
|
+
# What: Markdown files, as per http://daringfireball.net/projects/markdown/syntax
|
58
|
+
# Why: http://stackoverflow.com/questions/10701983/what-is-the-mime-type-for-markdown
|
59
|
+
# Added by: avoidwork
|
60
|
+
text/x-markdown markdown md mkd
|
61
|
+
|
62
|
+
# What: ini files
|
63
|
+
# Why: because they're just text files
|
64
|
+
# Added by: Matthew Kastor
|
65
|
+
text/plain ini
|
66
|
+
|
67
|
+
# What: DASH Adaptive Streaming manifest
|
68
|
+
# Why: https://developer.mozilla.org/en-US/docs/DASH_Adaptive_Streaming_for_HTML_5_Video
|
69
|
+
# Added by: eelcocramer
|
70
|
+
application/dash+xml mdp
|
71
|
+
|
72
|
+
# What: OpenType font files - http://www.microsoft.com/typography/otspec/
|
73
|
+
# Why: Browsers usually ignore the font MIME types and sniff the content,
|
74
|
+
# but Chrome, shows a warning if OpenType fonts aren't served with
|
75
|
+
# the `font/opentype` MIME type: http://i.imgur.com/8c5RN8M.png.
|
76
|
+
# Added by: alrra
|
77
|
+
font/opentype otf
|
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2010-2012 Robert Kieffer
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
@@ -0,0 +1,243 @@
|
|
1
|
+
# node-uuid
|
2
|
+
|
3
|
+
Simple, fast generation of [RFC4122](http://www.ietf.org/rfc/rfc4122.txt) UUIDS.
|
4
|
+
|
5
|
+
Features:
|
6
|
+
|
7
|
+
* Generate RFC4122 version 1 or version 4 UUIDs
|
8
|
+
* Runs in node.js and all browsers.
|
9
|
+
* Registered as a [ComponentJS](https://github.com/component/component) [component](https://github.com/component/component/wiki/Components) ('broofa/node-uuid').
|
10
|
+
* Cryptographically strong random # generation on supporting platforms
|
11
|
+
* 1.1K minified and gzip'ed (Want something smaller? Check this [crazy shit](https://gist.github.com/982883) out! )
|
12
|
+
* [Annotated source code](http://broofa.github.com/node-uuid/docs/uuid.html)
|
13
|
+
* Comes with a Command Line Interface for generating uuids on the command line
|
14
|
+
|
15
|
+
## Getting Started
|
16
|
+
|
17
|
+
Install it in your browser:
|
18
|
+
|
19
|
+
```html
|
20
|
+
<script src="uuid.js"></script>
|
21
|
+
```
|
22
|
+
|
23
|
+
Or in node.js:
|
24
|
+
|
25
|
+
```
|
26
|
+
npm install node-uuid
|
27
|
+
```
|
28
|
+
|
29
|
+
```javascript
|
30
|
+
var uuid = require('node-uuid');
|
31
|
+
```
|
32
|
+
|
33
|
+
Then create some ids ...
|
34
|
+
|
35
|
+
```javascript
|
36
|
+
// Generate a v1 (time-based) id
|
37
|
+
uuid.v1(); // -> '6c84fb90-12c4-11e1-840d-7b25c5ee775a'
|
38
|
+
|
39
|
+
// Generate a v4 (random) id
|
40
|
+
uuid.v4(); // -> '110ec58a-a0f2-4ac4-8393-c866d813b8d1'
|
41
|
+
```
|
42
|
+
|
43
|
+
## API
|
44
|
+
|
45
|
+
### uuid.v1([`options` [, `buffer` [, `offset`]]])
|
46
|
+
|
47
|
+
Generate and return a RFC4122 v1 (timestamp-based) UUID.
|
48
|
+
|
49
|
+
* `options` - (Object) Optional uuid state to apply. Properties may include:
|
50
|
+
|
51
|
+
* `node` - (Array) Node id as Array of 6 bytes (per 4.1.6). Default: Randomly generated ID. See note 1.
|
52
|
+
* `clockseq` - (Number between 0 - 0x3fff) RFC clock sequence. Default: An internally maintained clockseq is used.
|
53
|
+
* `msecs` - (Number | Date) Time in milliseconds since unix Epoch. Default: The current time is used.
|
54
|
+
* `nsecs` - (Number between 0-9999) additional time, in 100-nanosecond units. Ignored if `msecs` is unspecified. Default: internal uuid counter is used, as per 4.2.1.2.
|
55
|
+
|
56
|
+
* `buffer` - (Array | Buffer) Array or buffer where UUID bytes are to be written.
|
57
|
+
* `offset` - (Number) Starting index in `buffer` at which to begin writing.
|
58
|
+
|
59
|
+
Returns `buffer`, if specified, otherwise the string form of the UUID
|
60
|
+
|
61
|
+
Notes:
|
62
|
+
|
63
|
+
1. The randomly generated node id is only guaranteed to stay constant for the lifetime of the current JS runtime. (Future versions of this module may use persistent storage mechanisms to extend this guarantee.)
|
64
|
+
|
65
|
+
Example: Generate string UUID with fully-specified options
|
66
|
+
|
67
|
+
```javascript
|
68
|
+
uuid.v1({
|
69
|
+
node: [0x01, 0x23, 0x45, 0x67, 0x89, 0xab],
|
70
|
+
clockseq: 0x1234,
|
71
|
+
msecs: new Date('2011-11-01').getTime(),
|
72
|
+
nsecs: 5678
|
73
|
+
}); // -> "710b962e-041c-11e1-9234-0123456789ab"
|
74
|
+
```
|
75
|
+
|
76
|
+
Example: In-place generation of two binary IDs
|
77
|
+
|
78
|
+
```javascript
|
79
|
+
// Generate two ids in an array
|
80
|
+
var arr = new Array(32); // -> []
|
81
|
+
uuid.v1(null, arr, 0); // -> [02 a2 ce 90 14 32 11 e1 85 58 0b 48 8e 4f c1 15]
|
82
|
+
uuid.v1(null, arr, 16); // -> [02 a2 ce 90 14 32 11 e1 85 58 0b 48 8e 4f c1 15 02 a3 1c b0 14 32 11 e1 85 58 0b 48 8e 4f c1 15]
|
83
|
+
|
84
|
+
// Optionally use uuid.unparse() to get stringify the ids
|
85
|
+
uuid.unparse(buffer); // -> '02a2ce90-1432-11e1-8558-0b488e4fc115'
|
86
|
+
uuid.unparse(buffer, 16) // -> '02a31cb0-1432-11e1-8558-0b488e4fc115'
|
87
|
+
```
|
88
|
+
|
89
|
+
### uuid.v4([`options` [, `buffer` [, `offset`]]])
|
90
|
+
|
91
|
+
Generate and return a RFC4122 v4 UUID.
|
92
|
+
|
93
|
+
* `options` - (Object) Optional uuid state to apply. Properties may include:
|
94
|
+
|
95
|
+
* `random` - (Number[16]) Array of 16 numbers (0-255) to use in place of randomly generated values
|
96
|
+
* `rng` - (Function) Random # generator to use. Set to one of the built-in generators - `uuid.mathRNG` (all platforms), `uuid.nodeRNG` (node.js only), `uuid.whatwgRNG` (WebKit only) - or a custom function that returns an array[16] of byte values.
|
97
|
+
|
98
|
+
* `buffer` - (Array | Buffer) Array or buffer where UUID bytes are to be written.
|
99
|
+
* `offset` - (Number) Starting index in `buffer` at which to begin writing.
|
100
|
+
|
101
|
+
Returns `buffer`, if specified, otherwise the string form of the UUID
|
102
|
+
|
103
|
+
Example: Generate string UUID with fully-specified options
|
104
|
+
|
105
|
+
```javascript
|
106
|
+
uuid.v4({
|
107
|
+
random: [
|
108
|
+
0x10, 0x91, 0x56, 0xbe, 0xc4, 0xfb, 0xc1, 0xea,
|
109
|
+
0x71, 0xb4, 0xef, 0xe1, 0x67, 0x1c, 0x58, 0x36
|
110
|
+
]
|
111
|
+
});
|
112
|
+
// -> "109156be-c4fb-41ea-b1b4-efe1671c5836"
|
113
|
+
```
|
114
|
+
|
115
|
+
Example: Generate two IDs in a single buffer
|
116
|
+
|
117
|
+
```javascript
|
118
|
+
var buffer = new Array(32); // (or 'new Buffer' in node.js)
|
119
|
+
uuid.v4(null, buffer, 0);
|
120
|
+
uuid.v4(null, buffer, 16);
|
121
|
+
```
|
122
|
+
|
123
|
+
### uuid.parse(id[, buffer[, offset]])
|
124
|
+
### uuid.unparse(buffer[, offset])
|
125
|
+
|
126
|
+
Parse and unparse UUIDs
|
127
|
+
|
128
|
+
* `id` - (String) UUID(-like) string
|
129
|
+
* `buffer` - (Array | Buffer) Array or buffer where UUID bytes are to be written. Default: A new Array or Buffer is used
|
130
|
+
* `offset` - (Number) Starting index in `buffer` at which to begin writing. Default: 0
|
131
|
+
|
132
|
+
Example parsing and unparsing a UUID string
|
133
|
+
|
134
|
+
```javascript
|
135
|
+
var bytes = uuid.parse('797ff043-11eb-11e1-80d6-510998755d10'); // -> <Buffer 79 7f f0 43 11 eb 11 e1 80 d6 51 09 98 75 5d 10>
|
136
|
+
var string = uuid.unparse(bytes); // -> '797ff043-11eb-11e1-80d6-510998755d10'
|
137
|
+
```
|
138
|
+
|
139
|
+
### uuid.noConflict()
|
140
|
+
|
141
|
+
(Browsers only) Set `uuid` property back to it's previous value.
|
142
|
+
|
143
|
+
Returns the node-uuid object.
|
144
|
+
|
145
|
+
Example:
|
146
|
+
|
147
|
+
```javascript
|
148
|
+
var myUuid = uuid.noConflict();
|
149
|
+
myUuid.v1(); // -> '6c84fb90-12c4-11e1-840d-7b25c5ee775a'
|
150
|
+
```
|
151
|
+
|
152
|
+
## Deprecated APIs
|
153
|
+
|
154
|
+
Support for the following v1.2 APIs is available in v1.3, but is deprecated and will be removed in the next major version.
|
155
|
+
|
156
|
+
### uuid([format [, buffer [, offset]]])
|
157
|
+
|
158
|
+
uuid() has become uuid.v4(), and the `format` argument is now implicit in the `buffer` argument. (i.e. if you specify a buffer, the format is assumed to be binary).
|
159
|
+
|
160
|
+
### uuid.BufferClass
|
161
|
+
|
162
|
+
The class of container created when generating binary uuid data if no buffer argument is specified. This is expected to go away, with no replacement API.
|
163
|
+
|
164
|
+
## Command Line Interface
|
165
|
+
|
166
|
+
To use the executable, it's probably best to install this library globally.
|
167
|
+
|
168
|
+
`npm install -g node-uuid`
|
169
|
+
|
170
|
+
Usage:
|
171
|
+
|
172
|
+
```
|
173
|
+
USAGE: uuid [version] [options]
|
174
|
+
|
175
|
+
|
176
|
+
options:
|
177
|
+
|
178
|
+
--help Display this message and exit
|
179
|
+
```
|
180
|
+
|
181
|
+
`version` must be an RFC4122 version that is supported by this library, which is currently version 1 and version 4 (denoted by "v1" and "v4", respectively). `version` defaults to version 4 when not supplied.
|
182
|
+
|
183
|
+
### Examples
|
184
|
+
|
185
|
+
```
|
186
|
+
> uuid
|
187
|
+
3a91f950-dec8-4688-ba14-5b7bbfc7a563
|
188
|
+
```
|
189
|
+
|
190
|
+
```
|
191
|
+
> uuid v1
|
192
|
+
9d0b43e0-7696-11e3-964b-250efa37a98e
|
193
|
+
```
|
194
|
+
|
195
|
+
```
|
196
|
+
> uuid v4
|
197
|
+
6790ac7c-24ac-4f98-8464-42f6d98a53ae
|
198
|
+
```
|
199
|
+
|
200
|
+
## Testing
|
201
|
+
|
202
|
+
In node.js
|
203
|
+
|
204
|
+
```
|
205
|
+
npm test
|
206
|
+
```
|
207
|
+
|
208
|
+
In Browser
|
209
|
+
|
210
|
+
```
|
211
|
+
open test/test.html
|
212
|
+
```
|
213
|
+
|
214
|
+
### Benchmarking
|
215
|
+
|
216
|
+
Requires node.js
|
217
|
+
|
218
|
+
```
|
219
|
+
npm install uuid uuid-js
|
220
|
+
node benchmark/benchmark.js
|
221
|
+
```
|
222
|
+
|
223
|
+
For a more complete discussion of node-uuid performance, please see the `benchmark/README.md` file, and the [benchmark wiki](https://github.com/broofa/node-uuid/wiki/Benchmark)
|
224
|
+
|
225
|
+
For browser performance [checkout the JSPerf tests](http://jsperf.com/node-uuid-performance).
|
226
|
+
|
227
|
+
## Release notes
|
228
|
+
|
229
|
+
### 1.4.0
|
230
|
+
|
231
|
+
* Improved module context detection
|
232
|
+
* Removed public RNG functions
|
233
|
+
|
234
|
+
### 1.3.2
|
235
|
+
|
236
|
+
* Improve tests and handling of v1() options (Issue #24)
|
237
|
+
* Expose RNG option to allow for perf testing with different generators
|
238
|
+
|
239
|
+
### 1.3.0
|
240
|
+
|
241
|
+
* Support for version 1 ids, thanks to [@ctavan](https://github.com/ctavan)!
|
242
|
+
* Support for node.js crypto API
|
243
|
+
* De-emphasizing performance in favor of a) cryptographic quality PRNGs where available and b) more manageable code
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# node-uuid Benchmarks
|
2
|
+
|
3
|
+
### Results
|
4
|
+
|
5
|
+
To see the results of our benchmarks visit https://github.com/broofa/node-uuid/wiki/Benchmark
|
6
|
+
|
7
|
+
### Run them yourself
|
8
|
+
|
9
|
+
node-uuid comes with some benchmarks to measure performance of generating UUIDs. These can be run using node.js. node-uuid is being benchmarked against some other uuid modules, that are available through npm namely `uuid` and `uuid-js`.
|
10
|
+
|
11
|
+
To prepare and run the benchmark issue;
|
12
|
+
|
13
|
+
```
|
14
|
+
npm install uuid uuid-js
|
15
|
+
node benchmark/benchmark.js
|
16
|
+
```
|
17
|
+
|
18
|
+
You'll see an output like this one:
|
19
|
+
|
20
|
+
```
|
21
|
+
# v4
|
22
|
+
nodeuuid.v4(): 854700 uuids/second
|
23
|
+
nodeuuid.v4('binary'): 788643 uuids/second
|
24
|
+
nodeuuid.v4('binary', buffer): 1336898 uuids/second
|
25
|
+
uuid(): 479386 uuids/second
|
26
|
+
uuid('binary'): 582072 uuids/second
|
27
|
+
uuidjs.create(4): 312304 uuids/second
|
28
|
+
|
29
|
+
# v1
|
30
|
+
nodeuuid.v1(): 938086 uuids/second
|
31
|
+
nodeuuid.v1('binary'): 683060 uuids/second
|
32
|
+
nodeuuid.v1('binary', buffer): 1644736 uuids/second
|
33
|
+
uuidjs.create(1): 190621 uuids/second
|
34
|
+
```
|
35
|
+
|
36
|
+
* The `uuid()` entries are for Nikhil Marathe's [uuid module](https://bitbucket.org/nikhilm/uuidjs) which is a wrapper around the native libuuid library.
|
37
|
+
* The `uuidjs()` entries are for Patrick Negri's [uuid-js module](https://github.com/pnegri/uuid-js) which is a pure javascript implementation based on [UUID.js](https://github.com/LiosK/UUID.js) by LiosK.
|
38
|
+
|
39
|
+
If you want to get more reliable results you can run the benchmark multiple times and write the output into a log file:
|
40
|
+
|
41
|
+
```
|
42
|
+
for i in {0..9}; do node benchmark/benchmark.js >> benchmark/bench_0.4.12.log; done;
|
43
|
+
```
|
44
|
+
|
45
|
+
If you're interested in how performance varies between different node versions, you can issue the above command multiple times.
|
46
|
+
|
47
|
+
You can then use the shell script `bench.sh` provided in this directory to calculate the averages over all benchmark runs and draw a nice plot:
|
48
|
+
|
49
|
+
```
|
50
|
+
(cd benchmark/ && ./bench.sh)
|
51
|
+
```
|
52
|
+
|
53
|
+
This assumes you have [gnuplot](http://www.gnuplot.info/) and [ImageMagick](http://www.imagemagick.org/) installed. You'll find a nice `bench.png` graph in the `benchmark/` directory then.
|
@@ -0,0 +1,174 @@
|
|
1
|
+
#!/opt/local/bin/gnuplot -persist
|
2
|
+
#
|
3
|
+
#
|
4
|
+
# G N U P L O T
|
5
|
+
# Version 4.4 patchlevel 3
|
6
|
+
# last modified March 2011
|
7
|
+
# System: Darwin 10.8.0
|
8
|
+
#
|
9
|
+
# Copyright (C) 1986-1993, 1998, 2004, 2007-2010
|
10
|
+
# Thomas Williams, Colin Kelley and many others
|
11
|
+
#
|
12
|
+
# gnuplot home: http://www.gnuplot.info
|
13
|
+
# faq, bugs, etc: type "help seeking-assistance"
|
14
|
+
# immediate help: type "help"
|
15
|
+
# plot window: hit 'h'
|
16
|
+
set terminal postscript eps noenhanced defaultplex \
|
17
|
+
leveldefault color colortext \
|
18
|
+
solid linewidth 1.2 butt noclip \
|
19
|
+
palfuncparam 2000,0.003 \
|
20
|
+
"Helvetica" 14
|
21
|
+
set output 'bench.eps'
|
22
|
+
unset clip points
|
23
|
+
set clip one
|
24
|
+
unset clip two
|
25
|
+
set bar 1.000000 front
|
26
|
+
set border 31 front linetype -1 linewidth 1.000
|
27
|
+
set xdata
|
28
|
+
set ydata
|
29
|
+
set zdata
|
30
|
+
set x2data
|
31
|
+
set y2data
|
32
|
+
set timefmt x "%d/%m/%y,%H:%M"
|
33
|
+
set timefmt y "%d/%m/%y,%H:%M"
|
34
|
+
set timefmt z "%d/%m/%y,%H:%M"
|
35
|
+
set timefmt x2 "%d/%m/%y,%H:%M"
|
36
|
+
set timefmt y2 "%d/%m/%y,%H:%M"
|
37
|
+
set timefmt cb "%d/%m/%y,%H:%M"
|
38
|
+
set boxwidth
|
39
|
+
set style fill empty border
|
40
|
+
set style rectangle back fc lt -3 fillstyle solid 1.00 border lt -1
|
41
|
+
set style circle radius graph 0.02, first 0, 0
|
42
|
+
set dummy x,y
|
43
|
+
set format x "% g"
|
44
|
+
set format y "% g"
|
45
|
+
set format x2 "% g"
|
46
|
+
set format y2 "% g"
|
47
|
+
set format z "% g"
|
48
|
+
set format cb "% g"
|
49
|
+
set angles radians
|
50
|
+
unset grid
|
51
|
+
set key title ""
|
52
|
+
set key outside left top horizontal Right noreverse enhanced autotitles columnhead nobox
|
53
|
+
set key noinvert samplen 4 spacing 1 width 0 height 0
|
54
|
+
set key maxcolumns 2 maxrows 0
|
55
|
+
unset label
|
56
|
+
unset arrow
|
57
|
+
set style increment default
|
58
|
+
unset style line
|
59
|
+
set style line 1 linetype 1 linewidth 2.000 pointtype 1 pointsize default pointinterval 0
|
60
|
+
unset style arrow
|
61
|
+
set style histogram clustered gap 2 title offset character 0, 0, 0
|
62
|
+
unset logscale
|
63
|
+
set offsets graph 0.05, 0.15, 0, 0
|
64
|
+
set pointsize 1.5
|
65
|
+
set pointintervalbox 1
|
66
|
+
set encoding default
|
67
|
+
unset polar
|
68
|
+
unset parametric
|
69
|
+
unset decimalsign
|
70
|
+
set view 60, 30, 1, 1
|
71
|
+
set samples 100, 100
|
72
|
+
set isosamples 10, 10
|
73
|
+
set surface
|
74
|
+
unset contour
|
75
|
+
set clabel '%8.3g'
|
76
|
+
set mapping cartesian
|
77
|
+
set datafile separator whitespace
|
78
|
+
unset hidden3d
|
79
|
+
set cntrparam order 4
|
80
|
+
set cntrparam linear
|
81
|
+
set cntrparam levels auto 5
|
82
|
+
set cntrparam points 5
|
83
|
+
set size ratio 0 1,1
|
84
|
+
set origin 0,0
|
85
|
+
set style data points
|
86
|
+
set style function lines
|
87
|
+
set xzeroaxis linetype -2 linewidth 1.000
|
88
|
+
set yzeroaxis linetype -2 linewidth 1.000
|
89
|
+
set zzeroaxis linetype -2 linewidth 1.000
|
90
|
+
set x2zeroaxis linetype -2 linewidth 1.000
|
91
|
+
set y2zeroaxis linetype -2 linewidth 1.000
|
92
|
+
set ticslevel 0.5
|
93
|
+
set mxtics default
|
94
|
+
set mytics default
|
95
|
+
set mztics default
|
96
|
+
set mx2tics default
|
97
|
+
set my2tics default
|
98
|
+
set mcbtics default
|
99
|
+
set xtics border in scale 1,0.5 mirror norotate offset character 0, 0, 0
|
100
|
+
set xtics norangelimit
|
101
|
+
set xtics ()
|
102
|
+
set ytics border in scale 1,0.5 mirror norotate offset character 0, 0, 0
|
103
|
+
set ytics autofreq norangelimit
|
104
|
+
set ztics border in scale 1,0.5 nomirror norotate offset character 0, 0, 0
|
105
|
+
set ztics autofreq norangelimit
|
106
|
+
set nox2tics
|
107
|
+
set noy2tics
|
108
|
+
set cbtics border in scale 1,0.5 mirror norotate offset character 0, 0, 0
|
109
|
+
set cbtics autofreq norangelimit
|
110
|
+
set title ""
|
111
|
+
set title offset character 0, 0, 0 font "" norotate
|
112
|
+
set timestamp bottom
|
113
|
+
set timestamp ""
|
114
|
+
set timestamp offset character 0, 0, 0 font "" norotate
|
115
|
+
set rrange [ * : * ] noreverse nowriteback # (currently [8.98847e+307:-8.98847e+307] )
|
116
|
+
set autoscale rfixmin
|
117
|
+
set autoscale rfixmax
|
118
|
+
set trange [ * : * ] noreverse nowriteback # (currently [-5.00000:5.00000] )
|
119
|
+
set autoscale tfixmin
|
120
|
+
set autoscale tfixmax
|
121
|
+
set urange [ * : * ] noreverse nowriteback # (currently [-10.0000:10.0000] )
|
122
|
+
set autoscale ufixmin
|
123
|
+
set autoscale ufixmax
|
124
|
+
set vrange [ * : * ] noreverse nowriteback # (currently [-10.0000:10.0000] )
|
125
|
+
set autoscale vfixmin
|
126
|
+
set autoscale vfixmax
|
127
|
+
set xlabel ""
|
128
|
+
set xlabel offset character 0, 0, 0 font "" textcolor lt -1 norotate
|
129
|
+
set x2label ""
|
130
|
+
set x2label offset character 0, 0, 0 font "" textcolor lt -1 norotate
|
131
|
+
set xrange [ * : * ] noreverse nowriteback # (currently [-0.150000:3.15000] )
|
132
|
+
set autoscale xfixmin
|
133
|
+
set autoscale xfixmax
|
134
|
+
set x2range [ * : * ] noreverse nowriteback # (currently [0.00000:3.00000] )
|
135
|
+
set autoscale x2fixmin
|
136
|
+
set autoscale x2fixmax
|
137
|
+
set ylabel ""
|
138
|
+
set ylabel offset character 0, 0, 0 font "" textcolor lt -1 rotate by -270
|
139
|
+
set y2label ""
|
140
|
+
set y2label offset character 0, 0, 0 font "" textcolor lt -1 rotate by -270
|
141
|
+
set yrange [ 0.00000 : 1.90000e+06 ] noreverse nowriteback # (currently [:] )
|
142
|
+
set autoscale yfixmin
|
143
|
+
set autoscale yfixmax
|
144
|
+
set y2range [ * : * ] noreverse nowriteback # (currently [0.00000:1.90000e+06] )
|
145
|
+
set autoscale y2fixmin
|
146
|
+
set autoscale y2fixmax
|
147
|
+
set zlabel ""
|
148
|
+
set zlabel offset character 0, 0, 0 font "" textcolor lt -1 norotate
|
149
|
+
set zrange [ * : * ] noreverse nowriteback # (currently [-10.0000:10.0000] )
|
150
|
+
set autoscale zfixmin
|
151
|
+
set autoscale zfixmax
|
152
|
+
set cblabel ""
|
153
|
+
set cblabel offset character 0, 0, 0 font "" textcolor lt -1 rotate by -270
|
154
|
+
set cbrange [ * : * ] noreverse nowriteback # (currently [8.98847e+307:-8.98847e+307] )
|
155
|
+
set autoscale cbfixmin
|
156
|
+
set autoscale cbfixmax
|
157
|
+
set zero 1e-08
|
158
|
+
set lmargin -1
|
159
|
+
set bmargin -1
|
160
|
+
set rmargin -1
|
161
|
+
set tmargin -1
|
162
|
+
set pm3d explicit at s
|
163
|
+
set pm3d scansautomatic
|
164
|
+
set pm3d interpolate 1,1 flush begin noftriangles nohidden3d corners2color mean
|
165
|
+
set palette positive nops_allcF maxcolors 0 gamma 1.5 color model RGB
|
166
|
+
set palette rgbformulae 7, 5, 15
|
167
|
+
set colorbox default
|
168
|
+
set colorbox vertical origin screen 0.9, 0.2, 0 size screen 0.05, 0.6, 0 front bdefault
|
169
|
+
set loadpath
|
170
|
+
set fontpath
|
171
|
+
set fit noerrorvariables
|
172
|
+
GNUTERM = "aqua"
|
173
|
+
plot 'bench_results.txt' using 2:xticlabel(1) w lp lw 2, '' using 3:xticlabel(1) w lp lw 2, '' using 4:xticlabel(1) w lp lw 2, '' using 5:xticlabel(1) w lp lw 2, '' using 6:xticlabel(1) w lp lw 2, '' using 7:xticlabel(1) w lp lw 2, '' using 8:xticlabel(1) w lp lw 2, '' using 9:xticlabel(1) w lp lw 2
|
174
|
+
# EOF
|