fsevents 1.0.12 → 1.0.14
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of fsevents might be problematic. Click here for more details.
- package/.npmignore +1 -3
- package/.travis.yml +6 -5
- package/build/.target.mk +49 -0
- package/build/Makefile +352 -0
- package/build/action_after_build.target.mk +32 -0
- package/build/binding.Makefile +6 -0
- package/build/fse.target.mk +169 -0
- package/build/gyp-mac-tool +612 -0
- package/lib/binding/Release/node-v11-darwin-x64/fse.node +0 -0
- package/lib/binding/Release/node-v46-darwin-x64/fse.node +0 -0
- package/lib/binding/Release/node-v47-darwin-x64/fse.node +0 -0
- package/node_modules/abbrev/package.json +82 -0
- package/node_modules/{lodash.repeat/LICENSE → ansi-regex/license} +5 -7
- package/node_modules/ansi-regex/package.json +20 -2
- package/node_modules/{lodash.padstart/LICENSE → ansi-styles/license} +5 -7
- package/node_modules/ansi-styles/package.json +21 -4
- package/node_modules/aproba/LICENSE +14 -0
- package/node_modules/aproba/README.md +59 -0
- package/node_modules/aproba/index.js +62 -0
- package/node_modules/aproba/package.json +88 -0
- package/node_modules/are-we-there-yet/package.json +21 -4
- package/node_modules/asn1/package.json +19 -1
- package/node_modules/assert-plus/package.json +21 -4
- package/node_modules/async/CHANGELOG.md +125 -0
- package/node_modules/async/LICENSE +19 -0
- package/node_modules/async/package.json +20 -2
- package/node_modules/aws-sign2/package.json +20 -2
- package/node_modules/aws4/aws4.js +1 -1
- package/node_modules/aws4/lru.js +96 -0
- package/node_modules/aws4/package.json +31 -16
- package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion → balanced-match}/.npmignore +2 -0
- package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match → balanced-match}/README.md +5 -3
- package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match → balanced-match}/index.js +9 -1
- package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match → balanced-match}/package.json +35 -13
- package/node_modules/bl/README.md +3 -3
- package/node_modules/bl/bl.js +54 -38
- package/node_modules/bl/node_modules/readable-stream/.npmignore +5 -0
- package/node_modules/bl/node_modules/readable-stream/.travis.yml +52 -0
- package/node_modules/bl/node_modules/readable-stream/LICENSE +18 -0
- package/node_modules/bl/node_modules/readable-stream/README.md +36 -0
- package/node_modules/bl/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +60 -0
- package/node_modules/bl/node_modules/readable-stream/duplex.js +1 -0
- package/node_modules/bl/node_modules/readable-stream/lib/_stream_duplex.js +75 -0
- package/node_modules/bl/node_modules/readable-stream/lib/_stream_passthrough.js +26 -0
- package/node_modules/bl/node_modules/readable-stream/lib/_stream_readable.js +880 -0
- package/node_modules/bl/node_modules/readable-stream/lib/_stream_transform.js +180 -0
- package/node_modules/bl/node_modules/readable-stream/lib/_stream_writable.js +516 -0
- package/node_modules/bl/node_modules/readable-stream/package.json +105 -0
- package/node_modules/bl/node_modules/readable-stream/passthrough.js +1 -0
- package/node_modules/bl/node_modules/readable-stream/readable.js +12 -0
- package/node_modules/bl/node_modules/readable-stream/transform.js +1 -0
- package/node_modules/bl/node_modules/readable-stream/writable.js +1 -0
- package/node_modules/bl/package.json +39 -15
- package/node_modules/bl/test/test.js +71 -2
- package/node_modules/block-stream/package.json +37 -12
- package/node_modules/boom/package.json +20 -2
- package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion → brace-expansion}/package.json +34 -16
- package/node_modules/buffer-shims/index.js +108 -0
- package/node_modules/buffer-shims/license.md +19 -0
- package/node_modules/buffer-shims/package.json +77 -0
- package/node_modules/buffer-shims/readme.md +21 -0
- package/node_modules/caseless/package.json +20 -2
- package/node_modules/{lodash.pad/LICENSE → chalk/license} +5 -7
- package/node_modules/chalk/package.json +21 -4
- package/node_modules/code-point-at/index.js +33 -0
- package/node_modules/{lodash.padend/LICENSE → code-point-at/license} +5 -7
- package/node_modules/code-point-at/package.json +96 -0
- package/node_modules/code-point-at/readme.md +34 -0
- package/node_modules/combined-stream/package.json +20 -2
- package/node_modules/commander/History.md +261 -0
- package/node_modules/commander/LICENSE +22 -0
- package/node_modules/commander/package.json +20 -2
- package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/package.json +21 -3
- package/node_modules/console-control-strings/LICENSE +13 -0
- package/node_modules/console-control-strings/README.md +145 -0
- package/node_modules/console-control-strings/README.md~ +140 -0
- package/node_modules/console-control-strings/index.js +125 -0
- package/node_modules/console-control-strings/package.json +88 -0
- package/node_modules/core-util-is/package.json +21 -2
- package/node_modules/cryptiles/package.json +20 -2
- package/node_modules/dashdash/lib/dashdash.js +34 -1
- package/node_modules/dashdash/node_modules/assert-plus/package.json +21 -4
- package/node_modules/dashdash/package.json +29 -12
- package/node_modules/debug/package.json +20 -2
- package/node_modules/deep-extend/CHANGELOG.md +21 -0
- package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → deep-extend}/LICENSE +3 -1
- package/node_modules/deep-extend/package.json +21 -4
- package/node_modules/delayed-stream/package.json +20 -2
- package/node_modules/delegates/package.json +21 -4
- package/node_modules/ecc-jsbn/package.json +20 -2
- package/node_modules/escape-string-regexp/license +21 -0
- package/node_modules/escape-string-regexp/package.json +21 -4
- package/node_modules/extend/package.json +20 -2
- package/node_modules/extsprintf/package.json +20 -3
- package/node_modules/forever-agent/package.json +20 -2
- package/node_modules/form-data/package.json +21 -4
- package/node_modules/fs.realpath/LICENSE +43 -0
- package/node_modules/fs.realpath/README.md +33 -0
- package/node_modules/fs.realpath/index.js +66 -0
- package/node_modules/fs.realpath/old.js +303 -0
- package/node_modules/fs.realpath/package.json +86 -0
- package/node_modules/fstream/.travis.yml +4 -4
- package/node_modules/fstream/lib/collect.js +2 -0
- package/node_modules/fstream/package.json +37 -15
- package/node_modules/fstream-ignore/package.json +45 -17
- package/node_modules/gauge/CHANGELOG.md +131 -0
- package/node_modules/gauge/CHANGELOG.md~ +123 -0
- package/node_modules/gauge/README.md +317 -88
- package/node_modules/gauge/README.md~ +393 -0
- package/node_modules/gauge/base-theme.js +14 -0
- package/node_modules/gauge/error.js +24 -0
- package/node_modules/gauge/has-color.js +12 -0
- package/node_modules/gauge/index.js +226 -0
- package/node_modules/gauge/package.json +67 -21
- package/node_modules/gauge/plumbing.js +47 -0
- package/node_modules/gauge/process.js +3 -0
- package/node_modules/gauge/progress-bar.js +29 -219
- package/node_modules/gauge/render-template.js +181 -0
- package/node_modules/gauge/set-immediate.js +7 -0
- package/node_modules/gauge/set-interval.js +3 -0
- package/node_modules/gauge/spin.js +5 -0
- package/node_modules/gauge/template-item.js +73 -0
- package/node_modules/gauge/theme-set.js +115 -0
- package/node_modules/gauge/themes.js +54 -0
- package/node_modules/gauge/wide-truncate.js +25 -0
- package/node_modules/generate-function/package.json +20 -2
- package/node_modules/generate-object-property/package.json +20 -2
- package/node_modules/getpass/.npmignore +8 -0
- package/node_modules/getpass/.travis.yml +9 -0
- package/node_modules/getpass/LICENSE +18 -0
- package/node_modules/getpass/README.md +32 -0
- package/node_modules/getpass/lib/index.js +123 -0
- package/node_modules/getpass/node_modules/assert-plus/AUTHORS +6 -0
- package/node_modules/getpass/node_modules/assert-plus/CHANGES.md +14 -0
- package/node_modules/getpass/node_modules/assert-plus/README.md +162 -0
- package/node_modules/getpass/node_modules/assert-plus/assert.js +211 -0
- package/node_modules/getpass/node_modules/assert-plus/package.json +107 -0
- package/node_modules/getpass/package.json +82 -0
- package/node_modules/glob/changelog.md +67 -0
- package/node_modules/{rimraf/node_modules/glob → glob}/glob.js +2 -1
- package/node_modules/glob/package.json +103 -0
- package/node_modules/{rimraf/node_modules/glob → glob}/sync.js +2 -1
- package/node_modules/graceful-fs/LICENSE +15 -0
- package/node_modules/graceful-fs/README.md +82 -2
- package/node_modules/graceful-fs/package.json +30 -12
- package/node_modules/graceful-readlink/package.json +20 -2
- package/node_modules/har-validator/LICENSE +13 -0
- package/node_modules/har-validator/package.json +20 -2
- package/node_modules/has-ansi/license +21 -0
- package/node_modules/has-ansi/package.json +20 -2
- package/node_modules/has-color/index.js +32 -0
- package/node_modules/has-color/package.json +97 -0
- package/node_modules/has-color/readme.md +30 -0
- package/node_modules/has-unicode/index.js +3 -8
- package/node_modules/has-unicode/package.json +36 -12
- package/node_modules/hawk/package.json +20 -2
- package/node_modules/hoek/package.json +20 -2
- package/node_modules/http-signature/package.json +20 -2
- package/node_modules/inflight/package.json +97 -0
- package/node_modules/inherits/package.json +16 -9
- package/node_modules/ini/package.json +21 -4
- package/node_modules/is-fullwidth-code-point/index.js +46 -0
- package/node_modules/is-fullwidth-code-point/license +21 -0
- package/node_modules/is-fullwidth-code-point/package.json +100 -0
- package/node_modules/is-fullwidth-code-point/readme.md +39 -0
- package/node_modules/is-my-json-valid/package.json +21 -4
- package/node_modules/is-property/package.json +20 -2
- package/node_modules/is-typedarray/package.json +20 -2
- package/node_modules/isarray/package.json +21 -2
- package/node_modules/isstream/package.json +20 -2
- package/node_modules/jodid25519/package.json +19 -1
- package/node_modules/jsbn/package.json +19 -1
- package/node_modules/json-schema/package.json +20 -2
- package/node_modules/json-stringify-safe/package.json +20 -2
- package/node_modules/jsonpointer/package.json +19 -1
- package/node_modules/jsprim/CHANGES.md +5 -0
- package/node_modules/jsprim/README.md +13 -4
- package/node_modules/jsprim/lib/jsprim.js +12 -2
- package/node_modules/jsprim/package.json +33 -11
- package/node_modules/mime-db/HISTORY.md +21 -0
- package/node_modules/mime-db/db.json +53 -1
- package/node_modules/mime-db/package.json +36 -19
- package/node_modules/mime-types/HISTORY.md +6 -0
- package/node_modules/mime-types/package.json +33 -16
- package/node_modules/{fstream-ignore/node_modules/minimatch → minimatch}/README.md +2 -9
- package/node_modules/{fstream-ignore/node_modules/minimatch → minimatch}/minimatch.js +15 -3
- package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch → minimatch}/package.json +37 -14
- package/node_modules/mkdirp/package.json +10 -8
- package/node_modules/ms/History.md +66 -0
- package/node_modules/ms/package.json +19 -1
- package/node_modules/node-pre-gyp/CHANGELOG.md +21 -0
- package/node_modules/node-pre-gyp/appveyor.yml +2 -2
- package/node_modules/node-pre-gyp/lib/install.js +12 -2
- package/node_modules/node-pre-gyp/lib/testbinary.js +9 -9
- package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +84 -0
- package/node_modules/node-pre-gyp/package.json +21 -31
- package/node_modules/node-uuid/package.json +20 -2
- package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/package.json +21 -3
- package/node_modules/npmlog/CHANGELOG.md +36 -0
- package/node_modules/npmlog/CHANGELOG.md~ +31 -0
- package/node_modules/npmlog/README.md +16 -1
- package/node_modules/npmlog/log.js +97 -50
- package/node_modules/npmlog/package.json +43 -17
- package/node_modules/number-is-nan/index.js +4 -0
- package/node_modules/number-is-nan/license +21 -0
- package/node_modules/number-is-nan/package.json +94 -0
- package/node_modules/number-is-nan/readme.md +30 -0
- package/node_modules/oauth-sign/package.json +36 -12
- package/node_modules/object-assign/index.js +83 -0
- package/node_modules/object-assign/license +21 -0
- package/node_modules/object-assign/package.json +106 -0
- package/node_modules/object-assign/readme.md +56 -0
- package/node_modules/once/package.json +22 -2
- package/node_modules/path-is-absolute/license +21 -0
- package/node_modules/{rimraf/node_modules/glob/node_modules/path-is-absolute → path-is-absolute}/package.json +22 -4
- package/node_modules/pinkie/license +21 -0
- package/node_modules/pinkie/package.json +21 -4
- package/node_modules/pinkie-promise/index.js +1 -1
- package/node_modules/pinkie-promise/license +21 -0
- package/node_modules/pinkie-promise/package.json +32 -10
- package/node_modules/process-nextick-args/index.js +31 -8
- package/node_modules/process-nextick-args/package.json +33 -10
- package/node_modules/qs/.eslintrc +5 -3
- package/node_modules/qs/.jscs.json +176 -0
- package/node_modules/qs/CHANGELOG.md +10 -0
- package/node_modules/qs/dist/qs.js +75 -63
- package/node_modules/qs/lib/parse.js +32 -29
- package/node_modules/qs/lib/stringify.js +37 -30
- package/node_modules/qs/lib/utils.js +6 -4
- package/node_modules/qs/package.json +41 -18
- package/node_modules/qs/test/parse.js +30 -0
- package/node_modules/qs/test/stringify.js +70 -0
- package/node_modules/rc/node_modules/minimist/package.json +20 -2
- package/node_modules/rc/package.json +21 -4
- package/node_modules/readable-stream/.npmignore +4 -1
- package/node_modules/readable-stream/.travis.yml +2 -0
- package/node_modules/readable-stream/README.md +2 -2
- package/node_modules/readable-stream/doc/stream.md +1772 -0
- package/node_modules/readable-stream/lib/_stream_readable.js +33 -20
- package/node_modules/readable-stream/lib/_stream_transform.js +3 -3
- package/node_modules/readable-stream/lib/_stream_writable.js +25 -15
- package/node_modules/readable-stream/package.json +44 -15
- package/node_modules/readable-stream/readable.js +4 -0
- package/node_modules/request/.eslintrc +1 -1
- package/node_modules/request/.travis.yml +9 -3
- package/node_modules/request/CHANGELOG.md +46 -8
- package/node_modules/request/CONTRIBUTING.md +41 -4
- package/node_modules/request/README.md +9 -6
- package/node_modules/request/codecov.yml +2 -0
- package/node_modules/request/index.js +6 -5
- package/node_modules/request/lib/helpers.js +3 -3
- package/node_modules/request/package.json +52 -30
- package/node_modules/request/request.js +58 -43
- package/node_modules/rimraf/package.json +33 -16
- package/node_modules/rimraf/rimraf.js +10 -2
- package/node_modules/semver/README.md +27 -8
- package/node_modules/semver/package.json +38 -12
- package/node_modules/semver/range.bnf +1 -1
- package/node_modules/semver/semver.js +7 -1
- package/node_modules/set-blocking/CHANGELOG.md +26 -0
- package/node_modules/set-blocking/LICENSE.txt +14 -0
- package/node_modules/set-blocking/README.md +31 -0
- package/node_modules/set-blocking/index.js +7 -0
- package/node_modules/set-blocking/package.json +98 -0
- package/node_modules/signal-exit/CHANGELOG.md +17 -0
- package/node_modules/signal-exit/LICENSE.txt +14 -0
- package/node_modules/signal-exit/README.md +40 -0
- package/node_modules/signal-exit/index.js +148 -0
- package/node_modules/signal-exit/package.json +98 -0
- package/node_modules/signal-exit/signals.js +52 -0
- package/node_modules/sntp/package.json +20 -2
- package/node_modules/sshpk/.travis.yml +3 -3
- package/node_modules/sshpk/README.md +26 -7
- package/node_modules/sshpk/bin/sshpk-conv +14 -2
- package/node_modules/sshpk/bin/sshpk-sign +16 -1
- package/node_modules/sshpk/lib/errors.js +14 -1
- package/node_modules/sshpk/lib/formats/auto.js +8 -8
- package/node_modules/sshpk/lib/formats/pem.js +39 -5
- package/node_modules/sshpk/lib/formats/pkcs1.js +4 -4
- package/node_modules/sshpk/lib/formats/pkcs8.js +4 -4
- package/node_modules/sshpk/lib/formats/rfc4253.js +2 -2
- package/node_modules/sshpk/lib/formats/ssh-private.js +3 -3
- package/node_modules/sshpk/lib/formats/ssh.js +2 -2
- package/node_modules/sshpk/lib/index.js +2 -1
- package/node_modules/sshpk/lib/key.js +20 -17
- package/node_modules/sshpk/lib/private-key.js +19 -12
- package/node_modules/sshpk/lib/utils.js +40 -1
- package/node_modules/sshpk/node_modules/assert-plus/AUTHORS +6 -0
- package/node_modules/sshpk/node_modules/assert-plus/CHANGES.md +14 -0
- package/node_modules/sshpk/node_modules/assert-plus/README.md +162 -0
- package/node_modules/sshpk/node_modules/assert-plus/assert.js +211 -0
- package/node_modules/sshpk/node_modules/assert-plus/package.json +107 -0
- package/node_modules/sshpk/package.json +48 -30
- package/node_modules/string-width/index.js +32 -0
- package/node_modules/string-width/license +21 -0
- package/node_modules/string-width/package.json +111 -0
- package/node_modules/string-width/readme.md +41 -0
- package/node_modules/string_decoder/package.json +21 -2
- package/node_modules/stringstream/package.json +20 -2
- package/node_modules/strip-ansi/license +21 -0
- package/node_modules/strip-ansi/package.json +24 -5
- package/node_modules/strip-json-comments/license +21 -0
- package/node_modules/strip-json-comments/package.json +20 -2
- package/node_modules/supports-color/license +21 -0
- package/node_modules/supports-color/package.json +20 -2
- package/node_modules/tar/package.json +20 -2
- package/node_modules/tar-pack/package.json +34 -17
- package/node_modules/tough-cookie/LICENSE +27 -0
- package/node_modules/tough-cookie/package.json +21 -4
- package/node_modules/tunnel-agent/package.json +35 -10
- package/node_modules/tweetnacl/CHANGELOG.md +0 -53
- package/node_modules/tweetnacl/README.md +42 -24
- package/node_modules/tweetnacl/nacl-fast.js +52 -22
- package/node_modules/tweetnacl/nacl-fast.min.js +2 -2
- package/node_modules/tweetnacl/nacl.js +51 -21
- package/node_modules/tweetnacl/nacl.min.js +1 -1
- package/node_modules/tweetnacl/package.json +56 -30
- package/node_modules/uid-number/package.json +21 -4
- package/node_modules/util-deprecate/package.json +21 -2
- package/node_modules/verror/package.json +20 -3
- package/node_modules/wide-align/.npmignore +5 -0
- package/node_modules/wide-align/LICENSE +14 -0
- package/node_modules/wide-align/README.md +47 -0
- package/node_modules/wide-align/align.js +65 -0
- package/node_modules/wide-align/package.json +85 -0
- package/node_modules/wide-align/test/align.js +37 -0
- package/node_modules/wrappy/package.json +44 -14
- package/node_modules/xtend/package.json +20 -2
- package/package.json +2 -2
- package/node_modules/ansi/.jshintrc +0 -4
- package/node_modules/ansi/History.md +0 -23
- package/node_modules/ansi/LICENSE +0 -24
- package/node_modules/ansi/README.md +0 -98
- package/node_modules/ansi/examples/beep/index.js +0 -16
- package/node_modules/ansi/examples/clear/index.js +0 -15
- package/node_modules/ansi/examples/cursorPosition.js +0 -32
- package/node_modules/ansi/examples/progress/index.js +0 -87
- package/node_modules/ansi/lib/ansi.js +0 -405
- package/node_modules/ansi/lib/newlines.js +0 -71
- package/node_modules/ansi/package.json +0 -69
- package/node_modules/aws4/node_modules/lru-cache/README.md +0 -142
- package/node_modules/aws4/node_modules/lru-cache/lib/lru-cache.js +0 -469
- package/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap/README.md +0 -60
- package/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap/map.js +0 -9
- package/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap/package.json +0 -60
- package/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap/pseudomap.js +0 -113
- package/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap/test/basic.js +0 -86
- package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/.npmignore +0 -4
- package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/.travis.yml +0 -7
- package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/CONTRIBUTING.md +0 -4
- package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/README.md +0 -204
- package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/package.json +0 -60
- package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/test/basic.js +0 -188
- package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/yallist.js +0 -360
- package/node_modules/aws4/node_modules/lru-cache/package.json +0 -78
- package/node_modules/block-stream/bench/block-stream-pause.js +0 -70
- package/node_modules/block-stream/bench/block-stream.js +0 -68
- package/node_modules/block-stream/bench/dropper-pause.js +0 -70
- package/node_modules/block-stream/bench/dropper.js +0 -68
- package/node_modules/block-stream/test/basic.js +0 -27
- package/node_modules/block-stream/test/nopad-thorough.js +0 -68
- package/node_modules/block-stream/test/nopad.js +0 -57
- package/node_modules/block-stream/test/pause-resume.js +0 -73
- package/node_modules/block-stream/test/thorough.js +0 -68
- package/node_modules/block-stream/test/two-stream.js +0 -59
- package/node_modules/fstream-ignore/.npmignore +0 -1
- package/node_modules/fstream-ignore/example/basic.js +0 -13
- package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/.npmignore +0 -3
- package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/example.js +0 -8
- package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.npmignore +0 -2
- package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.travis.yml +0 -3
- package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/Makefile +0 -6
- package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/README.md +0 -89
- package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/example.js +0 -5
- package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json +0 -80
- package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test/balanced.js +0 -84
- package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/package.json +0 -91
- package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/package.json +0 -86
- package/node_modules/fstream-ignore/node_modules/minimatch/package.json +0 -67
- package/node_modules/fstream-ignore/test/.ignore +0 -2
- package/node_modules/fstream-ignore/test/.npmignore +0 -1
- package/node_modules/fstream-ignore/test/00-setup.js +0 -71
- package/node_modules/fstream-ignore/test/basic.js +0 -28
- package/node_modules/fstream-ignore/test/common.js +0 -40
- package/node_modules/fstream-ignore/test/ignore-most.js +0 -41
- package/node_modules/fstream-ignore/test/nested-ignores.js +0 -51
- package/node_modules/fstream-ignore/test/read-file-order.js +0 -81
- package/node_modules/fstream-ignore/test/unignore-child.js +0 -38
- package/node_modules/fstream-ignore/test/zz-cleanup.js +0 -10
- package/node_modules/gauge/.npmignore +0 -32
- package/node_modules/gauge/example.png +0 -0
- package/node_modules/gauge/test/progress-bar.js +0 -176
- package/node_modules/has-unicode/.npmignore +0 -32
- package/node_modules/has-unicode/test/index.js +0 -26
- package/node_modules/lodash.pad/README.md +0 -18
- package/node_modules/lodash.pad/index.js +0 -296
- package/node_modules/lodash.pad/package.json +0 -91
- package/node_modules/lodash.padend/README.md +0 -18
- package/node_modules/lodash.padend/index.js +0 -285
- package/node_modules/lodash.padend/package.json +0 -91
- package/node_modules/lodash.padstart/README.md +0 -18
- package/node_modules/lodash.padstart/index.js +0 -285
- package/node_modules/lodash.padstart/package.json +0 -91
- package/node_modules/lodash.repeat/README.md +0 -18
- package/node_modules/lodash.repeat/index.js +0 -215
- package/node_modules/lodash.repeat/package.json +0 -92
- package/node_modules/lodash.tostring/LICENSE +0 -23
- package/node_modules/lodash.tostring/README.md +0 -18
- package/node_modules/lodash.tostring/index.js +0 -164
- package/node_modules/lodash.tostring/package.json +0 -91
- package/node_modules/node-pre-gyp/README.md +0 -570
- package/node_modules/node-pre-gyp/node_modules/nopt/.npmignore +0 -1
- package/node_modules/node-pre-gyp/node_modules/nopt/node_modules/abbrev/.npmignore +0 -4
- package/node_modules/node-pre-gyp/node_modules/nopt/node_modules/abbrev/.travis.yml +0 -5
- package/node_modules/node-pre-gyp/node_modules/nopt/node_modules/abbrev/CONTRIBUTING.md +0 -3
- package/node_modules/node-pre-gyp/node_modules/nopt/node_modules/abbrev/package.json +0 -56
- package/node_modules/node-pre-gyp/node_modules/nopt/node_modules/abbrev/test.js +0 -47
- package/node_modules/npmlog/.nyc_output/64996.json +0 -1
- package/node_modules/npmlog/.nyc_output/64998.json +0 -1
- package/node_modules/npmlog/.nyc_output/65000.json +0 -1
- package/node_modules/npmlog/.travis.yml +0 -14
- package/node_modules/npmlog/example.js +0 -39
- package/node_modules/npmlog/test/basic.js +0 -235
- package/node_modules/npmlog/test/progress.js +0 -131
- package/node_modules/oauth-sign/test.js +0 -89
- package/node_modules/qs/.npmignore +0 -18
- package/node_modules/qs/.travis.yml +0 -69
- package/node_modules/qs/README.md +0 -335
- package/node_modules/qs/bower.json +0 -22
- package/node_modules/qs/component.json +0 -15
- package/node_modules/rimraf/node_modules/glob/node_modules/inflight/.eslintrc +0 -17
- package/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/README.md +0 -36
- package/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/package.json +0 -59
- package/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/test/basic.js +0 -51
- package/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/wrappy.js +0 -33
- package/node_modules/rimraf/node_modules/glob/node_modules/inflight/package.json +0 -68
- package/node_modules/rimraf/node_modules/glob/node_modules/inflight/test.js +0 -97
- package/node_modules/rimraf/node_modules/glob/node_modules/inherits/LICENSE +0 -16
- package/node_modules/rimraf/node_modules/glob/node_modules/inherits/README.md +0 -42
- package/node_modules/rimraf/node_modules/glob/node_modules/inherits/inherits.js +0 -1
- package/node_modules/rimraf/node_modules/glob/node_modules/inherits/inherits_browser.js +0 -23
- package/node_modules/rimraf/node_modules/glob/node_modules/inherits/package.json +0 -59
- package/node_modules/rimraf/node_modules/glob/node_modules/inherits/test.js +0 -25
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/README.md +0 -216
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/minimatch.js +0 -912
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/README.md +0 -122
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/example.js +0 -8
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/index.js +0 -191
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.npmignore +0 -2
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.travis.yml +0 -3
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/LICENSE.md +0 -21
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/Makefile +0 -6
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/example.js +0 -5
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/index.js +0 -50
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test/balanced.js +0 -84
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/.travis.yml +0 -4
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/README.markdown +0 -62
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/example/map.js +0 -6
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/index.js +0 -13
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/test/map.js +0 -39
- package/node_modules/rimraf/node_modules/glob/node_modules/once/README.md +0 -51
- package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/README.md +0 -36
- package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/package.json +0 -59
- package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/test/basic.js +0 -51
- package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/wrappy.js +0 -33
- package/node_modules/rimraf/node_modules/glob/node_modules/once/once.js +0 -21
- package/node_modules/rimraf/node_modules/glob/node_modules/once/package.json +0 -71
- package/node_modules/rimraf/node_modules/glob/package.json +0 -85
- package/node_modules/semver/.npmignore +0 -4
- package/node_modules/semver/.travis.yml +0 -5
- package/node_modules/semver/test/big-numbers.js +0 -31
- package/node_modules/semver/test/clean.js +0 -29
- package/node_modules/semver/test/gtr.js +0 -173
- package/node_modules/semver/test/index.js +0 -698
- package/node_modules/semver/test/ltr.js +0 -181
- package/node_modules/semver/test/major-minor-patch.js +0 -72
- package/node_modules/tunnel-agent/.jshintrc +0 -5
- package/node_modules/tweetnacl/COPYING.txt +0 -9
- package/node_modules/wrappy/test/basic.js +0 -51
- package/test/fsevents.js +0 -27
- package/test/function.js +0 -93
- /package/node_modules/{aws4/node_modules/lru-cache/node_modules/pseudomap → abbrev}/LICENSE +0 -0
- /package/node_modules/{node-pre-gyp/node_modules/nopt/node_modules/abbrev → abbrev}/README.md +0 -0
- /package/node_modules/{node-pre-gyp/node_modules/nopt/node_modules/abbrev → abbrev}/abbrev.js +0 -0
- /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match → balanced-match}/LICENSE.md +0 -0
- /package/node_modules/{readable-stream → bl/node_modules/readable-stream}/.zuul.yml +0 -0
- /package/node_modules/{readable-stream → bl/node_modules/readable-stream}/doc/stream.markdown +0 -0
- /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion → brace-expansion}/README.md +0 -0
- /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion → brace-expansion}/index.js +0 -0
- /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/.travis.yml +0 -0
- /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/LICENSE +0 -0
- /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/README.markdown +0 -0
- /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/example/map.js +0 -0
- /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/index.js +0 -0
- /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/test/map.js +0 -0
- /package/node_modules/{aws4/node_modules/lru-cache/node_modules/yallist → glob}/LICENSE +0 -0
- /package/node_modules/{rimraf/node_modules/glob → glob}/README.md +0 -0
- /package/node_modules/{rimraf/node_modules/glob → glob}/common.js +0 -0
- /package/node_modules/{rimraf/node_modules/glob/node_modules/inflight → inflight}/LICENSE +0 -0
- /package/node_modules/{rimraf/node_modules/glob/node_modules/inflight → inflight}/README.md +0 -0
- /package/node_modules/{rimraf/node_modules/glob/node_modules/inflight → inflight}/inflight.js +0 -0
- /package/node_modules/{node-pre-gyp/node_modules/nopt → ini}/LICENSE +0 -0
- /package/node_modules/{node-pre-gyp/node_modules/nopt/node_modules/abbrev → minimatch}/LICENSE +0 -0
- /package/node_modules/{ansi → nopt}/.npmignore +0 -0
- /package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/.travis.yml +0 -0
- /package/node_modules/{rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy → nopt}/LICENSE +0 -0
- /package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/README.md +0 -0
- /package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/bin/nopt.js +0 -0
- /package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/examples/my-program.js +0 -0
- /package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/lib/nopt.js +0 -0
- /package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/test/basic.js +0 -0
- /package/node_modules/{rimraf/node_modules/glob/node_modules/once/node_modules/wrappy → once}/LICENSE +0 -0
- /package/node_modules/{rimraf/node_modules/glob/node_modules/path-is-absolute → path-is-absolute}/index.js +0 -0
- /package/node_modules/{rimraf/node_modules/glob/node_modules/path-is-absolute → path-is-absolute}/readme.md +0 -0
@@ -1,405 +0,0 @@
|
|
1
|
-
|
2
|
-
/**
|
3
|
-
* References:
|
4
|
-
*
|
5
|
-
* - http://en.wikipedia.org/wiki/ANSI_escape_code
|
6
|
-
* - http://www.termsys.demon.co.uk/vtansi.htm
|
7
|
-
*
|
8
|
-
*/
|
9
|
-
|
10
|
-
/**
|
11
|
-
* Module dependencies.
|
12
|
-
*/
|
13
|
-
|
14
|
-
var emitNewlineEvents = require('./newlines')
|
15
|
-
, prefix = '\x1b[' // For all escape codes
|
16
|
-
, suffix = 'm' // Only for color codes
|
17
|
-
|
18
|
-
/**
|
19
|
-
* The ANSI escape sequences.
|
20
|
-
*/
|
21
|
-
|
22
|
-
var codes = {
|
23
|
-
up: 'A'
|
24
|
-
, down: 'B'
|
25
|
-
, forward: 'C'
|
26
|
-
, back: 'D'
|
27
|
-
, nextLine: 'E'
|
28
|
-
, previousLine: 'F'
|
29
|
-
, horizontalAbsolute: 'G'
|
30
|
-
, eraseData: 'J'
|
31
|
-
, eraseLine: 'K'
|
32
|
-
, scrollUp: 'S'
|
33
|
-
, scrollDown: 'T'
|
34
|
-
, savePosition: 's'
|
35
|
-
, restorePosition: 'u'
|
36
|
-
, queryPosition: '6n'
|
37
|
-
, hide: '?25l'
|
38
|
-
, show: '?25h'
|
39
|
-
}
|
40
|
-
|
41
|
-
/**
|
42
|
-
* Rendering ANSI codes.
|
43
|
-
*/
|
44
|
-
|
45
|
-
var styles = {
|
46
|
-
bold: 1
|
47
|
-
, italic: 3
|
48
|
-
, underline: 4
|
49
|
-
, inverse: 7
|
50
|
-
}
|
51
|
-
|
52
|
-
/**
|
53
|
-
* The negating ANSI code for the rendering modes.
|
54
|
-
*/
|
55
|
-
|
56
|
-
var reset = {
|
57
|
-
bold: 22
|
58
|
-
, italic: 23
|
59
|
-
, underline: 24
|
60
|
-
, inverse: 27
|
61
|
-
}
|
62
|
-
|
63
|
-
/**
|
64
|
-
* The standard, styleable ANSI colors.
|
65
|
-
*/
|
66
|
-
|
67
|
-
var colors = {
|
68
|
-
white: 37
|
69
|
-
, black: 30
|
70
|
-
, blue: 34
|
71
|
-
, cyan: 36
|
72
|
-
, green: 32
|
73
|
-
, magenta: 35
|
74
|
-
, red: 31
|
75
|
-
, yellow: 33
|
76
|
-
, grey: 90
|
77
|
-
, brightBlack: 90
|
78
|
-
, brightRed: 91
|
79
|
-
, brightGreen: 92
|
80
|
-
, brightYellow: 93
|
81
|
-
, brightBlue: 94
|
82
|
-
, brightMagenta: 95
|
83
|
-
, brightCyan: 96
|
84
|
-
, brightWhite: 97
|
85
|
-
}
|
86
|
-
|
87
|
-
|
88
|
-
/**
|
89
|
-
* Creates a Cursor instance based off the given `writable stream` instance.
|
90
|
-
*/
|
91
|
-
|
92
|
-
function ansi (stream, options) {
|
93
|
-
if (stream._ansicursor) {
|
94
|
-
return stream._ansicursor
|
95
|
-
} else {
|
96
|
-
return stream._ansicursor = new Cursor(stream, options)
|
97
|
-
}
|
98
|
-
}
|
99
|
-
module.exports = exports = ansi
|
100
|
-
|
101
|
-
/**
|
102
|
-
* The `Cursor` class.
|
103
|
-
*/
|
104
|
-
|
105
|
-
function Cursor (stream, options) {
|
106
|
-
if (!(this instanceof Cursor)) {
|
107
|
-
return new Cursor(stream, options)
|
108
|
-
}
|
109
|
-
if (typeof stream != 'object' || typeof stream.write != 'function') {
|
110
|
-
throw new Error('a valid Stream instance must be passed in')
|
111
|
-
}
|
112
|
-
|
113
|
-
// the stream to use
|
114
|
-
this.stream = stream
|
115
|
-
|
116
|
-
// when 'enabled' is false then all the functions are no-ops except for write()
|
117
|
-
this.enabled = options && options.enabled
|
118
|
-
if (typeof this.enabled === 'undefined') {
|
119
|
-
this.enabled = stream.isTTY
|
120
|
-
}
|
121
|
-
this.enabled = !!this.enabled
|
122
|
-
|
123
|
-
// then `buffering` is true, then `write()` calls are buffered in
|
124
|
-
// memory until `flush()` is invoked
|
125
|
-
this.buffering = !!(options && options.buffering)
|
126
|
-
this._buffer = []
|
127
|
-
|
128
|
-
// controls the foreground and background colors
|
129
|
-
this.fg = this.foreground = new Colorer(this, 0)
|
130
|
-
this.bg = this.background = new Colorer(this, 10)
|
131
|
-
|
132
|
-
// defaults
|
133
|
-
this.Bold = false
|
134
|
-
this.Italic = false
|
135
|
-
this.Underline = false
|
136
|
-
this.Inverse = false
|
137
|
-
|
138
|
-
// keep track of the number of "newlines" that get encountered
|
139
|
-
this.newlines = 0
|
140
|
-
emitNewlineEvents(stream)
|
141
|
-
stream.on('newline', function () {
|
142
|
-
this.newlines++
|
143
|
-
}.bind(this))
|
144
|
-
}
|
145
|
-
exports.Cursor = Cursor
|
146
|
-
|
147
|
-
/**
|
148
|
-
* Helper function that calls `write()` on the underlying Stream.
|
149
|
-
* Returns `this` instead of the write() return value to keep
|
150
|
-
* the chaining going.
|
151
|
-
*/
|
152
|
-
|
153
|
-
Cursor.prototype.write = function (data) {
|
154
|
-
if (this.buffering) {
|
155
|
-
this._buffer.push(arguments)
|
156
|
-
} else {
|
157
|
-
this.stream.write.apply(this.stream, arguments)
|
158
|
-
}
|
159
|
-
return this
|
160
|
-
}
|
161
|
-
|
162
|
-
/**
|
163
|
-
* Buffer `write()` calls into memory.
|
164
|
-
*
|
165
|
-
* @api public
|
166
|
-
*/
|
167
|
-
|
168
|
-
Cursor.prototype.buffer = function () {
|
169
|
-
this.buffering = true
|
170
|
-
return this
|
171
|
-
}
|
172
|
-
|
173
|
-
/**
|
174
|
-
* Write out the in-memory buffer.
|
175
|
-
*
|
176
|
-
* @api public
|
177
|
-
*/
|
178
|
-
|
179
|
-
Cursor.prototype.flush = function () {
|
180
|
-
this.buffering = false
|
181
|
-
var str = this._buffer.map(function (args) {
|
182
|
-
if (args.length != 1) throw new Error('unexpected args length! ' + args.length);
|
183
|
-
return args[0];
|
184
|
-
}).join('');
|
185
|
-
this._buffer.splice(0); // empty
|
186
|
-
this.write(str);
|
187
|
-
return this
|
188
|
-
}
|
189
|
-
|
190
|
-
|
191
|
-
/**
|
192
|
-
* The `Colorer` class manages both the background and foreground colors.
|
193
|
-
*/
|
194
|
-
|
195
|
-
function Colorer (cursor, base) {
|
196
|
-
this.current = null
|
197
|
-
this.cursor = cursor
|
198
|
-
this.base = base
|
199
|
-
}
|
200
|
-
exports.Colorer = Colorer
|
201
|
-
|
202
|
-
/**
|
203
|
-
* Write an ANSI color code, ensuring that the same code doesn't get rewritten.
|
204
|
-
*/
|
205
|
-
|
206
|
-
Colorer.prototype._setColorCode = function setColorCode (code) {
|
207
|
-
var c = String(code)
|
208
|
-
if (this.current === c) return
|
209
|
-
this.cursor.enabled && this.cursor.write(prefix + c + suffix)
|
210
|
-
this.current = c
|
211
|
-
return this
|
212
|
-
}
|
213
|
-
|
214
|
-
|
215
|
-
/**
|
216
|
-
* Set up the positional ANSI codes.
|
217
|
-
*/
|
218
|
-
|
219
|
-
Object.keys(codes).forEach(function (name) {
|
220
|
-
var code = String(codes[name])
|
221
|
-
Cursor.prototype[name] = function () {
|
222
|
-
var c = code
|
223
|
-
if (arguments.length > 0) {
|
224
|
-
c = toArray(arguments).map(Math.round).join(';') + code
|
225
|
-
}
|
226
|
-
this.enabled && this.write(prefix + c)
|
227
|
-
return this
|
228
|
-
}
|
229
|
-
})
|
230
|
-
|
231
|
-
/**
|
232
|
-
* Set up the functions for the rendering ANSI codes.
|
233
|
-
*/
|
234
|
-
|
235
|
-
Object.keys(styles).forEach(function (style) {
|
236
|
-
var name = style[0].toUpperCase() + style.substring(1)
|
237
|
-
, c = styles[style]
|
238
|
-
, r = reset[style]
|
239
|
-
|
240
|
-
Cursor.prototype[style] = function () {
|
241
|
-
if (this[name]) return this
|
242
|
-
this.enabled && this.write(prefix + c + suffix)
|
243
|
-
this[name] = true
|
244
|
-
return this
|
245
|
-
}
|
246
|
-
|
247
|
-
Cursor.prototype['reset' + name] = function () {
|
248
|
-
if (!this[name]) return this
|
249
|
-
this.enabled && this.write(prefix + r + suffix)
|
250
|
-
this[name] = false
|
251
|
-
return this
|
252
|
-
}
|
253
|
-
})
|
254
|
-
|
255
|
-
/**
|
256
|
-
* Setup the functions for the standard colors.
|
257
|
-
*/
|
258
|
-
|
259
|
-
Object.keys(colors).forEach(function (color) {
|
260
|
-
var code = colors[color]
|
261
|
-
|
262
|
-
Colorer.prototype[color] = function () {
|
263
|
-
this._setColorCode(this.base + code)
|
264
|
-
return this.cursor
|
265
|
-
}
|
266
|
-
|
267
|
-
Cursor.prototype[color] = function () {
|
268
|
-
return this.foreground[color]()
|
269
|
-
}
|
270
|
-
})
|
271
|
-
|
272
|
-
/**
|
273
|
-
* Makes a beep sound!
|
274
|
-
*/
|
275
|
-
|
276
|
-
Cursor.prototype.beep = function () {
|
277
|
-
this.enabled && this.write('\x07')
|
278
|
-
return this
|
279
|
-
}
|
280
|
-
|
281
|
-
/**
|
282
|
-
* Moves cursor to specific position
|
283
|
-
*/
|
284
|
-
|
285
|
-
Cursor.prototype.goto = function (x, y) {
|
286
|
-
x = x | 0
|
287
|
-
y = y | 0
|
288
|
-
this.enabled && this.write(prefix + y + ';' + x + 'H')
|
289
|
-
return this
|
290
|
-
}
|
291
|
-
|
292
|
-
/**
|
293
|
-
* Resets the color.
|
294
|
-
*/
|
295
|
-
|
296
|
-
Colorer.prototype.reset = function () {
|
297
|
-
this._setColorCode(this.base + 39)
|
298
|
-
return this.cursor
|
299
|
-
}
|
300
|
-
|
301
|
-
/**
|
302
|
-
* Resets all ANSI formatting on the stream.
|
303
|
-
*/
|
304
|
-
|
305
|
-
Cursor.prototype.reset = function () {
|
306
|
-
this.enabled && this.write(prefix + '0' + suffix)
|
307
|
-
this.Bold = false
|
308
|
-
this.Italic = false
|
309
|
-
this.Underline = false
|
310
|
-
this.Inverse = false
|
311
|
-
this.foreground.current = null
|
312
|
-
this.background.current = null
|
313
|
-
return this
|
314
|
-
}
|
315
|
-
|
316
|
-
/**
|
317
|
-
* Sets the foreground color with the given RGB values.
|
318
|
-
* The closest match out of the 216 colors is picked.
|
319
|
-
*/
|
320
|
-
|
321
|
-
Colorer.prototype.rgb = function (r, g, b) {
|
322
|
-
var base = this.base + 38
|
323
|
-
, code = rgb(r, g, b)
|
324
|
-
this._setColorCode(base + ';5;' + code)
|
325
|
-
return this.cursor
|
326
|
-
}
|
327
|
-
|
328
|
-
/**
|
329
|
-
* Same as `cursor.fg.rgb(r, g, b)`.
|
330
|
-
*/
|
331
|
-
|
332
|
-
Cursor.prototype.rgb = function (r, g, b) {
|
333
|
-
return this.foreground.rgb(r, g, b)
|
334
|
-
}
|
335
|
-
|
336
|
-
/**
|
337
|
-
* Accepts CSS color codes for use with ANSI escape codes.
|
338
|
-
* For example: `#FF000` would be bright red.
|
339
|
-
*/
|
340
|
-
|
341
|
-
Colorer.prototype.hex = function (color) {
|
342
|
-
return this.rgb.apply(this, hex(color))
|
343
|
-
}
|
344
|
-
|
345
|
-
/**
|
346
|
-
* Same as `cursor.fg.hex(color)`.
|
347
|
-
*/
|
348
|
-
|
349
|
-
Cursor.prototype.hex = function (color) {
|
350
|
-
return this.foreground.hex(color)
|
351
|
-
}
|
352
|
-
|
353
|
-
|
354
|
-
// UTIL FUNCTIONS //
|
355
|
-
|
356
|
-
/**
|
357
|
-
* Translates a 255 RGB value to a 0-5 ANSI RGV value,
|
358
|
-
* then returns the single ANSI color code to use.
|
359
|
-
*/
|
360
|
-
|
361
|
-
function rgb (r, g, b) {
|
362
|
-
var red = r / 255 * 5
|
363
|
-
, green = g / 255 * 5
|
364
|
-
, blue = b / 255 * 5
|
365
|
-
return rgb5(red, green, blue)
|
366
|
-
}
|
367
|
-
|
368
|
-
/**
|
369
|
-
* Turns rgb 0-5 values into a single ANSI color code to use.
|
370
|
-
*/
|
371
|
-
|
372
|
-
function rgb5 (r, g, b) {
|
373
|
-
var red = Math.round(r)
|
374
|
-
, green = Math.round(g)
|
375
|
-
, blue = Math.round(b)
|
376
|
-
return 16 + (red*36) + (green*6) + blue
|
377
|
-
}
|
378
|
-
|
379
|
-
/**
|
380
|
-
* Accepts a hex CSS color code string (# is optional) and
|
381
|
-
* translates it into an Array of 3 RGB 0-255 values, which
|
382
|
-
* can then be used with rgb().
|
383
|
-
*/
|
384
|
-
|
385
|
-
function hex (color) {
|
386
|
-
var c = color[0] === '#' ? color.substring(1) : color
|
387
|
-
, r = c.substring(0, 2)
|
388
|
-
, g = c.substring(2, 4)
|
389
|
-
, b = c.substring(4, 6)
|
390
|
-
return [parseInt(r, 16), parseInt(g, 16), parseInt(b, 16)]
|
391
|
-
}
|
392
|
-
|
393
|
-
/**
|
394
|
-
* Turns an array-like object into a real array.
|
395
|
-
*/
|
396
|
-
|
397
|
-
function toArray (a) {
|
398
|
-
var i = 0
|
399
|
-
, l = a.length
|
400
|
-
, rtn = []
|
401
|
-
for (; i<l; i++) {
|
402
|
-
rtn.push(a[i])
|
403
|
-
}
|
404
|
-
return rtn
|
405
|
-
}
|
@@ -1,71 +0,0 @@
|
|
1
|
-
|
2
|
-
/**
|
3
|
-
* Accepts any node Stream instance and hijacks its "write()" function,
|
4
|
-
* so that it can count any newlines that get written to the output.
|
5
|
-
*
|
6
|
-
* When a '\n' byte is encountered, then a "newline" event will be emitted
|
7
|
-
* on the stream, with no arguments. It is up to the listeners to determine
|
8
|
-
* any necessary deltas required for their use-case.
|
9
|
-
*
|
10
|
-
* Ex:
|
11
|
-
*
|
12
|
-
* var cursor = ansi(process.stdout)
|
13
|
-
* , ln = 0
|
14
|
-
* process.stdout.on('newline', function () {
|
15
|
-
* ln++
|
16
|
-
* })
|
17
|
-
*/
|
18
|
-
|
19
|
-
/**
|
20
|
-
* Module dependencies.
|
21
|
-
*/
|
22
|
-
|
23
|
-
var assert = require('assert')
|
24
|
-
var NEWLINE = '\n'.charCodeAt(0)
|
25
|
-
|
26
|
-
function emitNewlineEvents (stream) {
|
27
|
-
if (stream._emittingNewlines) {
|
28
|
-
// already emitting newline events
|
29
|
-
return
|
30
|
-
}
|
31
|
-
|
32
|
-
var write = stream.write
|
33
|
-
|
34
|
-
stream.write = function (data) {
|
35
|
-
// first write the data
|
36
|
-
var rtn = write.apply(stream, arguments)
|
37
|
-
|
38
|
-
if (stream.listeners('newline').length > 0) {
|
39
|
-
var len = data.length
|
40
|
-
, i = 0
|
41
|
-
// now try to calculate any deltas
|
42
|
-
if (typeof data == 'string') {
|
43
|
-
for (; i<len; i++) {
|
44
|
-
processByte(stream, data.charCodeAt(i))
|
45
|
-
}
|
46
|
-
} else {
|
47
|
-
// buffer
|
48
|
-
for (; i<len; i++) {
|
49
|
-
processByte(stream, data[i])
|
50
|
-
}
|
51
|
-
}
|
52
|
-
}
|
53
|
-
|
54
|
-
return rtn
|
55
|
-
}
|
56
|
-
|
57
|
-
stream._emittingNewlines = true
|
58
|
-
}
|
59
|
-
module.exports = emitNewlineEvents
|
60
|
-
|
61
|
-
|
62
|
-
/**
|
63
|
-
* Processes an individual byte being written to a stream
|
64
|
-
*/
|
65
|
-
|
66
|
-
function processByte (stream, b) {
|
67
|
-
assert.equal(typeof b, 'number')
|
68
|
-
if (b === NEWLINE) {
|
69
|
-
stream.emit('newline')
|
70
|
-
}
|
71
|
-
}
|
@@ -1,69 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"_from": "ansi@~0.3.1",
|
3
|
-
"_id": "ansi@0.3.1",
|
4
|
-
"_location": "/ansi",
|
5
|
-
"_nodeVersion": "5.3.0",
|
6
|
-
"_npmUser": {
|
7
|
-
"email": "nathan@tootallnate.net",
|
8
|
-
"name": "tootallnate"
|
9
|
-
},
|
10
|
-
"_npmVersion": "3.3.12",
|
11
|
-
"_phantomChildren": {},
|
12
|
-
"_requiredBy": [
|
13
|
-
"/gauge",
|
14
|
-
"/npmlog"
|
15
|
-
],
|
16
|
-
"_resolved": "https://registry.npmjs.org/ansi/-/ansi-0.3.1.tgz",
|
17
|
-
"_shasum": "0c42d4fb17160d5a9af1e484bace1c66922c1b21",
|
18
|
-
"_shrinkwrap": null,
|
19
|
-
"author": {
|
20
|
-
"email": "nathan@tootallnate.net",
|
21
|
-
"name": "Nathan Rajlich",
|
22
|
-
"url": "http://tootallnate.net"
|
23
|
-
},
|
24
|
-
"bugs": {
|
25
|
-
"url": "https://github.com/TooTallNate/ansi.js/issues"
|
26
|
-
},
|
27
|
-
"dependencies": {},
|
28
|
-
"description": "Advanced ANSI formatting tool for Node.js",
|
29
|
-
"devDependencies": {},
|
30
|
-
"directories": {},
|
31
|
-
"dist": {
|
32
|
-
"shasum": "0c42d4fb17160d5a9af1e484bace1c66922c1b21",
|
33
|
-
"tarball": "http://registry.npmjs.org/ansi/-/ansi-0.3.1.tgz"
|
34
|
-
},
|
35
|
-
"gitHead": "4d0d4af94e0bdaa648bd7262acd3bde4b98d5246",
|
36
|
-
"homepage": "https://github.com/TooTallNate/ansi.js#readme",
|
37
|
-
"keywords": [
|
38
|
-
"256",
|
39
|
-
"ansi",
|
40
|
-
"color",
|
41
|
-
"cursor",
|
42
|
-
"formatting",
|
43
|
-
"rgb",
|
44
|
-
"stream",
|
45
|
-
"terminal"
|
46
|
-
],
|
47
|
-
"license": "MIT",
|
48
|
-
"main": "./lib/ansi.js",
|
49
|
-
"maintainers": [
|
50
|
-
{
|
51
|
-
"name": "TooTallNate",
|
52
|
-
"email": "nathan@tootallnate.net"
|
53
|
-
},
|
54
|
-
{
|
55
|
-
"name": "tootallnate",
|
56
|
-
"email": "nathan@tootallnate.net"
|
57
|
-
}
|
58
|
-
],
|
59
|
-
"name": "ansi",
|
60
|
-
"optionalDependencies": {},
|
61
|
-
"readme": "ansi.js\n=========\n### Advanced ANSI formatting tool for Node.js\n\n`ansi.js` is a module for Node.js that provides an easy-to-use API for\nwriting ANSI escape codes to `Stream` instances. ANSI escape codes are used to do\nfancy things in a terminal window, like render text in colors, delete characters,\nlines, the entire window, or hide and show the cursor, and lots more!\n\n#### Features:\n\n * 256 color support for the terminal!\n * Make a beep sound from your terminal!\n * Works with *any* writable `Stream` instance.\n * Allows you to move the cursor anywhere on the terminal window.\n * Allows you to delete existing contents from the terminal window.\n * Allows you to hide and show the cursor.\n * Converts CSS color codes and RGB values into ANSI escape codes.\n * Low-level; you are in control of when escape codes are used, it's not abstracted.\n\n\nInstallation\n------------\n\nInstall with `npm`:\n\n``` bash\n$ npm install ansi\n```\n\n\nExample\n-------\n\n``` js\nvar ansi = require('ansi')\n , cursor = ansi(process.stdout)\n\n// You can chain your calls forever:\ncursor\n .red() // Set font color to red\n .bg.grey() // Set background color to grey\n .write('Hello World!') // Write 'Hello World!' to stdout\n .bg.reset() // Reset the bgcolor before writing the trailing \\n,\n // to avoid Terminal glitches\n .write('\\n') // And a final \\n to wrap things up\n\n// Rendering modes are persistent:\ncursor.hex('#660000').bold().underline()\n\n// You can use the regular logging functions, text will be green:\nconsole.log('This is blood red, bold text')\n\n// To reset just the foreground color:\ncursor.fg.reset()\n\nconsole.log('This will still be bold')\n\n// to go to a location (x,y) on the console\n// note: 1-indexed, not 0-indexed:\ncursor.goto(10, 5).write('Five down, ten over')\n\n// to clear the current line:\ncursor.horizontalAbsolute(0).eraseLine().write('Starting again')\n\n// to go to a different column on the current line:\ncursor.horizontalAbsolute(5).write('column five')\n\n// Clean up after yourself!\ncursor.reset()\n```\n\n\nLicense\n-------\n\n(The MIT License)\n\nCopyright (c) 2012 Nathan Rajlich <nathan@tootallnate.net>\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n",
|
62
|
-
"readmeFilename": "README.md",
|
63
|
-
"repository": {
|
64
|
-
"type": "git",
|
65
|
-
"url": "git://github.com/TooTallNate/ansi.js.git"
|
66
|
-
},
|
67
|
-
"scripts": {},
|
68
|
-
"version": "0.3.1"
|
69
|
-
}
|
@@ -1,142 +0,0 @@
|
|
1
|
-
# lru cache
|
2
|
-
|
3
|
-
A cache object that deletes the least-recently-used items.
|
4
|
-
|
5
|
-
[![Build Status](https://travis-ci.org/isaacs/node-lru-cache.svg?branch=master)](https://travis-ci.org/isaacs/node-lru-cache) [![Coverage Status](https://coveralls.io/repos/isaacs/node-lru-cache/badge.svg?service=github)](https://coveralls.io/github/isaacs/node-lru-cache)
|
6
|
-
|
7
|
-
## Usage:
|
8
|
-
|
9
|
-
```javascript
|
10
|
-
var LRU = require("lru-cache")
|
11
|
-
, options = { max: 500
|
12
|
-
, length: function (n, key) { return n * 2 + key.length }
|
13
|
-
, dispose: function (key, n) { n.close() }
|
14
|
-
, maxAge: 1000 * 60 * 60 }
|
15
|
-
, cache = LRU(options)
|
16
|
-
, otherCache = LRU(50) // sets just the max size
|
17
|
-
|
18
|
-
cache.set("key", "value")
|
19
|
-
cache.get("key") // "value"
|
20
|
-
|
21
|
-
// non-string keys ARE fully supported
|
22
|
-
var someObject = {}
|
23
|
-
cache.set(someObject, 'a value')
|
24
|
-
cache.set('[object Object]', 'a different value')
|
25
|
-
assert.equal(cache.get(someObject), 'a value')
|
26
|
-
|
27
|
-
cache.reset() // empty the cache
|
28
|
-
```
|
29
|
-
|
30
|
-
If you put more stuff in it, then items will fall out.
|
31
|
-
|
32
|
-
If you try to put an oversized thing in it, then it'll fall out right
|
33
|
-
away.
|
34
|
-
|
35
|
-
## Options
|
36
|
-
|
37
|
-
* `max` The maximum size of the cache, checked by applying the length
|
38
|
-
function to all values in the cache. Not setting this is kind of
|
39
|
-
silly, since that's the whole purpose of this lib, but it defaults
|
40
|
-
to `Infinity`.
|
41
|
-
* `maxAge` Maximum age in ms. Items are not pro-actively pruned out
|
42
|
-
as they age, but if you try to get an item that is too old, it'll
|
43
|
-
drop it and return undefined instead of giving it to you.
|
44
|
-
* `length` Function that is used to calculate the length of stored
|
45
|
-
items. If you're storing strings or buffers, then you probably want
|
46
|
-
to do something like `function(n, key){return n.length}`. The default is
|
47
|
-
`function(){return 1}`, which is fine if you want to store `max`
|
48
|
-
like-sized things. They item is passed as the first argument, and
|
49
|
-
the key is passed as the second argumnet.
|
50
|
-
* `dispose` Function that is called on items when they are dropped
|
51
|
-
from the cache. This can be handy if you want to close file
|
52
|
-
descriptors or do other cleanup tasks when items are no longer
|
53
|
-
accessible. Called with `key, value`. It's called *before*
|
54
|
-
actually removing the item from the internal cache, so if you want
|
55
|
-
to immediately put it back in, you'll have to do that in a
|
56
|
-
`nextTick` or `setTimeout` callback or it won't do anything.
|
57
|
-
* `stale` By default, if you set a `maxAge`, it'll only actually pull
|
58
|
-
stale items out of the cache when you `get(key)`. (That is, it's
|
59
|
-
not pre-emptively doing a `setTimeout` or anything.) If you set
|
60
|
-
`stale:true`, it'll return the stale value before deleting it. If
|
61
|
-
you don't set this, then it'll return `undefined` when you try to
|
62
|
-
get a stale entry, as if it had already been deleted.
|
63
|
-
|
64
|
-
## API
|
65
|
-
|
66
|
-
* `set(key, value, maxAge)`
|
67
|
-
* `get(key) => value`
|
68
|
-
|
69
|
-
Both of these will update the "recently used"-ness of the key.
|
70
|
-
They do what you think. `maxAge` is optional and overrides the
|
71
|
-
cache `maxAge` option if provided.
|
72
|
-
|
73
|
-
If the key is not found, `get()` will return `undefined`.
|
74
|
-
|
75
|
-
The key and val can be any value.
|
76
|
-
|
77
|
-
* `peek(key)`
|
78
|
-
|
79
|
-
Returns the key value (or `undefined` if not found) without
|
80
|
-
updating the "recently used"-ness of the key.
|
81
|
-
|
82
|
-
(If you find yourself using this a lot, you *might* be using the
|
83
|
-
wrong sort of data structure, but there are some use cases where
|
84
|
-
it's handy.)
|
85
|
-
|
86
|
-
* `del(key)`
|
87
|
-
|
88
|
-
Deletes a key out of the cache.
|
89
|
-
|
90
|
-
* `reset()`
|
91
|
-
|
92
|
-
Clear the cache entirely, throwing away all values.
|
93
|
-
|
94
|
-
* `has(key)`
|
95
|
-
|
96
|
-
Check if a key is in the cache, without updating the recent-ness
|
97
|
-
or deleting it for being stale.
|
98
|
-
|
99
|
-
* `forEach(function(value,key,cache), [thisp])`
|
100
|
-
|
101
|
-
Just like `Array.prototype.forEach`. Iterates over all the keys
|
102
|
-
in the cache, in order of recent-ness. (Ie, more recently used
|
103
|
-
items are iterated over first.)
|
104
|
-
|
105
|
-
* `rforEach(function(value,key,cache), [thisp])`
|
106
|
-
|
107
|
-
The same as `cache.forEach(...)` but items are iterated over in
|
108
|
-
reverse order. (ie, less recently used items are iterated over
|
109
|
-
first.)
|
110
|
-
|
111
|
-
* `keys()`
|
112
|
-
|
113
|
-
Return an array of the keys in the cache.
|
114
|
-
|
115
|
-
* `values()`
|
116
|
-
|
117
|
-
Return an array of the values in the cache.
|
118
|
-
|
119
|
-
* `length`
|
120
|
-
|
121
|
-
Return total length of objects in cache taking into account
|
122
|
-
`length` options function.
|
123
|
-
|
124
|
-
* `itemCount`
|
125
|
-
|
126
|
-
Return total quantity of objects currently in cache. Note, that
|
127
|
-
`stale` (see options) items are returned as part of this item
|
128
|
-
count.
|
129
|
-
|
130
|
-
* `dump()`
|
131
|
-
|
132
|
-
Return an array of the cache entries ready for serialization and usage
|
133
|
-
with 'destinationCache.load(arr)`.
|
134
|
-
|
135
|
-
* `load(cacheEntriesArray)`
|
136
|
-
|
137
|
-
Loads another cache entries array, obtained with `sourceCache.dump()`,
|
138
|
-
into the cache. The destination cache is reset before loading new entries
|
139
|
-
|
140
|
-
* `prune()`
|
141
|
-
|
142
|
-
Manually iterates over the entire cache proactively pruning old entries
|