From fb040bee0710759c60e45bf8fa2a3b8ddcf4212a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kat=20March=C3=A1n?= Date: Sat, 8 Jul 2017 15:20:33 -0700 Subject: [PATCH] npx: bundle npx with npm itself npx is an npm package runner with a bunch of nice features. While it is also available on the npm registry as `npx`, it's the sort of thing that's better off being bundles with npm itself. Fixes: #6053 PR-URL: https://github.com/npm/npm/pull/17685 Credit: @zkat Reviewed-By: @iarna --- Makefile | 6 +- bin/npx | 34 + bin/npx-cli.js | 8 + bin/npx.cmd | 19 + node_modules/libnpx/CHANGELOG.md | 512 ++++++ node_modules/libnpx/LICENSE.md | 3 + node_modules/libnpx/README.md | 150 ++ node_modules/libnpx/auto-fallback.js | 61 + node_modules/libnpx/child.js | 84 + node_modules/libnpx/get-prefix.js | 54 + node_modules/libnpx/index.js | 277 ++++ node_modules/libnpx/libnpx.1 | 158 ++ node_modules/libnpx/locales/ca.json | 28 + node_modules/libnpx/locales/de.json | 19 + node_modules/libnpx/locales/en.json | 28 + node_modules/libnpx/locales/es.json | 28 + node_modules/libnpx/locales/fr.json | 29 + node_modules/libnpx/locales/ja.json | 28 + node_modules/libnpx/locales/pt_BR.json | 28 + node_modules/libnpx/locales/ro.json | 28 + node_modules/libnpx/locales/ru.json | 29 + node_modules/libnpx/locales/zh_CN.json | 28 + node_modules/libnpx/node_modules/.bin/rc | 1 + node_modules/libnpx/node_modules/.bin/rimraf | 1 + node_modules/libnpx/node_modules/.bin/semver | 1 + node_modules/libnpx/node_modules/.bin/which | 1 + .../node_modules/ansi-align/CHANGELOG.md | 36 + .../libnpx/node_modules/ansi-align/LICENSE | 13 + .../libnpx/node_modules/ansi-align/README.md | 79 + .../libnpx/node_modules/ansi-align/index.js | 61 + .../node_modules/ansi-align/package.json | 73 + .../libnpx/node_modules/ansi-regex/index.js | 10 + .../libnpx/node_modules/ansi-regex/license | 9 + .../node_modules/ansi-regex/package.json | 88 + .../libnpx/node_modules/ansi-regex/readme.md | 46 + .../libnpx/node_modules/ansi-styles/index.js | 65 + .../libnpx/node_modules/ansi-styles/license | 21 + .../node_modules/ansi-styles/package.json | 93 ++ .../libnpx/node_modules/ansi-styles/readme.md | 86 + .../node_modules/balanced-match/.npmignore | 5 + .../node_modules/balanced-match/LICENSE.md | 21 + .../node_modules/balanced-match/README.md | 91 + .../node_modules/balanced-match/index.js | 59 + .../node_modules/balanced-match/package.json | 80 + .../libnpx/node_modules/boxen/index.js | 138 ++ .../libnpx/node_modules/boxen/license | 21 + .../libnpx/node_modules/boxen/package.json | 85 + .../libnpx/node_modules/boxen/readme.md | 175 ++ .../node_modules/brace-expansion/README.md | 123 ++ .../node_modules/brace-expansion/index.js | 201 +++ .../node_modules/brace-expansion/package.json | 78 + .../builtin-modules/builtin-modules.json | 35 + .../node_modules/builtin-modules/index.js | 10 + .../node_modules/builtin-modules/license | 21 + .../node_modules/builtin-modules/package.json | 75 + .../node_modules/builtin-modules/readme.md | 41 + .../node_modules/builtin-modules/static.js | 2 + .../libnpx/node_modules/builtins/.travis.yml | 4 + .../libnpx/node_modules/builtins/History.md | 39 + .../libnpx/node_modules/builtins/License | 20 + .../libnpx/node_modules/builtins/Readme.md | 18 + .../node_modules/builtins/builtins.json | 35 + .../libnpx/node_modules/builtins/package.json | 49 + .../libnpx/node_modules/builtins/test.js | 5 + .../libnpx/node_modules/camelcase/index.js | 64 + .../libnpx/node_modules/camelcase/license | 21 + .../node_modules/camelcase/package.json | 79 + .../libnpx/node_modules/camelcase/readme.md | 57 + .../node_modules/capture-stack-trace/index.js | 18 + .../capture-stack-trace/package.json | 64 + .../capture-stack-trace/readme.md | 36 + .../libnpx/node_modules/chalk/index.js | 116 ++ .../libnpx/node_modules/chalk/license | 21 + .../chalk/node_modules/ansi-regex/index.js | 4 + .../chalk/node_modules/ansi-regex/license | 21 + .../node_modules/ansi-regex/package.json | 111 ++ .../chalk/node_modules/ansi-regex/readme.md | 39 + .../chalk/node_modules/strip-ansi/index.js | 6 + .../chalk/node_modules/strip-ansi/license | 21 + .../node_modules/strip-ansi/package.json | 104 ++ .../chalk/node_modules/strip-ansi/readme.md | 33 + .../libnpx/node_modules/chalk/package.json | 118 ++ .../libnpx/node_modules/chalk/readme.md | 213 +++ .../libnpx/node_modules/cli-boxes/boxes.json | 50 + .../libnpx/node_modules/cli-boxes/index.js | 2 + .../libnpx/node_modules/cli-boxes/license | 21 + .../node_modules/cli-boxes/package.json | 74 + .../libnpx/node_modules/cli-boxes/readme.md | 94 ++ .../libnpx/node_modules/cliui/CHANGELOG.md | 15 + .../libnpx/node_modules/cliui/LICENSE.txt | 14 + .../libnpx/node_modules/cliui/README.md | 110 ++ .../libnpx/node_modules/cliui/index.js | 316 ++++ .../cliui/node_modules/ansi-regex/index.js | 4 + .../cliui/node_modules/ansi-regex/license | 21 + .../node_modules/ansi-regex/package.json | 111 ++ .../cliui/node_modules/ansi-regex/readme.md | 39 + .../is-fullwidth-code-point/index.js | 46 + .../is-fullwidth-code-point/license | 21 + .../is-fullwidth-code-point/package.json | 80 + .../is-fullwidth-code-point/readme.md | 39 + .../cliui/node_modules/string-width/index.js | 37 + .../cliui/node_modules/string-width/license | 21 + .../node_modules/string-width/package.json | 91 + .../cliui/node_modules/string-width/readme.md | 42 + .../cliui/node_modules/strip-ansi/index.js | 6 + .../cliui/node_modules/strip-ansi/license | 21 + .../node_modules/strip-ansi/package.json | 105 ++ .../cliui/node_modules/strip-ansi/readme.md | 33 + .../libnpx/node_modules/cliui/package.json | 102 ++ .../node_modules/code-point-at/index.js | 32 + .../libnpx/node_modules/code-point-at/license | 21 + .../node_modules/code-point-at/package.json | 75 + .../node_modules/code-point-at/readme.md | 32 + .../node_modules/concat-map/.travis.yml | 4 + .../libnpx/node_modules/concat-map/LICENSE | 18 + .../node_modules/concat-map/README.markdown | 62 + .../node_modules/concat-map/example/map.js | 6 + .../libnpx/node_modules/concat-map/index.js | 13 + .../node_modules/concat-map/package.json | 91 + .../node_modules/concat-map/test/map.js | 39 + .../libnpx/node_modules/configstore/index.js | 98 ++ .../node_modules/configstore/package.json | 82 + .../libnpx/node_modules/configstore/readme.md | 116 ++ .../node_modules/create-error-class/index.js | 44 + .../node_modules/create-error-class/license | 21 + .../create-error-class/package.json | 63 + .../node_modules/create-error-class/readme.md | 54 + .../cross-spawn-async/.editorconfig | 15 + .../node_modules/cross-spawn-async/.npmignore | 3 + .../cross-spawn-async/.travis.yml | 7 + .../node_modules/cross-spawn-async/LICENSE | 19 + .../node_modules/cross-spawn-async/README.md | 58 + .../cross-spawn-async/appveyor.yml | 30 + .../node_modules/cross-spawn-async/index.js | 27 + .../cross-spawn-async/lib/enoent.js | 51 + .../cross-spawn-async/lib/parse.js | 128 ++ .../cross-spawn-async/lib/resolveCommand.js | 38 + .../cross-spawn-async/package.json | 79 + .../libnpx/node_modules/cross-spawn/LICENSE | 19 + .../libnpx/node_modules/cross-spawn/README.md | 71 + .../libnpx/node_modules/cross-spawn/index.js | 59 + .../node_modules/cross-spawn/lib/enoent.js | 73 + .../cross-spawn/lib/hasBrokenSpawn.js | 11 + .../node_modules/cross-spawn/lib/parse.js | 140 ++ .../cross-spawn/lib/resolveCommand.js | 31 + .../node_modules/cross-spawn/package.json | 84 + .../crypto-random-string/index.js | 10 + .../node_modules/crypto-random-string/license | 21 + .../crypto-random-string/package.json | 78 + .../crypto-random-string/readme.md | 49 + .../libnpx/node_modules/decamelize/index.js | 13 + .../libnpx/node_modules/decamelize/license | 21 + .../node_modules/decamelize/package.json | 73 + .../libnpx/node_modules/decamelize/readme.md | 48 + .../node_modules/deep-extend/CHANGELOG.md | 21 + .../libnpx/node_modules/deep-extend/LICENSE | 20 + .../libnpx/node_modules/deep-extend/README.md | 90 + .../libnpx/node_modules/deep-extend/index.js | 1 + .../deep-extend/lib/deep-extend.js | 144 ++ .../node_modules/deep-extend/package.json | 96 ++ .../libnpx/node_modules/dot-prop/index.js | 120 ++ .../libnpx/node_modules/dot-prop/license | 21 + .../libnpx/node_modules/dot-prop/package.json | 83 + .../libnpx/node_modules/dot-prop/readme.md | 97 ++ .../libnpx/node_modules/dotenv/CHANGELOG.md | 76 + .../libnpx/node_modules/dotenv/LICENSE | 23 + .../libnpx/node_modules/dotenv/README.md | 208 +++ .../libnpx/node_modules/dotenv/config.js | 11 + .../libnpx/node_modules/dotenv/lib/main.js | 74 + .../libnpx/node_modules/dotenv/package.json | 76 + .../libnpx/node_modules/duplexer3/LICENSE.md | 26 + .../libnpx/node_modules/duplexer3/README.md | 115 ++ .../libnpx/node_modules/duplexer3/index.js | 76 + .../node_modules/duplexer3/package.json | 67 + .../libnpx/node_modules/error-ex/LICENSE | 21 + .../libnpx/node_modules/error-ex/README.md | 144 ++ .../libnpx/node_modules/error-ex/index.js | 133 ++ .../libnpx/node_modules/error-ex/package.json | 89 + .../escape-string-regexp/index.js | 11 + .../node_modules/escape-string-regexp/license | 21 + .../escape-string-regexp/package.json | 84 + .../escape-string-regexp/readme.md | 27 + .../libnpx/node_modules/execa/index.js | 172 ++ .../libnpx/node_modules/execa/license | 21 + .../libnpx/node_modules/execa/package.json | 97 ++ .../libnpx/node_modules/execa/readme.md | 137 ++ .../libnpx/node_modules/find-up/index.js | 48 + .../libnpx/node_modules/find-up/license | 21 + .../libnpx/node_modules/find-up/package.json | 88 + .../libnpx/node_modules/find-up/readme.md | 85 + .../libnpx/node_modules/fs.realpath/LICENSE | 43 + .../libnpx/node_modules/fs.realpath/README.md | 33 + .../libnpx/node_modules/fs.realpath/index.js | 66 + .../libnpx/node_modules/fs.realpath/old.js | 303 ++++ .../node_modules/fs.realpath/package.json | 62 + .../node_modules/get-caller-file/README.md | 4 + .../node_modules/get-caller-file/index.js | 20 + .../node_modules/get-caller-file/package.json | 61 + .../node_modules/get-stream/buffer-stream.js | 51 + .../libnpx/node_modules/get-stream/index.js | 51 + .../libnpx/node_modules/get-stream/license | 21 + .../node_modules/get-stream/package.json | 83 + .../libnpx/node_modules/get-stream/readme.md | 117 ++ node_modules/libnpx/node_modules/glob/LICENSE | 15 + .../libnpx/node_modules/glob/README.md | 368 +++++ .../libnpx/node_modules/glob/changelog.md | 67 + .../libnpx/node_modules/glob/common.js | 240 +++ node_modules/libnpx/node_modules/glob/glob.js | 790 +++++++++ .../libnpx/node_modules/glob/package.json | 79 + node_modules/libnpx/node_modules/glob/sync.js | 486 ++++++ node_modules/libnpx/node_modules/got/index.js | 364 ++++ node_modules/libnpx/node_modules/got/license | 21 + .../libnpx/node_modules/got/package.json | 113 ++ .../libnpx/node_modules/got/readme.md | 335 ++++ .../libnpx/node_modules/graceful-fs/LICENSE | 15 + .../libnpx/node_modules/graceful-fs/README.md | 133 ++ .../libnpx/node_modules/graceful-fs/fs.js | 21 + .../node_modules/graceful-fs/graceful-fs.js | 262 +++ .../graceful-fs/legacy-streams.js | 118 ++ .../node_modules/graceful-fs/package.json | 81 + .../node_modules/graceful-fs/polyfills.js | 330 ++++ .../libnpx/node_modules/has-ansi/index.js | 4 + .../libnpx/node_modules/has-ansi/license | 21 + .../has-ansi/node_modules/ansi-regex/index.js | 4 + .../has-ansi/node_modules/ansi-regex/license | 21 + .../node_modules/ansi-regex/package.json | 111 ++ .../node_modules/ansi-regex/readme.md | 39 + .../libnpx/node_modules/has-ansi/package.json | 98 ++ .../libnpx/node_modules/has-ansi/readme.md | 36 + .../node_modules/hosted-git-info/LICENSE | 13 + .../node_modules/hosted-git-info/README.md | 132 ++ .../hosted-git-info/git-host-info.js | 68 + .../node_modules/hosted-git-info/git-host.js | 114 ++ .../node_modules/hosted-git-info/index.js | 121 ++ .../node_modules/hosted-git-info/package.json | 67 + .../libnpx/node_modules/import-lazy/index.js | 53 + .../libnpx/node_modules/import-lazy/license | 21 + .../node_modules/import-lazy/package.json | 79 + .../libnpx/node_modules/import-lazy/readme.md | 64 + .../libnpx/node_modules/imurmurhash/README.md | 122 ++ .../node_modules/imurmurhash/imurmurhash.js | 138 ++ .../imurmurhash/imurmurhash.min.js | 12 + .../node_modules/imurmurhash/package.json | 66 + .../libnpx/node_modules/inflight/LICENSE | 15 + .../libnpx/node_modules/inflight/README.md | 37 + .../libnpx/node_modules/inflight/inflight.js | 54 + .../libnpx/node_modules/inflight/package.json | 61 + .../libnpx/node_modules/inherits/LICENSE | 16 + .../libnpx/node_modules/inherits/README.md | 42 + .../libnpx/node_modules/inherits/inherits.js | 7 + .../node_modules/inherits/inherits_browser.js | 23 + .../libnpx/node_modules/inherits/package.json | 64 + node_modules/libnpx/node_modules/ini/LICENSE | 15 + .../libnpx/node_modules/ini/README.md | 102 ++ node_modules/libnpx/node_modules/ini/ini.js | 190 +++ .../libnpx/node_modules/ini/package.json | 61 + .../libnpx/node_modules/invert-kv/index.js | 15 + .../node_modules/invert-kv/package.json | 68 + .../libnpx/node_modules/invert-kv/readme.md | 25 + .../node_modules/is-arrayish/.editorconfig | 18 + .../node_modules/is-arrayish/.istanbul.yml | 4 + .../node_modules/is-arrayish/.npmignore | 5 + .../node_modules/is-arrayish/.travis.yml | 17 + .../libnpx/node_modules/is-arrayish/LICENSE | 21 + .../libnpx/node_modules/is-arrayish/README.md | 16 + .../libnpx/node_modules/is-arrayish/index.js | 10 + .../node_modules/is-arrayish/package.json | 69 + .../node_modules/is-builtin-module/index.js | 10 + .../node_modules/is-builtin-module/license | 21 + .../is-builtin-module/package.json | 78 + .../node_modules/is-builtin-module/readme.md | 33 + .../is-fullwidth-code-point/index.js | 46 + .../is-fullwidth-code-point/license | 21 + .../is-fullwidth-code-point/package.json | 80 + .../is-fullwidth-code-point/readme.md | 39 + .../libnpx/node_modules/is-npm/index.js | 4 + .../libnpx/node_modules/is-npm/package.json | 67 + .../libnpx/node_modules/is-npm/readme.md | 30 + .../libnpx/node_modules/is-obj/index.js | 5 + .../libnpx/node_modules/is-obj/license | 21 + .../libnpx/node_modules/is-obj/package.json | 68 + .../libnpx/node_modules/is-obj/readme.md | 34 + .../libnpx/node_modules/is-redirect/index.js | 14 + .../libnpx/node_modules/is-redirect/license | 21 + .../node_modules/is-redirect/package.json | 70 + .../libnpx/node_modules/is-redirect/readme.md | 28 + .../node_modules/is-retry-allowed/index.js | 60 + .../node_modules/is-retry-allowed/license | 21 + .../is-retry-allowed/package.json | 62 + .../node_modules/is-retry-allowed/readme.md | 42 + .../libnpx/node_modules/is-stream/index.js | 21 + .../libnpx/node_modules/is-stream/license | 21 + .../node_modules/is-stream/package.json | 75 + .../libnpx/node_modules/is-stream/readme.md | 42 + .../libnpx/node_modules/isexe/.npmignore | 2 + .../libnpx/node_modules/isexe/LICENSE | 15 + .../libnpx/node_modules/isexe/README.md | 51 + .../libnpx/node_modules/isexe/index.js | 57 + .../libnpx/node_modules/isexe/mode.js | 41 + .../libnpx/node_modules/isexe/package.json | 63 + .../libnpx/node_modules/isexe/test/basic.js | 221 +++ .../libnpx/node_modules/isexe/windows.js | 42 + .../node_modules/latest-version/index.js | 4 + .../node_modules/latest-version/license | 21 + .../node_modules/latest-version/package.json | 74 + .../node_modules/latest-version/readme.md | 40 + .../libnpx/node_modules/lcid/index.js | 22 + .../libnpx/node_modules/lcid/lcid.json | 203 +++ node_modules/libnpx/node_modules/lcid/license | 21 + .../libnpx/node_modules/lcid/package.json | 81 + .../libnpx/node_modules/lcid/readme.md | 35 + .../node_modules/load-json-file/index.js | 11 + .../node_modules/load-json-file/license | 21 + .../node_modules/load-json-file/package.json | 78 + .../node_modules/load-json-file/readme.md | 45 + .../libnpx/node_modules/locate-path/index.js | 24 + .../libnpx/node_modules/locate-path/license | 21 + .../node_modules/locate-path/package.json | 82 + .../libnpx/node_modules/locate-path/readme.md | 99 ++ .../node_modules/lowercase-keys/index.js | 11 + .../node_modules/lowercase-keys/package.json | 70 + .../node_modules/lowercase-keys/readme.md | 33 + .../libnpx/node_modules/lru-cache/LICENSE | 15 + .../libnpx/node_modules/lru-cache/README.md | 152 ++ .../libnpx/node_modules/lru-cache/index.js | 467 ++++++ .../node_modules/lru-cache/package.json | 72 + .../libnpx/node_modules/make-dir/index.js | 83 + .../libnpx/node_modules/make-dir/license | 21 + .../libnpx/node_modules/make-dir/package.json | 89 + .../libnpx/node_modules/make-dir/readme.md | 113 ++ node_modules/libnpx/node_modules/mem/index.js | 55 + node_modules/libnpx/node_modules/mem/license | 21 + .../libnpx/node_modules/mem/package.json | 80 + .../libnpx/node_modules/mem/readme.md | 147 ++ .../libnpx/node_modules/mimic-fn/index.js | 7 + .../libnpx/node_modules/mimic-fn/license | 21 + .../libnpx/node_modules/mimic-fn/package.json | 78 + .../libnpx/node_modules/mimic-fn/readme.md | 66 + .../libnpx/node_modules/minimatch/LICENSE | 15 + .../libnpx/node_modules/minimatch/README.md | 209 +++ .../node_modules/minimatch/minimatch.js | 923 +++++++++++ .../node_modules/minimatch/package.json | 66 + .../libnpx/node_modules/minimist/.travis.yml | 8 + .../libnpx/node_modules/minimist/LICENSE | 18 + .../node_modules/minimist/example/parse.js | 2 + .../libnpx/node_modules/minimist/index.js | 236 +++ .../libnpx/node_modules/minimist/package.json | 76 + .../node_modules/minimist/readme.markdown | 91 + .../node_modules/minimist/test/all_bool.js | 32 + .../libnpx/node_modules/minimist/test/bool.js | 166 ++ .../libnpx/node_modules/minimist/test/dash.js | 31 + .../minimist/test/default_bool.js | 35 + .../node_modules/minimist/test/dotted.js | 22 + .../node_modules/minimist/test/kv_short.js | 16 + .../libnpx/node_modules/minimist/test/long.js | 31 + .../libnpx/node_modules/minimist/test/num.js | 36 + .../node_modules/minimist/test/parse.js | 197 +++ .../minimist/test/parse_modified.js | 9 + .../node_modules/minimist/test/short.js | 67 + .../node_modules/minimist/test/stop_early.js | 15 + .../node_modules/minimist/test/unknown.js | 102 ++ .../node_modules/minimist/test/whitespace.js | 8 + .../normalize-package-data/AUTHORS | 4 + .../normalize-package-data/LICENSE | 30 + .../normalize-package-data/README.md | 106 ++ .../lib/extract_description.js | 14 + .../normalize-package-data/lib/fixer.js | 417 +++++ .../lib/make_warning.js | 23 + .../normalize-package-data/lib/normalize.js | 39 + .../normalize-package-data/lib/safe_format.js | 9 + .../normalize-package-data/lib/typos.json | 25 + .../lib/warning_messages.json | 30 + .../normalize-package-data/package.json | 80 + .../node_modules/npm-package-arg/LICENSE | 15 + .../node_modules/npm-package-arg/README.md | 81 + .../node_modules/npm-package-arg/npa.js | 270 +++ .../node_modules/npm-package-arg/package.json | 67 + .../libnpx/node_modules/npm-run-path/index.js | 23 + .../libnpx/node_modules/npm-run-path/license | 21 + .../node_modules/npm-run-path/package.json | 77 + .../node_modules/npm-run-path/readme.md | 66 + .../node_modules/number-is-nan/index.js | 4 + .../libnpx/node_modules/number-is-nan/license | 21 + .../node_modules/number-is-nan/package.json | 72 + .../node_modules/number-is-nan/readme.md | 28 + .../node_modules/object-assign/index.js | 90 + .../libnpx/node_modules/object-assign/license | 21 + .../node_modules/object-assign/package.json | 78 + .../node_modules/object-assign/readme.md | 61 + node_modules/libnpx/node_modules/once/LICENSE | 15 + .../libnpx/node_modules/once/README.md | 79 + node_modules/libnpx/node_modules/once/once.js | 42 + .../libnpx/node_modules/once/package.json | 70 + .../libnpx/node_modules/os-homedir/index.js | 24 + .../libnpx/node_modules/os-homedir/license | 21 + .../node_modules/os-homedir/package.json | 76 + .../libnpx/node_modules/os-homedir/readme.md | 31 + .../libnpx/node_modules/os-locale/index.js | 101 ++ .../libnpx/node_modules/os-locale/license | 21 + .../os-locale/node_modules/execa/index.js | 275 ++++ .../node_modules/execa/lib/errname.js | 37 + .../os-locale/node_modules/execa/license | 21 + .../os-locale/node_modules/execa/package.json | 114 ++ .../os-locale/node_modules/execa/readme.md | 150 ++ .../node_modules/get-stream/buffer-stream.js | 54 + .../node_modules/get-stream/index.js | 59 + .../os-locale/node_modules/get-stream/license | 21 + .../node_modules/get-stream/package.json | 84 + .../node_modules/get-stream/readme.md | 115 ++ .../node_modules/npm-run-path/index.js | 39 + .../node_modules/npm-run-path/license | 21 + .../node_modules/npm-run-path/package.json | 80 + .../node_modules/npm-run-path/readme.md | 81 + .../os-locale/node_modules/path-key/index.js | 13 + .../os-locale/node_modules/path-key/license | 21 + .../node_modules/path-key/package.json | 74 + .../os-locale/node_modules/path-key/readme.md | 51 + .../node_modules/os-locale/package.json | 91 + .../libnpx/node_modules/os-locale/readme.md | 53 + .../libnpx/node_modules/os-tmpdir/index.js | 25 + .../libnpx/node_modules/os-tmpdir/license | 21 + .../node_modules/os-tmpdir/package.json | 76 + .../libnpx/node_modules/os-tmpdir/readme.md | 32 + .../libnpx/node_modules/osenv/.npmignore | 13 + .../libnpx/node_modules/osenv/.travis.yml | 9 + .../libnpx/node_modules/osenv/LICENSE | 15 + .../libnpx/node_modules/osenv/README.md | 63 + .../libnpx/node_modules/osenv/osenv.js | 72 + .../libnpx/node_modules/osenv/package.json | 70 + .../libnpx/node_modules/osenv/test/unix.js | 71 + .../libnpx/node_modules/osenv/test/windows.js | 74 + node_modules/libnpx/node_modules/osenv/x.tap | 39 + .../libnpx/node_modules/p-finally/index.js | 15 + .../libnpx/node_modules/p-finally/license | 21 + .../node_modules/p-finally/package.json | 77 + .../libnpx/node_modules/p-finally/readme.md | 47 + .../libnpx/node_modules/p-limit/index.js | 40 + .../libnpx/node_modules/p-limit/license | 21 + .../libnpx/node_modules/p-limit/package.json | 84 + .../libnpx/node_modules/p-limit/readme.md | 68 + .../libnpx/node_modules/p-locate/index.js | 31 + .../libnpx/node_modules/p-locate/license | 21 + .../libnpx/node_modules/p-locate/package.json | 89 + .../libnpx/node_modules/p-locate/readme.md | 86 + .../libnpx/node_modules/package-json/index.js | 67 + .../libnpx/node_modules/package-json/license | 21 + .../node_modules/package-json/package.json | 78 + .../node_modules/package-json/readme.md | 91 + .../libnpx/node_modules/parse-json/index.js | 35 + .../libnpx/node_modules/parse-json/license | 21 + .../node_modules/parse-json/package.json | 81 + .../libnpx/node_modules/parse-json/readme.md | 83 + .../node_modules/parse-json/vendor/parse.js | 752 +++++++++ .../node_modules/parse-json/vendor/unicode.js | 71 + .../libnpx/node_modules/path-exists/index.js | 17 + .../libnpx/node_modules/path-exists/license | 21 + .../node_modules/path-exists/package.json | 75 + .../libnpx/node_modules/path-exists/readme.md | 50 + .../node_modules/path-is-absolute/index.js | 20 + .../node_modules/path-is-absolute/license | 21 + .../path-is-absolute/package.json | 78 + .../node_modules/path-is-absolute/readme.md | 59 + .../libnpx/node_modules/path-key/index.js | 15 + .../libnpx/node_modules/path-key/license | 21 + .../libnpx/node_modules/path-key/package.json | 72 + .../libnpx/node_modules/path-key/readme.md | 51 + .../libnpx/node_modules/path-type/index.js | 26 + .../libnpx/node_modules/path-type/license | 21 + .../node_modules/path-type/package.json | 83 + .../libnpx/node_modules/path-type/readme.md | 42 + .../libnpx/node_modules/pify/index.js | 68 + node_modules/libnpx/node_modules/pify/license | 21 + .../libnpx/node_modules/pify/package.json | 85 + .../libnpx/node_modules/pify/readme.md | 119 ++ .../node_modules/pinkie-promise/index.js | 3 + .../node_modules/pinkie-promise/license | 21 + .../node_modules/pinkie-promise/package.json | 70 + .../node_modules/pinkie-promise/readme.md | 28 + .../libnpx/node_modules/pinkie/index.js | 292 ++++ .../libnpx/node_modules/pinkie/license | 21 + .../libnpx/node_modules/pinkie/package.json | 71 + .../libnpx/node_modules/pinkie/readme.md | 83 + .../libnpx/node_modules/prepend-http/index.js | 14 + .../libnpx/node_modules/prepend-http/license | 21 + .../node_modules/prepend-http/package.json | 70 + .../node_modules/prepend-http/readme.md | 31 + .../libnpx/node_modules/pseudomap/LICENSE | 15 + .../libnpx/node_modules/pseudomap/README.md | 60 + .../libnpx/node_modules/pseudomap/map.js | 9 + .../node_modules/pseudomap/package.json | 57 + .../node_modules/pseudomap/pseudomap.js | 113 ++ .../node_modules/pseudomap/test/basic.js | 86 + .../libnpx/node_modules/rc/.npmignore | 3 + .../libnpx/node_modules/rc/LICENSE.APACHE2 | 15 + .../libnpx/node_modules/rc/LICENSE.BSD | 26 + .../libnpx/node_modules/rc/LICENSE.MIT | 24 + node_modules/libnpx/node_modules/rc/README.md | 149 ++ .../libnpx/node_modules/rc/browser.js | 7 + node_modules/libnpx/node_modules/rc/index.js | 60 + .../libnpx/node_modules/rc/lib/utils.js | 104 ++ .../libnpx/node_modules/rc/package.json | 68 + .../libnpx/node_modules/rc/test/ini.js | 16 + .../node_modules/rc/test/nested-env-vars.js | 50 + .../libnpx/node_modules/rc/test/test.js | 59 + .../libnpx/node_modules/read-pkg-up/index.js | 26 + .../libnpx/node_modules/read-pkg-up/license | 21 + .../node_modules/read-pkg-up/package.json | 97 ++ .../libnpx/node_modules/read-pkg-up/readme.md | 80 + .../libnpx/node_modules/read-pkg/index.js | 47 + .../libnpx/node_modules/read-pkg/license | 21 + .../libnpx/node_modules/read-pkg/package.json | 80 + .../libnpx/node_modules/read-pkg/readme.md | 79 + .../registry-auth-token/.npmignore | 6 + .../registry-auth-token/CHANGELOG.md | 94 ++ .../node_modules/registry-auth-token/LICENSE | 21 + .../registry-auth-token/README.md | 65 + .../registry-auth-token/base64.js | 14 + .../node_modules/registry-auth-token/index.js | 116 ++ .../registry-auth-token/package.json | 77 + .../registry-auth-token/registry-url.js | 5 + .../test/auth-token.test.js | 369 +++++ .../test/registry-url.test.js | 64 + .../registry-auth-token/yarn.lock | 1466 +++++++++++++++++ .../libnpx/node_modules/registry-url/index.js | 6 + .../libnpx/node_modules/registry-url/license | 21 + .../node_modules/registry-url/package.json | 75 + .../node_modules/registry-url/readme.md | 50 + .../node_modules/require-directory/.npmignore | 1 + .../require-directory/.travis.yml | 3 + .../node_modules/require-directory/LICENSE | 22 + .../require-directory/README.markdown | 184 +++ .../node_modules/require-directory/index.js | 86 + .../require-directory/package.json | 72 + .../require-main-filename/.npmignore | 3 + .../require-main-filename/.travis.yml | 8 + .../require-main-filename/LICENSE.txt | 14 + .../require-main-filename/README.md | 26 + .../require-main-filename/index.js | 18 + .../require-main-filename/package.json | 61 + .../require-main-filename/test.js | 36 + .../libnpx/node_modules/rimraf/LICENSE | 15 + .../libnpx/node_modules/rimraf/README.md | 101 ++ .../libnpx/node_modules/rimraf/bin.js | 50 + .../libnpx/node_modules/rimraf/package.json | 67 + .../libnpx/node_modules/rimraf/rimraf.js | 363 ++++ .../node_modules/safe-buffer/.travis.yml | 7 + .../libnpx/node_modules/safe-buffer/LICENSE | 21 + .../libnpx/node_modules/safe-buffer/README.md | 584 +++++++ .../libnpx/node_modules/safe-buffer/index.js | 62 + .../node_modules/safe-buffer/package.json | 67 + .../libnpx/node_modules/safe-buffer/test.js | 101 ++ .../libnpx/node_modules/semver-diff/index.js | 27 + .../libnpx/node_modules/semver-diff/license | 21 + .../node_modules/semver-diff/package.json | 69 + .../libnpx/node_modules/semver-diff/readme.md | 52 + .../libnpx/node_modules/semver/LICENSE | 15 + .../libnpx/node_modules/semver/README.md | 350 ++++ .../libnpx/node_modules/semver/bin/semver | 133 ++ .../libnpx/node_modules/semver/package.json | 60 + .../libnpx/node_modules/semver/range.bnf | 16 + .../libnpx/node_modules/semver/semver.js | 1203 ++++++++++++++ .../node_modules/set-blocking/CHANGELOG.md | 26 + .../node_modules/set-blocking/LICENSE.txt | 14 + .../node_modules/set-blocking/README.md | 31 + .../libnpx/node_modules/set-blocking/index.js | 7 + .../node_modules/set-blocking/package.json | 73 + .../node_modules/signal-exit/CHANGELOG.md | 27 + .../node_modules/signal-exit/LICENSE.txt | 16 + .../libnpx/node_modules/signal-exit/README.md | 40 + .../libnpx/node_modules/signal-exit/index.js | 157 ++ .../node_modules/signal-exit/package.json | 69 + .../node_modules/signal-exit/signals.js | 53 + .../libnpx/node_modules/slide/LICENSE | 15 + .../libnpx/node_modules/slide/README.md | 143 ++ .../libnpx/node_modules/slide/index.js | 1 + .../slide/lib/async-map-ordered.js | 65 + .../node_modules/slide/lib/async-map.js | 54 + .../node_modules/slide/lib/bind-actor.js | 16 + .../libnpx/node_modules/slide/lib/chain.js | 20 + .../libnpx/node_modules/slide/lib/slide.js | 3 + .../libnpx/node_modules/slide/package.json | 60 + .../libnpx/node_modules/spdx-correct/LICENSE | 57 + .../node_modules/spdx-correct/README.md | 10 + .../libnpx/node_modules/spdx-correct/index.js | 237 +++ .../node_modules/spdx-correct/package.json | 66 + .../spdx-expression-parse/AUTHORS | 3 + .../spdx-expression-parse/LICENSE | 22 + .../spdx-expression-parse/README.md | 83 + .../spdx-expression-parse/index.js | 5 + .../spdx-expression-parse/package.json | 92 ++ .../spdx-expression-parse/parser.js | 1357 +++++++++++++++ .../node_modules/spdx-license-ids/LICENSE | 24 + .../node_modules/spdx-license-ids/README.md | 55 + .../spdx-license-ids/package.json | 83 + .../spdx-license-ids/spdx-license-ids.json | 334 ++++ .../libnpx/node_modules/string-width/index.js | 35 + .../libnpx/node_modules/string-width/license | 9 + .../node_modules/string-width/package.json | 92 ++ .../node_modules/string-width/readme.md | 42 + .../libnpx/node_modules/strip-ansi/index.js | 4 + .../libnpx/node_modules/strip-ansi/license | 9 + .../node_modules/strip-ansi/package.json | 87 + .../libnpx/node_modules/strip-ansi/readme.md | 39 + .../libnpx/node_modules/strip-bom/index.js | 14 + .../libnpx/node_modules/strip-bom/license | 21 + .../node_modules/strip-bom/package.json | 75 + .../libnpx/node_modules/strip-bom/readme.md | 36 + .../libnpx/node_modules/strip-eof/index.js | 15 + .../libnpx/node_modules/strip-eof/license | 21 + .../node_modules/strip-eof/package.json | 75 + .../libnpx/node_modules/strip-eof/readme.md | 28 + .../node_modules/strip-json-comments/index.js | 70 + .../node_modules/strip-json-comments/license | 21 + .../strip-json-comments/package.json | 77 + .../strip-json-comments/readme.md | 64 + .../node_modules/supports-color/index.js | 50 + .../node_modules/supports-color/license | 21 + .../node_modules/supports-color/package.json | 92 ++ .../node_modules/supports-color/readme.md | 36 + .../libnpx/node_modules/term-size/index.js | 70 + .../libnpx/node_modules/term-size/license | 21 + .../node_modules/term-size/package.json | 81 + .../libnpx/node_modules/term-size/readme.md | 41 + .../node_modules/term-size/vendor/resize | Bin 0 -> 67056 bytes .../term-size/vendor/win-term-size.exe | Bin 0 -> 17408 bytes .../libnpx/node_modules/timed-out/index.js | 55 + .../libnpx/node_modules/timed-out/license | 21 + .../node_modules/timed-out/package.json | 71 + .../libnpx/node_modules/timed-out/readme.md | 42 + .../node_modules/unique-string/index.js | 4 + .../libnpx/node_modules/unique-string/license | 21 + .../node_modules/unique-string/package.json | 79 + .../node_modules/unique-string/readme.md | 32 + .../node_modules/unzip-response/index.js | 36 + .../node_modules/unzip-response/license | 21 + .../node_modules/unzip-response/package.json | 84 + .../node_modules/unzip-response/readme.md | 29 + .../node_modules/update-notifier/check.js | 22 + .../node_modules/update-notifier/index.js | 150 ++ .../node_modules/update-notifier/package.json | 87 + .../node_modules/update-notifier/readme.md | 176 ++ .../node_modules/url-parse-lax/index.js | 14 + .../libnpx/node_modules/url-parse-lax/license | 21 + .../node_modules/url-parse-lax/package.json | 76 + .../node_modules/url-parse-lax/readme.md | 100 ++ .../validate-npm-package-license/LICENSE | 174 ++ .../validate-npm-package-license/README.md | 113 ++ .../validate-npm-package-license/index.js | 84 + .../validate-npm-package-license/package.json | 64 + .../validate-npm-package-name/.npmignore | 1 + .../validate-npm-package-name/.travis.yml | 6 + .../validate-npm-package-name/LICENSE | 6 + .../validate-npm-package-name/README.md | 120 ++ .../validate-npm-package-name/index.js | 105 ++ .../validate-npm-package-name/package.json | 68 + .../validate-npm-package-name/test/index.js | 109 ++ .../node_modules/which-module/CHANGELOG.md | 26 + .../libnpx/node_modules/which-module/LICENSE | 13 + .../node_modules/which-module/README.md | 55 + .../libnpx/node_modules/which-module/index.js | 9 + .../node_modules/which-module/package.json | 71 + .../libnpx/node_modules/which/CHANGELOG.md | 142 ++ .../libnpx/node_modules/which/LICENSE | 15 + .../libnpx/node_modules/which/README.md | 48 + .../libnpx/node_modules/which/bin/which | 52 + .../libnpx/node_modules/which/package.json | 70 + .../libnpx/node_modules/which/which.js | 132 ++ .../libnpx/node_modules/widest-line/index.js | 9 + .../libnpx/node_modules/widest-line/license | 21 + .../node_modules/ansi-regex/index.js | 4 + .../node_modules/ansi-regex/license | 21 + .../node_modules/ansi-regex/package.json | 111 ++ .../node_modules/ansi-regex/readme.md | 39 + .../is-fullwidth-code-point/index.js | 46 + .../is-fullwidth-code-point/license | 21 + .../is-fullwidth-code-point/package.json | 80 + .../is-fullwidth-code-point/readme.md | 39 + .../node_modules/string-width/index.js | 37 + .../node_modules/string-width/license | 21 + .../node_modules/string-width/package.json | 91 + .../node_modules/string-width/readme.md | 42 + .../node_modules/strip-ansi/index.js | 6 + .../node_modules/strip-ansi/license | 21 + .../node_modules/strip-ansi/package.json | 104 ++ .../node_modules/strip-ansi/readme.md | 33 + .../node_modules/widest-line/package.json | 92 ++ .../libnpx/node_modules/widest-line/readme.md | 34 + .../libnpx/node_modules/wrap-ansi/index.js | 168 ++ .../libnpx/node_modules/wrap-ansi/license | 21 + .../node_modules/ansi-regex/index.js | 4 + .../wrap-ansi/node_modules/ansi-regex/license | 21 + .../node_modules/ansi-regex/package.json | 111 ++ .../node_modules/ansi-regex/readme.md | 39 + .../is-fullwidth-code-point/index.js | 46 + .../is-fullwidth-code-point/license | 21 + .../is-fullwidth-code-point/package.json | 80 + .../is-fullwidth-code-point/readme.md | 39 + .../node_modules/string-width/index.js | 37 + .../node_modules/string-width/license | 21 + .../node_modules/string-width/package.json | 91 + .../node_modules/string-width/readme.md | 42 + .../node_modules/strip-ansi/index.js | 6 + .../wrap-ansi/node_modules/strip-ansi/license | 21 + .../node_modules/strip-ansi/package.json | 105 ++ .../node_modules/strip-ansi/readme.md | 33 + .../node_modules/wrap-ansi/package.json | 122 ++ .../libnpx/node_modules/wrap-ansi/readme.md | 73 + .../libnpx/node_modules/wrappy/LICENSE | 15 + .../libnpx/node_modules/wrappy/README.md | 36 + .../libnpx/node_modules/wrappy/package.json | 62 + .../libnpx/node_modules/wrappy/wrappy.js | 33 + .../node_modules/write-file-atomic/LICENSE | 6 + .../node_modules/write-file-atomic/README.md | 47 + .../node_modules/write-file-atomic/index.js | 134 ++ .../write-file-atomic/package.json | 70 + .../libnpx/node_modules/xdg-basedir/index.js | 28 + .../libnpx/node_modules/xdg-basedir/license | 21 + .../node_modules/xdg-basedir/package.json | 76 + .../libnpx/node_modules/xdg-basedir/readme.md | 60 + node_modules/libnpx/node_modules/y18n/LICENSE | 13 + .../libnpx/node_modules/y18n/README.md | 91 + .../libnpx/node_modules/y18n/index.js | 172 ++ .../libnpx/node_modules/y18n/package.json | 69 + .../libnpx/node_modules/yallist/LICENSE | 15 + .../libnpx/node_modules/yallist/README.md | 204 +++ .../libnpx/node_modules/yallist/iterator.js | 7 + .../libnpx/node_modules/yallist/package.json | 65 + .../libnpx/node_modules/yallist/yallist.js | 370 +++++ .../node_modules/yargs-parser/CHANGELOG.md | 223 +++ .../node_modules/yargs-parser/LICENSE.txt | 14 + .../node_modules/yargs-parser/README.md | 281 ++++ .../libnpx/node_modules/yargs-parser/index.js | 764 +++++++++ .../yargs-parser/lib/tokenize-arg-string.js | 34 + .../node_modules/yargs-parser/package.json | 78 + .../libnpx/node_modules/yargs/CHANGELOG.md | 961 +++++++++++ .../libnpx/node_modules/yargs/LICENSE | 22 + .../libnpx/node_modules/yargs/README.md | 103 ++ .../node_modules/yargs/completion.sh.hbs | 28 + .../libnpx/node_modules/yargs/index.js | 31 + .../node_modules/yargs/lib/apply-extends.js | 52 + .../libnpx/node_modules/yargs/lib/argsert.js | 72 + .../libnpx/node_modules/yargs/lib/assign.js | 15 + .../libnpx/node_modules/yargs/lib/command.js | 336 ++++ .../node_modules/yargs/lib/completion.js | 104 ++ .../node_modules/yargs/lib/levenshtein.js | 47 + .../node_modules/yargs/lib/obj-filter.js | 10 + .../libnpx/node_modules/yargs/lib/usage.js | 489 ++++++ .../node_modules/yargs/lib/validation.js | 364 ++++ .../libnpx/node_modules/yargs/lib/yerror.js | 10 + .../libnpx/node_modules/yargs/locales/be.json | 39 + .../libnpx/node_modules/yargs/locales/de.json | 39 + .../libnpx/node_modules/yargs/locales/en.json | 40 + .../libnpx/node_modules/yargs/locales/es.json | 39 + .../libnpx/node_modules/yargs/locales/fr.json | 37 + .../libnpx/node_modules/yargs/locales/hi.json | 39 + .../libnpx/node_modules/yargs/locales/hu.json | 39 + .../libnpx/node_modules/yargs/locales/id.json | 40 + .../libnpx/node_modules/yargs/locales/it.json | 39 + .../libnpx/node_modules/yargs/locales/ja.json | 39 + .../libnpx/node_modules/yargs/locales/ko.json | 39 + .../libnpx/node_modules/yargs/locales/nb.json | 37 + .../libnpx/node_modules/yargs/locales/nl.json | 39 + .../node_modules/yargs/locales/pirate.json | 12 + .../libnpx/node_modules/yargs/locales/pl.json | 39 + .../libnpx/node_modules/yargs/locales/pt.json | 38 + .../node_modules/yargs/locales/pt_BR.json | 40 + .../libnpx/node_modules/yargs/locales/ru.json | 39 + .../libnpx/node_modules/yargs/locales/th.json | 39 + .../libnpx/node_modules/yargs/locales/tr.json | 39 + .../node_modules/yargs/locales/zh_CN.json | 37 + .../node_modules/yargs/locales/zh_TW.json | 40 + .../libnpx/node_modules/yargs/package.json | 105 ++ .../libnpx/node_modules/yargs/yargs.js | 1127 +++++++++++++ node_modules/libnpx/package.json | 116 ++ node_modules/libnpx/parse-args.js | 225 +++ node_modules/libnpx/util.js | 17 + node_modules/libnpx/y.js | 21 + package-lock.json | 939 +++++++++++ package.json | 9 +- 779 files changed, 58510 insertions(+), 3 deletions(-) create mode 100644 bin/npx create mode 100755 bin/npx-cli.js create mode 100644 bin/npx.cmd create mode 100644 node_modules/libnpx/CHANGELOG.md create mode 100644 node_modules/libnpx/LICENSE.md create mode 100644 node_modules/libnpx/README.md create mode 100644 node_modules/libnpx/auto-fallback.js create mode 100644 node_modules/libnpx/child.js create mode 100644 node_modules/libnpx/get-prefix.js create mode 100755 node_modules/libnpx/index.js create mode 100644 node_modules/libnpx/libnpx.1 create mode 100644 node_modules/libnpx/locales/ca.json create mode 100644 node_modules/libnpx/locales/de.json create mode 100644 node_modules/libnpx/locales/en.json create mode 100644 node_modules/libnpx/locales/es.json create mode 100644 node_modules/libnpx/locales/fr.json create mode 100644 node_modules/libnpx/locales/ja.json create mode 100644 node_modules/libnpx/locales/pt_BR.json create mode 100644 node_modules/libnpx/locales/ro.json create mode 100644 node_modules/libnpx/locales/ru.json create mode 100644 node_modules/libnpx/locales/zh_CN.json create mode 120000 node_modules/libnpx/node_modules/.bin/rc create mode 120000 node_modules/libnpx/node_modules/.bin/rimraf create mode 120000 node_modules/libnpx/node_modules/.bin/semver create mode 120000 node_modules/libnpx/node_modules/.bin/which create mode 100644 node_modules/libnpx/node_modules/ansi-align/CHANGELOG.md create mode 100644 node_modules/libnpx/node_modules/ansi-align/LICENSE create mode 100644 node_modules/libnpx/node_modules/ansi-align/README.md create mode 100644 node_modules/libnpx/node_modules/ansi-align/index.js create mode 100644 node_modules/libnpx/node_modules/ansi-align/package.json create mode 100644 node_modules/libnpx/node_modules/ansi-regex/index.js create mode 100644 node_modules/libnpx/node_modules/ansi-regex/license create mode 100644 node_modules/libnpx/node_modules/ansi-regex/package.json create mode 100644 node_modules/libnpx/node_modules/ansi-regex/readme.md create mode 100644 node_modules/libnpx/node_modules/ansi-styles/index.js create mode 100644 node_modules/libnpx/node_modules/ansi-styles/license create mode 100644 node_modules/libnpx/node_modules/ansi-styles/package.json create mode 100644 node_modules/libnpx/node_modules/ansi-styles/readme.md create mode 100644 node_modules/libnpx/node_modules/balanced-match/.npmignore create mode 100644 node_modules/libnpx/node_modules/balanced-match/LICENSE.md create mode 100644 node_modules/libnpx/node_modules/balanced-match/README.md create mode 100644 node_modules/libnpx/node_modules/balanced-match/index.js create mode 100644 node_modules/libnpx/node_modules/balanced-match/package.json create mode 100644 node_modules/libnpx/node_modules/boxen/index.js create mode 100644 node_modules/libnpx/node_modules/boxen/license create mode 100644 node_modules/libnpx/node_modules/boxen/package.json create mode 100644 node_modules/libnpx/node_modules/boxen/readme.md create mode 100644 node_modules/libnpx/node_modules/brace-expansion/README.md create mode 100644 node_modules/libnpx/node_modules/brace-expansion/index.js create mode 100644 node_modules/libnpx/node_modules/brace-expansion/package.json create mode 100644 node_modules/libnpx/node_modules/builtin-modules/builtin-modules.json create mode 100644 node_modules/libnpx/node_modules/builtin-modules/index.js create mode 100644 node_modules/libnpx/node_modules/builtin-modules/license create mode 100644 node_modules/libnpx/node_modules/builtin-modules/package.json create mode 100644 node_modules/libnpx/node_modules/builtin-modules/readme.md create mode 100644 node_modules/libnpx/node_modules/builtin-modules/static.js create mode 100644 node_modules/libnpx/node_modules/builtins/.travis.yml create mode 100644 node_modules/libnpx/node_modules/builtins/History.md create mode 100644 node_modules/libnpx/node_modules/builtins/License create mode 100644 node_modules/libnpx/node_modules/builtins/Readme.md create mode 100644 node_modules/libnpx/node_modules/builtins/builtins.json create mode 100644 node_modules/libnpx/node_modules/builtins/package.json create mode 100644 node_modules/libnpx/node_modules/builtins/test.js create mode 100644 node_modules/libnpx/node_modules/camelcase/index.js create mode 100644 node_modules/libnpx/node_modules/camelcase/license create mode 100644 node_modules/libnpx/node_modules/camelcase/package.json create mode 100644 node_modules/libnpx/node_modules/camelcase/readme.md create mode 100644 node_modules/libnpx/node_modules/capture-stack-trace/index.js create mode 100644 node_modules/libnpx/node_modules/capture-stack-trace/package.json create mode 100644 node_modules/libnpx/node_modules/capture-stack-trace/readme.md create mode 100644 node_modules/libnpx/node_modules/chalk/index.js create mode 100644 node_modules/libnpx/node_modules/chalk/license create mode 100644 node_modules/libnpx/node_modules/chalk/node_modules/ansi-regex/index.js create mode 100644 node_modules/libnpx/node_modules/chalk/node_modules/ansi-regex/license create mode 100644 node_modules/libnpx/node_modules/chalk/node_modules/ansi-regex/package.json create mode 100644 node_modules/libnpx/node_modules/chalk/node_modules/ansi-regex/readme.md create mode 100644 node_modules/libnpx/node_modules/chalk/node_modules/strip-ansi/index.js create mode 100644 node_modules/libnpx/node_modules/chalk/node_modules/strip-ansi/license create mode 100644 node_modules/libnpx/node_modules/chalk/node_modules/strip-ansi/package.json create mode 100644 node_modules/libnpx/node_modules/chalk/node_modules/strip-ansi/readme.md create mode 100644 node_modules/libnpx/node_modules/chalk/package.json create mode 100644 node_modules/libnpx/node_modules/chalk/readme.md create mode 100644 node_modules/libnpx/node_modules/cli-boxes/boxes.json create mode 100644 node_modules/libnpx/node_modules/cli-boxes/index.js create mode 100644 node_modules/libnpx/node_modules/cli-boxes/license create mode 100644 node_modules/libnpx/node_modules/cli-boxes/package.json create mode 100644 node_modules/libnpx/node_modules/cli-boxes/readme.md create mode 100644 node_modules/libnpx/node_modules/cliui/CHANGELOG.md create mode 100644 node_modules/libnpx/node_modules/cliui/LICENSE.txt create mode 100644 node_modules/libnpx/node_modules/cliui/README.md create mode 100644 node_modules/libnpx/node_modules/cliui/index.js create mode 100644 node_modules/libnpx/node_modules/cliui/node_modules/ansi-regex/index.js create mode 100644 node_modules/libnpx/node_modules/cliui/node_modules/ansi-regex/license create mode 100644 node_modules/libnpx/node_modules/cliui/node_modules/ansi-regex/package.json create mode 100644 node_modules/libnpx/node_modules/cliui/node_modules/ansi-regex/readme.md create mode 100644 node_modules/libnpx/node_modules/cliui/node_modules/is-fullwidth-code-point/index.js create mode 100644 node_modules/libnpx/node_modules/cliui/node_modules/is-fullwidth-code-point/license create mode 100644 node_modules/libnpx/node_modules/cliui/node_modules/is-fullwidth-code-point/package.json create mode 100644 node_modules/libnpx/node_modules/cliui/node_modules/is-fullwidth-code-point/readme.md create mode 100644 node_modules/libnpx/node_modules/cliui/node_modules/string-width/index.js create mode 100644 node_modules/libnpx/node_modules/cliui/node_modules/string-width/license create mode 100644 node_modules/libnpx/node_modules/cliui/node_modules/string-width/package.json create mode 100644 node_modules/libnpx/node_modules/cliui/node_modules/string-width/readme.md create mode 100644 node_modules/libnpx/node_modules/cliui/node_modules/strip-ansi/index.js create mode 100644 node_modules/libnpx/node_modules/cliui/node_modules/strip-ansi/license create mode 100644 node_modules/libnpx/node_modules/cliui/node_modules/strip-ansi/package.json create mode 100644 node_modules/libnpx/node_modules/cliui/node_modules/strip-ansi/readme.md create mode 100644 node_modules/libnpx/node_modules/cliui/package.json create mode 100644 node_modules/libnpx/node_modules/code-point-at/index.js create mode 100644 node_modules/libnpx/node_modules/code-point-at/license create mode 100644 node_modules/libnpx/node_modules/code-point-at/package.json create mode 100644 node_modules/libnpx/node_modules/code-point-at/readme.md create mode 100644 node_modules/libnpx/node_modules/concat-map/.travis.yml create mode 100644 node_modules/libnpx/node_modules/concat-map/LICENSE create mode 100644 node_modules/libnpx/node_modules/concat-map/README.markdown create mode 100644 node_modules/libnpx/node_modules/concat-map/example/map.js create mode 100644 node_modules/libnpx/node_modules/concat-map/index.js create mode 100644 node_modules/libnpx/node_modules/concat-map/package.json create mode 100644 node_modules/libnpx/node_modules/concat-map/test/map.js create mode 100644 node_modules/libnpx/node_modules/configstore/index.js create mode 100644 node_modules/libnpx/node_modules/configstore/package.json create mode 100644 node_modules/libnpx/node_modules/configstore/readme.md create mode 100644 node_modules/libnpx/node_modules/create-error-class/index.js create mode 100644 node_modules/libnpx/node_modules/create-error-class/license create mode 100644 node_modules/libnpx/node_modules/create-error-class/package.json create mode 100644 node_modules/libnpx/node_modules/create-error-class/readme.md create mode 100644 node_modules/libnpx/node_modules/cross-spawn-async/.editorconfig create mode 100644 node_modules/libnpx/node_modules/cross-spawn-async/.npmignore create mode 100644 node_modules/libnpx/node_modules/cross-spawn-async/.travis.yml create mode 100644 node_modules/libnpx/node_modules/cross-spawn-async/LICENSE create mode 100644 node_modules/libnpx/node_modules/cross-spawn-async/README.md create mode 100644 node_modules/libnpx/node_modules/cross-spawn-async/appveyor.yml create mode 100644 node_modules/libnpx/node_modules/cross-spawn-async/index.js create mode 100644 node_modules/libnpx/node_modules/cross-spawn-async/lib/enoent.js create mode 100644 node_modules/libnpx/node_modules/cross-spawn-async/lib/parse.js create mode 100644 node_modules/libnpx/node_modules/cross-spawn-async/lib/resolveCommand.js create mode 100644 node_modules/libnpx/node_modules/cross-spawn-async/package.json create mode 100644 node_modules/libnpx/node_modules/cross-spawn/LICENSE create mode 100644 node_modules/libnpx/node_modules/cross-spawn/README.md create mode 100644 node_modules/libnpx/node_modules/cross-spawn/index.js create mode 100644 node_modules/libnpx/node_modules/cross-spawn/lib/enoent.js create mode 100644 node_modules/libnpx/node_modules/cross-spawn/lib/hasBrokenSpawn.js create mode 100644 node_modules/libnpx/node_modules/cross-spawn/lib/parse.js create mode 100644 node_modules/libnpx/node_modules/cross-spawn/lib/resolveCommand.js create mode 100644 node_modules/libnpx/node_modules/cross-spawn/package.json create mode 100644 node_modules/libnpx/node_modules/crypto-random-string/index.js create mode 100644 node_modules/libnpx/node_modules/crypto-random-string/license create mode 100644 node_modules/libnpx/node_modules/crypto-random-string/package.json create mode 100644 node_modules/libnpx/node_modules/crypto-random-string/readme.md create mode 100644 node_modules/libnpx/node_modules/decamelize/index.js create mode 100644 node_modules/libnpx/node_modules/decamelize/license create mode 100644 node_modules/libnpx/node_modules/decamelize/package.json create mode 100644 node_modules/libnpx/node_modules/decamelize/readme.md create mode 100644 node_modules/libnpx/node_modules/deep-extend/CHANGELOG.md create mode 100644 node_modules/libnpx/node_modules/deep-extend/LICENSE create mode 100644 node_modules/libnpx/node_modules/deep-extend/README.md create mode 100644 node_modules/libnpx/node_modules/deep-extend/index.js create mode 100644 node_modules/libnpx/node_modules/deep-extend/lib/deep-extend.js create mode 100644 node_modules/libnpx/node_modules/deep-extend/package.json create mode 100644 node_modules/libnpx/node_modules/dot-prop/index.js create mode 100644 node_modules/libnpx/node_modules/dot-prop/license create mode 100644 node_modules/libnpx/node_modules/dot-prop/package.json create mode 100644 node_modules/libnpx/node_modules/dot-prop/readme.md create mode 100644 node_modules/libnpx/node_modules/dotenv/CHANGELOG.md create mode 100644 node_modules/libnpx/node_modules/dotenv/LICENSE create mode 100644 node_modules/libnpx/node_modules/dotenv/README.md create mode 100644 node_modules/libnpx/node_modules/dotenv/config.js create mode 100644 node_modules/libnpx/node_modules/dotenv/lib/main.js create mode 100644 node_modules/libnpx/node_modules/dotenv/package.json create mode 100644 node_modules/libnpx/node_modules/duplexer3/LICENSE.md create mode 100644 node_modules/libnpx/node_modules/duplexer3/README.md create mode 100644 node_modules/libnpx/node_modules/duplexer3/index.js create mode 100644 node_modules/libnpx/node_modules/duplexer3/package.json create mode 100644 node_modules/libnpx/node_modules/error-ex/LICENSE create mode 100644 node_modules/libnpx/node_modules/error-ex/README.md create mode 100644 node_modules/libnpx/node_modules/error-ex/index.js create mode 100644 node_modules/libnpx/node_modules/error-ex/package.json create mode 100644 node_modules/libnpx/node_modules/escape-string-regexp/index.js create mode 100644 node_modules/libnpx/node_modules/escape-string-regexp/license create mode 100644 node_modules/libnpx/node_modules/escape-string-regexp/package.json create mode 100644 node_modules/libnpx/node_modules/escape-string-regexp/readme.md create mode 100644 node_modules/libnpx/node_modules/execa/index.js create mode 100644 node_modules/libnpx/node_modules/execa/license create mode 100644 node_modules/libnpx/node_modules/execa/package.json create mode 100644 node_modules/libnpx/node_modules/execa/readme.md create mode 100644 node_modules/libnpx/node_modules/find-up/index.js create mode 100644 node_modules/libnpx/node_modules/find-up/license create mode 100644 node_modules/libnpx/node_modules/find-up/package.json create mode 100644 node_modules/libnpx/node_modules/find-up/readme.md create mode 100644 node_modules/libnpx/node_modules/fs.realpath/LICENSE create mode 100644 node_modules/libnpx/node_modules/fs.realpath/README.md create mode 100644 node_modules/libnpx/node_modules/fs.realpath/index.js create mode 100644 node_modules/libnpx/node_modules/fs.realpath/old.js create mode 100644 node_modules/libnpx/node_modules/fs.realpath/package.json create mode 100644 node_modules/libnpx/node_modules/get-caller-file/README.md create mode 100644 node_modules/libnpx/node_modules/get-caller-file/index.js create mode 100644 node_modules/libnpx/node_modules/get-caller-file/package.json create mode 100644 node_modules/libnpx/node_modules/get-stream/buffer-stream.js create mode 100644 node_modules/libnpx/node_modules/get-stream/index.js create mode 100644 node_modules/libnpx/node_modules/get-stream/license create mode 100644 node_modules/libnpx/node_modules/get-stream/package.json create mode 100644 node_modules/libnpx/node_modules/get-stream/readme.md create mode 100644 node_modules/libnpx/node_modules/glob/LICENSE create mode 100644 node_modules/libnpx/node_modules/glob/README.md create mode 100644 node_modules/libnpx/node_modules/glob/changelog.md create mode 100644 node_modules/libnpx/node_modules/glob/common.js create mode 100644 node_modules/libnpx/node_modules/glob/glob.js create mode 100644 node_modules/libnpx/node_modules/glob/package.json create mode 100644 node_modules/libnpx/node_modules/glob/sync.js create mode 100644 node_modules/libnpx/node_modules/got/index.js create mode 100644 node_modules/libnpx/node_modules/got/license create mode 100644 node_modules/libnpx/node_modules/got/package.json create mode 100644 node_modules/libnpx/node_modules/got/readme.md create mode 100644 node_modules/libnpx/node_modules/graceful-fs/LICENSE create mode 100644 node_modules/libnpx/node_modules/graceful-fs/README.md create mode 100644 node_modules/libnpx/node_modules/graceful-fs/fs.js create mode 100644 node_modules/libnpx/node_modules/graceful-fs/graceful-fs.js create mode 100644 node_modules/libnpx/node_modules/graceful-fs/legacy-streams.js create mode 100644 node_modules/libnpx/node_modules/graceful-fs/package.json create mode 100644 node_modules/libnpx/node_modules/graceful-fs/polyfills.js create mode 100644 node_modules/libnpx/node_modules/has-ansi/index.js create mode 100644 node_modules/libnpx/node_modules/has-ansi/license create mode 100644 node_modules/libnpx/node_modules/has-ansi/node_modules/ansi-regex/index.js create mode 100644 node_modules/libnpx/node_modules/has-ansi/node_modules/ansi-regex/license create mode 100644 node_modules/libnpx/node_modules/has-ansi/node_modules/ansi-regex/package.json create mode 100644 node_modules/libnpx/node_modules/has-ansi/node_modules/ansi-regex/readme.md create mode 100644 node_modules/libnpx/node_modules/has-ansi/package.json create mode 100644 node_modules/libnpx/node_modules/has-ansi/readme.md create mode 100644 node_modules/libnpx/node_modules/hosted-git-info/LICENSE create mode 100644 node_modules/libnpx/node_modules/hosted-git-info/README.md create mode 100644 node_modules/libnpx/node_modules/hosted-git-info/git-host-info.js create mode 100644 node_modules/libnpx/node_modules/hosted-git-info/git-host.js create mode 100644 node_modules/libnpx/node_modules/hosted-git-info/index.js create mode 100644 node_modules/libnpx/node_modules/hosted-git-info/package.json create mode 100644 node_modules/libnpx/node_modules/import-lazy/index.js create mode 100644 node_modules/libnpx/node_modules/import-lazy/license create mode 100644 node_modules/libnpx/node_modules/import-lazy/package.json create mode 100644 node_modules/libnpx/node_modules/import-lazy/readme.md create mode 100644 node_modules/libnpx/node_modules/imurmurhash/README.md create mode 100644 node_modules/libnpx/node_modules/imurmurhash/imurmurhash.js create mode 100644 node_modules/libnpx/node_modules/imurmurhash/imurmurhash.min.js create mode 100644 node_modules/libnpx/node_modules/imurmurhash/package.json create mode 100644 node_modules/libnpx/node_modules/inflight/LICENSE create mode 100644 node_modules/libnpx/node_modules/inflight/README.md create mode 100644 node_modules/libnpx/node_modules/inflight/inflight.js create mode 100644 node_modules/libnpx/node_modules/inflight/package.json create mode 100644 node_modules/libnpx/node_modules/inherits/LICENSE create mode 100644 node_modules/libnpx/node_modules/inherits/README.md create mode 100644 node_modules/libnpx/node_modules/inherits/inherits.js create mode 100644 node_modules/libnpx/node_modules/inherits/inherits_browser.js create mode 100644 node_modules/libnpx/node_modules/inherits/package.json create mode 100644 node_modules/libnpx/node_modules/ini/LICENSE create mode 100644 node_modules/libnpx/node_modules/ini/README.md create mode 100644 node_modules/libnpx/node_modules/ini/ini.js create mode 100644 node_modules/libnpx/node_modules/ini/package.json create mode 100644 node_modules/libnpx/node_modules/invert-kv/index.js create mode 100644 node_modules/libnpx/node_modules/invert-kv/package.json create mode 100644 node_modules/libnpx/node_modules/invert-kv/readme.md create mode 100644 node_modules/libnpx/node_modules/is-arrayish/.editorconfig create mode 100644 node_modules/libnpx/node_modules/is-arrayish/.istanbul.yml create mode 100644 node_modules/libnpx/node_modules/is-arrayish/.npmignore create mode 100644 node_modules/libnpx/node_modules/is-arrayish/.travis.yml create mode 100644 node_modules/libnpx/node_modules/is-arrayish/LICENSE create mode 100644 node_modules/libnpx/node_modules/is-arrayish/README.md create mode 100644 node_modules/libnpx/node_modules/is-arrayish/index.js create mode 100644 node_modules/libnpx/node_modules/is-arrayish/package.json create mode 100644 node_modules/libnpx/node_modules/is-builtin-module/index.js create mode 100644 node_modules/libnpx/node_modules/is-builtin-module/license create mode 100644 node_modules/libnpx/node_modules/is-builtin-module/package.json create mode 100644 node_modules/libnpx/node_modules/is-builtin-module/readme.md create mode 100644 node_modules/libnpx/node_modules/is-fullwidth-code-point/index.js create mode 100644 node_modules/libnpx/node_modules/is-fullwidth-code-point/license create mode 100644 node_modules/libnpx/node_modules/is-fullwidth-code-point/package.json create mode 100644 node_modules/libnpx/node_modules/is-fullwidth-code-point/readme.md create mode 100644 node_modules/libnpx/node_modules/is-npm/index.js create mode 100644 node_modules/libnpx/node_modules/is-npm/package.json create mode 100644 node_modules/libnpx/node_modules/is-npm/readme.md create mode 100644 node_modules/libnpx/node_modules/is-obj/index.js create mode 100644 node_modules/libnpx/node_modules/is-obj/license create mode 100644 node_modules/libnpx/node_modules/is-obj/package.json create mode 100644 node_modules/libnpx/node_modules/is-obj/readme.md create mode 100644 node_modules/libnpx/node_modules/is-redirect/index.js create mode 100644 node_modules/libnpx/node_modules/is-redirect/license create mode 100644 node_modules/libnpx/node_modules/is-redirect/package.json create mode 100644 node_modules/libnpx/node_modules/is-redirect/readme.md create mode 100644 node_modules/libnpx/node_modules/is-retry-allowed/index.js create mode 100644 node_modules/libnpx/node_modules/is-retry-allowed/license create mode 100644 node_modules/libnpx/node_modules/is-retry-allowed/package.json create mode 100644 node_modules/libnpx/node_modules/is-retry-allowed/readme.md create mode 100644 node_modules/libnpx/node_modules/is-stream/index.js create mode 100644 node_modules/libnpx/node_modules/is-stream/license create mode 100644 node_modules/libnpx/node_modules/is-stream/package.json create mode 100644 node_modules/libnpx/node_modules/is-stream/readme.md create mode 100644 node_modules/libnpx/node_modules/isexe/.npmignore create mode 100644 node_modules/libnpx/node_modules/isexe/LICENSE create mode 100644 node_modules/libnpx/node_modules/isexe/README.md create mode 100644 node_modules/libnpx/node_modules/isexe/index.js create mode 100644 node_modules/libnpx/node_modules/isexe/mode.js create mode 100644 node_modules/libnpx/node_modules/isexe/package.json create mode 100644 node_modules/libnpx/node_modules/isexe/test/basic.js create mode 100644 node_modules/libnpx/node_modules/isexe/windows.js create mode 100644 node_modules/libnpx/node_modules/latest-version/index.js create mode 100644 node_modules/libnpx/node_modules/latest-version/license create mode 100644 node_modules/libnpx/node_modules/latest-version/package.json create mode 100644 node_modules/libnpx/node_modules/latest-version/readme.md create mode 100644 node_modules/libnpx/node_modules/lcid/index.js create mode 100644 node_modules/libnpx/node_modules/lcid/lcid.json create mode 100644 node_modules/libnpx/node_modules/lcid/license create mode 100644 node_modules/libnpx/node_modules/lcid/package.json create mode 100644 node_modules/libnpx/node_modules/lcid/readme.md create mode 100644 node_modules/libnpx/node_modules/load-json-file/index.js create mode 100644 node_modules/libnpx/node_modules/load-json-file/license create mode 100644 node_modules/libnpx/node_modules/load-json-file/package.json create mode 100644 node_modules/libnpx/node_modules/load-json-file/readme.md create mode 100644 node_modules/libnpx/node_modules/locate-path/index.js create mode 100644 node_modules/libnpx/node_modules/locate-path/license create mode 100644 node_modules/libnpx/node_modules/locate-path/package.json create mode 100644 node_modules/libnpx/node_modules/locate-path/readme.md create mode 100644 node_modules/libnpx/node_modules/lowercase-keys/index.js create mode 100644 node_modules/libnpx/node_modules/lowercase-keys/package.json create mode 100644 node_modules/libnpx/node_modules/lowercase-keys/readme.md create mode 100644 node_modules/libnpx/node_modules/lru-cache/LICENSE create mode 100644 node_modules/libnpx/node_modules/lru-cache/README.md create mode 100644 node_modules/libnpx/node_modules/lru-cache/index.js create mode 100644 node_modules/libnpx/node_modules/lru-cache/package.json create mode 100644 node_modules/libnpx/node_modules/make-dir/index.js create mode 100644 node_modules/libnpx/node_modules/make-dir/license create mode 100644 node_modules/libnpx/node_modules/make-dir/package.json create mode 100644 node_modules/libnpx/node_modules/make-dir/readme.md create mode 100644 node_modules/libnpx/node_modules/mem/index.js create mode 100644 node_modules/libnpx/node_modules/mem/license create mode 100644 node_modules/libnpx/node_modules/mem/package.json create mode 100644 node_modules/libnpx/node_modules/mem/readme.md create mode 100644 node_modules/libnpx/node_modules/mimic-fn/index.js create mode 100644 node_modules/libnpx/node_modules/mimic-fn/license create mode 100644 node_modules/libnpx/node_modules/mimic-fn/package.json create mode 100644 node_modules/libnpx/node_modules/mimic-fn/readme.md create mode 100644 node_modules/libnpx/node_modules/minimatch/LICENSE create mode 100644 node_modules/libnpx/node_modules/minimatch/README.md create mode 100644 node_modules/libnpx/node_modules/minimatch/minimatch.js create mode 100644 node_modules/libnpx/node_modules/minimatch/package.json create mode 100644 node_modules/libnpx/node_modules/minimist/.travis.yml create mode 100644 node_modules/libnpx/node_modules/minimist/LICENSE create mode 100644 node_modules/libnpx/node_modules/minimist/example/parse.js create mode 100644 node_modules/libnpx/node_modules/minimist/index.js create mode 100644 node_modules/libnpx/node_modules/minimist/package.json create mode 100644 node_modules/libnpx/node_modules/minimist/readme.markdown create mode 100644 node_modules/libnpx/node_modules/minimist/test/all_bool.js create mode 100644 node_modules/libnpx/node_modules/minimist/test/bool.js create mode 100644 node_modules/libnpx/node_modules/minimist/test/dash.js create mode 100644 node_modules/libnpx/node_modules/minimist/test/default_bool.js create mode 100644 node_modules/libnpx/node_modules/minimist/test/dotted.js create mode 100644 node_modules/libnpx/node_modules/minimist/test/kv_short.js create mode 100644 node_modules/libnpx/node_modules/minimist/test/long.js create mode 100644 node_modules/libnpx/node_modules/minimist/test/num.js create mode 100644 node_modules/libnpx/node_modules/minimist/test/parse.js create mode 100644 node_modules/libnpx/node_modules/minimist/test/parse_modified.js create mode 100644 node_modules/libnpx/node_modules/minimist/test/short.js create mode 100644 node_modules/libnpx/node_modules/minimist/test/stop_early.js create mode 100644 node_modules/libnpx/node_modules/minimist/test/unknown.js create mode 100644 node_modules/libnpx/node_modules/minimist/test/whitespace.js create mode 100644 node_modules/libnpx/node_modules/normalize-package-data/AUTHORS create mode 100644 node_modules/libnpx/node_modules/normalize-package-data/LICENSE create mode 100644 node_modules/libnpx/node_modules/normalize-package-data/README.md create mode 100644 node_modules/libnpx/node_modules/normalize-package-data/lib/extract_description.js create mode 100644 node_modules/libnpx/node_modules/normalize-package-data/lib/fixer.js create mode 100644 node_modules/libnpx/node_modules/normalize-package-data/lib/make_warning.js create mode 100644 node_modules/libnpx/node_modules/normalize-package-data/lib/normalize.js create mode 100644 node_modules/libnpx/node_modules/normalize-package-data/lib/safe_format.js create mode 100644 node_modules/libnpx/node_modules/normalize-package-data/lib/typos.json create mode 100644 node_modules/libnpx/node_modules/normalize-package-data/lib/warning_messages.json create mode 100644 node_modules/libnpx/node_modules/normalize-package-data/package.json create mode 100644 node_modules/libnpx/node_modules/npm-package-arg/LICENSE create mode 100644 node_modules/libnpx/node_modules/npm-package-arg/README.md create mode 100644 node_modules/libnpx/node_modules/npm-package-arg/npa.js create mode 100644 node_modules/libnpx/node_modules/npm-package-arg/package.json create mode 100644 node_modules/libnpx/node_modules/npm-run-path/index.js create mode 100644 node_modules/libnpx/node_modules/npm-run-path/license create mode 100644 node_modules/libnpx/node_modules/npm-run-path/package.json create mode 100644 node_modules/libnpx/node_modules/npm-run-path/readme.md create mode 100644 node_modules/libnpx/node_modules/number-is-nan/index.js create mode 100644 node_modules/libnpx/node_modules/number-is-nan/license create mode 100644 node_modules/libnpx/node_modules/number-is-nan/package.json create mode 100644 node_modules/libnpx/node_modules/number-is-nan/readme.md create mode 100644 node_modules/libnpx/node_modules/object-assign/index.js create mode 100644 node_modules/libnpx/node_modules/object-assign/license create mode 100644 node_modules/libnpx/node_modules/object-assign/package.json create mode 100644 node_modules/libnpx/node_modules/object-assign/readme.md create mode 100644 node_modules/libnpx/node_modules/once/LICENSE create mode 100644 node_modules/libnpx/node_modules/once/README.md create mode 100644 node_modules/libnpx/node_modules/once/once.js create mode 100644 node_modules/libnpx/node_modules/once/package.json create mode 100644 node_modules/libnpx/node_modules/os-homedir/index.js create mode 100644 node_modules/libnpx/node_modules/os-homedir/license create mode 100644 node_modules/libnpx/node_modules/os-homedir/package.json create mode 100644 node_modules/libnpx/node_modules/os-homedir/readme.md create mode 100644 node_modules/libnpx/node_modules/os-locale/index.js create mode 100644 node_modules/libnpx/node_modules/os-locale/license create mode 100644 node_modules/libnpx/node_modules/os-locale/node_modules/execa/index.js create mode 100644 node_modules/libnpx/node_modules/os-locale/node_modules/execa/lib/errname.js create mode 100644 node_modules/libnpx/node_modules/os-locale/node_modules/execa/license create mode 100644 node_modules/libnpx/node_modules/os-locale/node_modules/execa/package.json create mode 100644 node_modules/libnpx/node_modules/os-locale/node_modules/execa/readme.md create mode 100644 node_modules/libnpx/node_modules/os-locale/node_modules/get-stream/buffer-stream.js create mode 100644 node_modules/libnpx/node_modules/os-locale/node_modules/get-stream/index.js create mode 100644 node_modules/libnpx/node_modules/os-locale/node_modules/get-stream/license create mode 100644 node_modules/libnpx/node_modules/os-locale/node_modules/get-stream/package.json create mode 100644 node_modules/libnpx/node_modules/os-locale/node_modules/get-stream/readme.md create mode 100644 node_modules/libnpx/node_modules/os-locale/node_modules/npm-run-path/index.js create mode 100644 node_modules/libnpx/node_modules/os-locale/node_modules/npm-run-path/license create mode 100644 node_modules/libnpx/node_modules/os-locale/node_modules/npm-run-path/package.json create mode 100644 node_modules/libnpx/node_modules/os-locale/node_modules/npm-run-path/readme.md create mode 100644 node_modules/libnpx/node_modules/os-locale/node_modules/path-key/index.js create mode 100644 node_modules/libnpx/node_modules/os-locale/node_modules/path-key/license create mode 100644 node_modules/libnpx/node_modules/os-locale/node_modules/path-key/package.json create mode 100644 node_modules/libnpx/node_modules/os-locale/node_modules/path-key/readme.md create mode 100644 node_modules/libnpx/node_modules/os-locale/package.json create mode 100644 node_modules/libnpx/node_modules/os-locale/readme.md create mode 100644 node_modules/libnpx/node_modules/os-tmpdir/index.js create mode 100644 node_modules/libnpx/node_modules/os-tmpdir/license create mode 100644 node_modules/libnpx/node_modules/os-tmpdir/package.json create mode 100644 node_modules/libnpx/node_modules/os-tmpdir/readme.md create mode 100644 node_modules/libnpx/node_modules/osenv/.npmignore create mode 100644 node_modules/libnpx/node_modules/osenv/.travis.yml create mode 100644 node_modules/libnpx/node_modules/osenv/LICENSE create mode 100644 node_modules/libnpx/node_modules/osenv/README.md create mode 100644 node_modules/libnpx/node_modules/osenv/osenv.js create mode 100644 node_modules/libnpx/node_modules/osenv/package.json create mode 100644 node_modules/libnpx/node_modules/osenv/test/unix.js create mode 100644 node_modules/libnpx/node_modules/osenv/test/windows.js create mode 100644 node_modules/libnpx/node_modules/osenv/x.tap create mode 100644 node_modules/libnpx/node_modules/p-finally/index.js create mode 100644 node_modules/libnpx/node_modules/p-finally/license create mode 100644 node_modules/libnpx/node_modules/p-finally/package.json create mode 100644 node_modules/libnpx/node_modules/p-finally/readme.md create mode 100644 node_modules/libnpx/node_modules/p-limit/index.js create mode 100644 node_modules/libnpx/node_modules/p-limit/license create mode 100644 node_modules/libnpx/node_modules/p-limit/package.json create mode 100644 node_modules/libnpx/node_modules/p-limit/readme.md create mode 100644 node_modules/libnpx/node_modules/p-locate/index.js create mode 100644 node_modules/libnpx/node_modules/p-locate/license create mode 100644 node_modules/libnpx/node_modules/p-locate/package.json create mode 100644 node_modules/libnpx/node_modules/p-locate/readme.md create mode 100644 node_modules/libnpx/node_modules/package-json/index.js create mode 100644 node_modules/libnpx/node_modules/package-json/license create mode 100644 node_modules/libnpx/node_modules/package-json/package.json create mode 100644 node_modules/libnpx/node_modules/package-json/readme.md create mode 100644 node_modules/libnpx/node_modules/parse-json/index.js create mode 100644 node_modules/libnpx/node_modules/parse-json/license create mode 100644 node_modules/libnpx/node_modules/parse-json/package.json create mode 100644 node_modules/libnpx/node_modules/parse-json/readme.md create mode 100644 node_modules/libnpx/node_modules/parse-json/vendor/parse.js create mode 100644 node_modules/libnpx/node_modules/parse-json/vendor/unicode.js create mode 100644 node_modules/libnpx/node_modules/path-exists/index.js create mode 100644 node_modules/libnpx/node_modules/path-exists/license create mode 100644 node_modules/libnpx/node_modules/path-exists/package.json create mode 100644 node_modules/libnpx/node_modules/path-exists/readme.md create mode 100644 node_modules/libnpx/node_modules/path-is-absolute/index.js create mode 100644 node_modules/libnpx/node_modules/path-is-absolute/license create mode 100644 node_modules/libnpx/node_modules/path-is-absolute/package.json create mode 100644 node_modules/libnpx/node_modules/path-is-absolute/readme.md create mode 100644 node_modules/libnpx/node_modules/path-key/index.js create mode 100644 node_modules/libnpx/node_modules/path-key/license create mode 100644 node_modules/libnpx/node_modules/path-key/package.json create mode 100644 node_modules/libnpx/node_modules/path-key/readme.md create mode 100644 node_modules/libnpx/node_modules/path-type/index.js create mode 100644 node_modules/libnpx/node_modules/path-type/license create mode 100644 node_modules/libnpx/node_modules/path-type/package.json create mode 100644 node_modules/libnpx/node_modules/path-type/readme.md create mode 100644 node_modules/libnpx/node_modules/pify/index.js create mode 100644 node_modules/libnpx/node_modules/pify/license create mode 100644 node_modules/libnpx/node_modules/pify/package.json create mode 100644 node_modules/libnpx/node_modules/pify/readme.md create mode 100644 node_modules/libnpx/node_modules/pinkie-promise/index.js create mode 100644 node_modules/libnpx/node_modules/pinkie-promise/license create mode 100644 node_modules/libnpx/node_modules/pinkie-promise/package.json create mode 100644 node_modules/libnpx/node_modules/pinkie-promise/readme.md create mode 100644 node_modules/libnpx/node_modules/pinkie/index.js create mode 100644 node_modules/libnpx/node_modules/pinkie/license create mode 100644 node_modules/libnpx/node_modules/pinkie/package.json create mode 100644 node_modules/libnpx/node_modules/pinkie/readme.md create mode 100644 node_modules/libnpx/node_modules/prepend-http/index.js create mode 100644 node_modules/libnpx/node_modules/prepend-http/license create mode 100644 node_modules/libnpx/node_modules/prepend-http/package.json create mode 100644 node_modules/libnpx/node_modules/prepend-http/readme.md create mode 100644 node_modules/libnpx/node_modules/pseudomap/LICENSE create mode 100644 node_modules/libnpx/node_modules/pseudomap/README.md create mode 100644 node_modules/libnpx/node_modules/pseudomap/map.js create mode 100644 node_modules/libnpx/node_modules/pseudomap/package.json create mode 100644 node_modules/libnpx/node_modules/pseudomap/pseudomap.js create mode 100644 node_modules/libnpx/node_modules/pseudomap/test/basic.js create mode 100644 node_modules/libnpx/node_modules/rc/.npmignore create mode 100644 node_modules/libnpx/node_modules/rc/LICENSE.APACHE2 create mode 100644 node_modules/libnpx/node_modules/rc/LICENSE.BSD create mode 100644 node_modules/libnpx/node_modules/rc/LICENSE.MIT create mode 100644 node_modules/libnpx/node_modules/rc/README.md create mode 100644 node_modules/libnpx/node_modules/rc/browser.js create mode 100755 node_modules/libnpx/node_modules/rc/index.js create mode 100644 node_modules/libnpx/node_modules/rc/lib/utils.js create mode 100644 node_modules/libnpx/node_modules/rc/package.json create mode 100644 node_modules/libnpx/node_modules/rc/test/ini.js create mode 100644 node_modules/libnpx/node_modules/rc/test/nested-env-vars.js create mode 100644 node_modules/libnpx/node_modules/rc/test/test.js create mode 100644 node_modules/libnpx/node_modules/read-pkg-up/index.js create mode 100644 node_modules/libnpx/node_modules/read-pkg-up/license create mode 100644 node_modules/libnpx/node_modules/read-pkg-up/package.json create mode 100644 node_modules/libnpx/node_modules/read-pkg-up/readme.md create mode 100644 node_modules/libnpx/node_modules/read-pkg/index.js create mode 100644 node_modules/libnpx/node_modules/read-pkg/license create mode 100644 node_modules/libnpx/node_modules/read-pkg/package.json create mode 100644 node_modules/libnpx/node_modules/read-pkg/readme.md create mode 100644 node_modules/libnpx/node_modules/registry-auth-token/.npmignore create mode 100644 node_modules/libnpx/node_modules/registry-auth-token/CHANGELOG.md create mode 100644 node_modules/libnpx/node_modules/registry-auth-token/LICENSE create mode 100644 node_modules/libnpx/node_modules/registry-auth-token/README.md create mode 100644 node_modules/libnpx/node_modules/registry-auth-token/base64.js create mode 100644 node_modules/libnpx/node_modules/registry-auth-token/index.js create mode 100644 node_modules/libnpx/node_modules/registry-auth-token/package.json create mode 100644 node_modules/libnpx/node_modules/registry-auth-token/registry-url.js create mode 100644 node_modules/libnpx/node_modules/registry-auth-token/test/auth-token.test.js create mode 100644 node_modules/libnpx/node_modules/registry-auth-token/test/registry-url.test.js create mode 100644 node_modules/libnpx/node_modules/registry-auth-token/yarn.lock create mode 100644 node_modules/libnpx/node_modules/registry-url/index.js create mode 100644 node_modules/libnpx/node_modules/registry-url/license create mode 100644 node_modules/libnpx/node_modules/registry-url/package.json create mode 100644 node_modules/libnpx/node_modules/registry-url/readme.md create mode 100644 node_modules/libnpx/node_modules/require-directory/.npmignore create mode 100644 node_modules/libnpx/node_modules/require-directory/.travis.yml create mode 100644 node_modules/libnpx/node_modules/require-directory/LICENSE create mode 100644 node_modules/libnpx/node_modules/require-directory/README.markdown create mode 100644 node_modules/libnpx/node_modules/require-directory/index.js create mode 100644 node_modules/libnpx/node_modules/require-directory/package.json create mode 100644 node_modules/libnpx/node_modules/require-main-filename/.npmignore create mode 100644 node_modules/libnpx/node_modules/require-main-filename/.travis.yml create mode 100644 node_modules/libnpx/node_modules/require-main-filename/LICENSE.txt create mode 100644 node_modules/libnpx/node_modules/require-main-filename/README.md create mode 100644 node_modules/libnpx/node_modules/require-main-filename/index.js create mode 100644 node_modules/libnpx/node_modules/require-main-filename/package.json create mode 100644 node_modules/libnpx/node_modules/require-main-filename/test.js create mode 100644 node_modules/libnpx/node_modules/rimraf/LICENSE create mode 100644 node_modules/libnpx/node_modules/rimraf/README.md create mode 100755 node_modules/libnpx/node_modules/rimraf/bin.js create mode 100644 node_modules/libnpx/node_modules/rimraf/package.json create mode 100644 node_modules/libnpx/node_modules/rimraf/rimraf.js create mode 100644 node_modules/libnpx/node_modules/safe-buffer/.travis.yml create mode 100644 node_modules/libnpx/node_modules/safe-buffer/LICENSE create mode 100644 node_modules/libnpx/node_modules/safe-buffer/README.md create mode 100644 node_modules/libnpx/node_modules/safe-buffer/index.js create mode 100644 node_modules/libnpx/node_modules/safe-buffer/package.json create mode 100644 node_modules/libnpx/node_modules/safe-buffer/test.js create mode 100644 node_modules/libnpx/node_modules/semver-diff/index.js create mode 100644 node_modules/libnpx/node_modules/semver-diff/license create mode 100644 node_modules/libnpx/node_modules/semver-diff/package.json create mode 100644 node_modules/libnpx/node_modules/semver-diff/readme.md create mode 100644 node_modules/libnpx/node_modules/semver/LICENSE create mode 100644 node_modules/libnpx/node_modules/semver/README.md create mode 100755 node_modules/libnpx/node_modules/semver/bin/semver create mode 100644 node_modules/libnpx/node_modules/semver/package.json create mode 100644 node_modules/libnpx/node_modules/semver/range.bnf create mode 100644 node_modules/libnpx/node_modules/semver/semver.js create mode 100644 node_modules/libnpx/node_modules/set-blocking/CHANGELOG.md create mode 100644 node_modules/libnpx/node_modules/set-blocking/LICENSE.txt create mode 100644 node_modules/libnpx/node_modules/set-blocking/README.md create mode 100644 node_modules/libnpx/node_modules/set-blocking/index.js create mode 100644 node_modules/libnpx/node_modules/set-blocking/package.json create mode 100644 node_modules/libnpx/node_modules/signal-exit/CHANGELOG.md create mode 100644 node_modules/libnpx/node_modules/signal-exit/LICENSE.txt create mode 100644 node_modules/libnpx/node_modules/signal-exit/README.md create mode 100644 node_modules/libnpx/node_modules/signal-exit/index.js create mode 100644 node_modules/libnpx/node_modules/signal-exit/package.json create mode 100644 node_modules/libnpx/node_modules/signal-exit/signals.js create mode 100644 node_modules/libnpx/node_modules/slide/LICENSE create mode 100644 node_modules/libnpx/node_modules/slide/README.md create mode 100644 node_modules/libnpx/node_modules/slide/index.js create mode 100644 node_modules/libnpx/node_modules/slide/lib/async-map-ordered.js create mode 100644 node_modules/libnpx/node_modules/slide/lib/async-map.js create mode 100644 node_modules/libnpx/node_modules/slide/lib/bind-actor.js create mode 100644 node_modules/libnpx/node_modules/slide/lib/chain.js create mode 100644 node_modules/libnpx/node_modules/slide/lib/slide.js create mode 100644 node_modules/libnpx/node_modules/slide/package.json create mode 100644 node_modules/libnpx/node_modules/spdx-correct/LICENSE create mode 100644 node_modules/libnpx/node_modules/spdx-correct/README.md create mode 100644 node_modules/libnpx/node_modules/spdx-correct/index.js create mode 100644 node_modules/libnpx/node_modules/spdx-correct/package.json create mode 100644 node_modules/libnpx/node_modules/spdx-expression-parse/AUTHORS create mode 100644 node_modules/libnpx/node_modules/spdx-expression-parse/LICENSE create mode 100644 node_modules/libnpx/node_modules/spdx-expression-parse/README.md create mode 100644 node_modules/libnpx/node_modules/spdx-expression-parse/index.js create mode 100644 node_modules/libnpx/node_modules/spdx-expression-parse/package.json create mode 100644 node_modules/libnpx/node_modules/spdx-expression-parse/parser.js create mode 100644 node_modules/libnpx/node_modules/spdx-license-ids/LICENSE create mode 100755 node_modules/libnpx/node_modules/spdx-license-ids/README.md create mode 100644 node_modules/libnpx/node_modules/spdx-license-ids/package.json create mode 100644 node_modules/libnpx/node_modules/spdx-license-ids/spdx-license-ids.json create mode 100644 node_modules/libnpx/node_modules/string-width/index.js create mode 100644 node_modules/libnpx/node_modules/string-width/license create mode 100644 node_modules/libnpx/node_modules/string-width/package.json create mode 100644 node_modules/libnpx/node_modules/string-width/readme.md create mode 100644 node_modules/libnpx/node_modules/strip-ansi/index.js create mode 100644 node_modules/libnpx/node_modules/strip-ansi/license create mode 100644 node_modules/libnpx/node_modules/strip-ansi/package.json create mode 100644 node_modules/libnpx/node_modules/strip-ansi/readme.md create mode 100644 node_modules/libnpx/node_modules/strip-bom/index.js create mode 100644 node_modules/libnpx/node_modules/strip-bom/license create mode 100644 node_modules/libnpx/node_modules/strip-bom/package.json create mode 100644 node_modules/libnpx/node_modules/strip-bom/readme.md create mode 100644 node_modules/libnpx/node_modules/strip-eof/index.js create mode 100644 node_modules/libnpx/node_modules/strip-eof/license create mode 100644 node_modules/libnpx/node_modules/strip-eof/package.json create mode 100644 node_modules/libnpx/node_modules/strip-eof/readme.md create mode 100644 node_modules/libnpx/node_modules/strip-json-comments/index.js create mode 100644 node_modules/libnpx/node_modules/strip-json-comments/license create mode 100644 node_modules/libnpx/node_modules/strip-json-comments/package.json create mode 100644 node_modules/libnpx/node_modules/strip-json-comments/readme.md create mode 100644 node_modules/libnpx/node_modules/supports-color/index.js create mode 100644 node_modules/libnpx/node_modules/supports-color/license create mode 100644 node_modules/libnpx/node_modules/supports-color/package.json create mode 100644 node_modules/libnpx/node_modules/supports-color/readme.md create mode 100644 node_modules/libnpx/node_modules/term-size/index.js create mode 100644 node_modules/libnpx/node_modules/term-size/license create mode 100644 node_modules/libnpx/node_modules/term-size/package.json create mode 100644 node_modules/libnpx/node_modules/term-size/readme.md create mode 100755 node_modules/libnpx/node_modules/term-size/vendor/resize create mode 100644 node_modules/libnpx/node_modules/term-size/vendor/win-term-size.exe create mode 100644 node_modules/libnpx/node_modules/timed-out/index.js create mode 100644 node_modules/libnpx/node_modules/timed-out/license create mode 100644 node_modules/libnpx/node_modules/timed-out/package.json create mode 100644 node_modules/libnpx/node_modules/timed-out/readme.md create mode 100644 node_modules/libnpx/node_modules/unique-string/index.js create mode 100644 node_modules/libnpx/node_modules/unique-string/license create mode 100644 node_modules/libnpx/node_modules/unique-string/package.json create mode 100644 node_modules/libnpx/node_modules/unique-string/readme.md create mode 100644 node_modules/libnpx/node_modules/unzip-response/index.js create mode 100644 node_modules/libnpx/node_modules/unzip-response/license create mode 100644 node_modules/libnpx/node_modules/unzip-response/package.json create mode 100644 node_modules/libnpx/node_modules/unzip-response/readme.md create mode 100644 node_modules/libnpx/node_modules/update-notifier/check.js create mode 100644 node_modules/libnpx/node_modules/update-notifier/index.js create mode 100644 node_modules/libnpx/node_modules/update-notifier/package.json create mode 100644 node_modules/libnpx/node_modules/update-notifier/readme.md create mode 100644 node_modules/libnpx/node_modules/url-parse-lax/index.js create mode 100644 node_modules/libnpx/node_modules/url-parse-lax/license create mode 100644 node_modules/libnpx/node_modules/url-parse-lax/package.json create mode 100644 node_modules/libnpx/node_modules/url-parse-lax/readme.md create mode 100644 node_modules/libnpx/node_modules/validate-npm-package-license/LICENSE create mode 100644 node_modules/libnpx/node_modules/validate-npm-package-license/README.md create mode 100644 node_modules/libnpx/node_modules/validate-npm-package-license/index.js create mode 100644 node_modules/libnpx/node_modules/validate-npm-package-license/package.json create mode 100644 node_modules/libnpx/node_modules/validate-npm-package-name/.npmignore create mode 100644 node_modules/libnpx/node_modules/validate-npm-package-name/.travis.yml create mode 100644 node_modules/libnpx/node_modules/validate-npm-package-name/LICENSE create mode 100644 node_modules/libnpx/node_modules/validate-npm-package-name/README.md create mode 100644 node_modules/libnpx/node_modules/validate-npm-package-name/index.js create mode 100644 node_modules/libnpx/node_modules/validate-npm-package-name/package.json create mode 100644 node_modules/libnpx/node_modules/validate-npm-package-name/test/index.js create mode 100644 node_modules/libnpx/node_modules/which-module/CHANGELOG.md create mode 100644 node_modules/libnpx/node_modules/which-module/LICENSE create mode 100644 node_modules/libnpx/node_modules/which-module/README.md create mode 100644 node_modules/libnpx/node_modules/which-module/index.js create mode 100644 node_modules/libnpx/node_modules/which-module/package.json create mode 100644 node_modules/libnpx/node_modules/which/CHANGELOG.md create mode 100644 node_modules/libnpx/node_modules/which/LICENSE create mode 100644 node_modules/libnpx/node_modules/which/README.md create mode 100755 node_modules/libnpx/node_modules/which/bin/which create mode 100644 node_modules/libnpx/node_modules/which/package.json create mode 100644 node_modules/libnpx/node_modules/which/which.js create mode 100644 node_modules/libnpx/node_modules/widest-line/index.js create mode 100644 node_modules/libnpx/node_modules/widest-line/license create mode 100644 node_modules/libnpx/node_modules/widest-line/node_modules/ansi-regex/index.js create mode 100644 node_modules/libnpx/node_modules/widest-line/node_modules/ansi-regex/license create mode 100644 node_modules/libnpx/node_modules/widest-line/node_modules/ansi-regex/package.json create mode 100644 node_modules/libnpx/node_modules/widest-line/node_modules/ansi-regex/readme.md create mode 100644 node_modules/libnpx/node_modules/widest-line/node_modules/is-fullwidth-code-point/index.js create mode 100644 node_modules/libnpx/node_modules/widest-line/node_modules/is-fullwidth-code-point/license create mode 100644 node_modules/libnpx/node_modules/widest-line/node_modules/is-fullwidth-code-point/package.json create mode 100644 node_modules/libnpx/node_modules/widest-line/node_modules/is-fullwidth-code-point/readme.md create mode 100644 node_modules/libnpx/node_modules/widest-line/node_modules/string-width/index.js create mode 100644 node_modules/libnpx/node_modules/widest-line/node_modules/string-width/license create mode 100644 node_modules/libnpx/node_modules/widest-line/node_modules/string-width/package.json create mode 100644 node_modules/libnpx/node_modules/widest-line/node_modules/string-width/readme.md create mode 100644 node_modules/libnpx/node_modules/widest-line/node_modules/strip-ansi/index.js create mode 100644 node_modules/libnpx/node_modules/widest-line/node_modules/strip-ansi/license create mode 100644 node_modules/libnpx/node_modules/widest-line/node_modules/strip-ansi/package.json create mode 100644 node_modules/libnpx/node_modules/widest-line/node_modules/strip-ansi/readme.md create mode 100644 node_modules/libnpx/node_modules/widest-line/package.json create mode 100644 node_modules/libnpx/node_modules/widest-line/readme.md create mode 100755 node_modules/libnpx/node_modules/wrap-ansi/index.js create mode 100644 node_modules/libnpx/node_modules/wrap-ansi/license create mode 100644 node_modules/libnpx/node_modules/wrap-ansi/node_modules/ansi-regex/index.js create mode 100644 node_modules/libnpx/node_modules/wrap-ansi/node_modules/ansi-regex/license create mode 100644 node_modules/libnpx/node_modules/wrap-ansi/node_modules/ansi-regex/package.json create mode 100644 node_modules/libnpx/node_modules/wrap-ansi/node_modules/ansi-regex/readme.md create mode 100644 node_modules/libnpx/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/index.js create mode 100644 node_modules/libnpx/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/license create mode 100644 node_modules/libnpx/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/package.json create mode 100644 node_modules/libnpx/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/readme.md create mode 100644 node_modules/libnpx/node_modules/wrap-ansi/node_modules/string-width/index.js create mode 100644 node_modules/libnpx/node_modules/wrap-ansi/node_modules/string-width/license create mode 100644 node_modules/libnpx/node_modules/wrap-ansi/node_modules/string-width/package.json create mode 100644 node_modules/libnpx/node_modules/wrap-ansi/node_modules/string-width/readme.md create mode 100644 node_modules/libnpx/node_modules/wrap-ansi/node_modules/strip-ansi/index.js create mode 100644 node_modules/libnpx/node_modules/wrap-ansi/node_modules/strip-ansi/license create mode 100644 node_modules/libnpx/node_modules/wrap-ansi/node_modules/strip-ansi/package.json create mode 100644 node_modules/libnpx/node_modules/wrap-ansi/node_modules/strip-ansi/readme.md create mode 100644 node_modules/libnpx/node_modules/wrap-ansi/package.json create mode 100644 node_modules/libnpx/node_modules/wrap-ansi/readme.md create mode 100644 node_modules/libnpx/node_modules/wrappy/LICENSE create mode 100644 node_modules/libnpx/node_modules/wrappy/README.md create mode 100644 node_modules/libnpx/node_modules/wrappy/package.json create mode 100644 node_modules/libnpx/node_modules/wrappy/wrappy.js create mode 100644 node_modules/libnpx/node_modules/write-file-atomic/LICENSE create mode 100644 node_modules/libnpx/node_modules/write-file-atomic/README.md create mode 100644 node_modules/libnpx/node_modules/write-file-atomic/index.js create mode 100644 node_modules/libnpx/node_modules/write-file-atomic/package.json create mode 100644 node_modules/libnpx/node_modules/xdg-basedir/index.js create mode 100644 node_modules/libnpx/node_modules/xdg-basedir/license create mode 100644 node_modules/libnpx/node_modules/xdg-basedir/package.json create mode 100644 node_modules/libnpx/node_modules/xdg-basedir/readme.md create mode 100644 node_modules/libnpx/node_modules/y18n/LICENSE create mode 100644 node_modules/libnpx/node_modules/y18n/README.md create mode 100644 node_modules/libnpx/node_modules/y18n/index.js create mode 100644 node_modules/libnpx/node_modules/y18n/package.json create mode 100644 node_modules/libnpx/node_modules/yallist/LICENSE create mode 100644 node_modules/libnpx/node_modules/yallist/README.md create mode 100644 node_modules/libnpx/node_modules/yallist/iterator.js create mode 100644 node_modules/libnpx/node_modules/yallist/package.json create mode 100644 node_modules/libnpx/node_modules/yallist/yallist.js create mode 100644 node_modules/libnpx/node_modules/yargs-parser/CHANGELOG.md create mode 100644 node_modules/libnpx/node_modules/yargs-parser/LICENSE.txt create mode 100644 node_modules/libnpx/node_modules/yargs-parser/README.md create mode 100644 node_modules/libnpx/node_modules/yargs-parser/index.js create mode 100644 node_modules/libnpx/node_modules/yargs-parser/lib/tokenize-arg-string.js create mode 100644 node_modules/libnpx/node_modules/yargs-parser/package.json create mode 100644 node_modules/libnpx/node_modules/yargs/CHANGELOG.md create mode 100644 node_modules/libnpx/node_modules/yargs/LICENSE create mode 100644 node_modules/libnpx/node_modules/yargs/README.md create mode 100644 node_modules/libnpx/node_modules/yargs/completion.sh.hbs create mode 100644 node_modules/libnpx/node_modules/yargs/index.js create mode 100644 node_modules/libnpx/node_modules/yargs/lib/apply-extends.js create mode 100644 node_modules/libnpx/node_modules/yargs/lib/argsert.js create mode 100644 node_modules/libnpx/node_modules/yargs/lib/assign.js create mode 100644 node_modules/libnpx/node_modules/yargs/lib/command.js create mode 100644 node_modules/libnpx/node_modules/yargs/lib/completion.js create mode 100644 node_modules/libnpx/node_modules/yargs/lib/levenshtein.js create mode 100644 node_modules/libnpx/node_modules/yargs/lib/obj-filter.js create mode 100644 node_modules/libnpx/node_modules/yargs/lib/usage.js create mode 100644 node_modules/libnpx/node_modules/yargs/lib/validation.js create mode 100644 node_modules/libnpx/node_modules/yargs/lib/yerror.js create mode 100644 node_modules/libnpx/node_modules/yargs/locales/be.json create mode 100644 node_modules/libnpx/node_modules/yargs/locales/de.json create mode 100644 node_modules/libnpx/node_modules/yargs/locales/en.json create mode 100644 node_modules/libnpx/node_modules/yargs/locales/es.json create mode 100644 node_modules/libnpx/node_modules/yargs/locales/fr.json create mode 100644 node_modules/libnpx/node_modules/yargs/locales/hi.json create mode 100644 node_modules/libnpx/node_modules/yargs/locales/hu.json create mode 100644 node_modules/libnpx/node_modules/yargs/locales/id.json create mode 100644 node_modules/libnpx/node_modules/yargs/locales/it.json create mode 100644 node_modules/libnpx/node_modules/yargs/locales/ja.json create mode 100644 node_modules/libnpx/node_modules/yargs/locales/ko.json create mode 100644 node_modules/libnpx/node_modules/yargs/locales/nb.json create mode 100644 node_modules/libnpx/node_modules/yargs/locales/nl.json create mode 100644 node_modules/libnpx/node_modules/yargs/locales/pirate.json create mode 100644 node_modules/libnpx/node_modules/yargs/locales/pl.json create mode 100644 node_modules/libnpx/node_modules/yargs/locales/pt.json create mode 100644 node_modules/libnpx/node_modules/yargs/locales/pt_BR.json create mode 100644 node_modules/libnpx/node_modules/yargs/locales/ru.json create mode 100644 node_modules/libnpx/node_modules/yargs/locales/th.json create mode 100644 node_modules/libnpx/node_modules/yargs/locales/tr.json create mode 100644 node_modules/libnpx/node_modules/yargs/locales/zh_CN.json create mode 100644 node_modules/libnpx/node_modules/yargs/locales/zh_TW.json create mode 100644 node_modules/libnpx/node_modules/yargs/package.json create mode 100644 node_modules/libnpx/node_modules/yargs/yargs.js create mode 100644 node_modules/libnpx/package.json create mode 100644 node_modules/libnpx/parse-args.js create mode 100644 node_modules/libnpx/util.js create mode 100644 node_modules/libnpx/y.js diff --git a/Makefile b/Makefile index 5cb67d2d583eb..53ab16a29063c 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,8 @@ html_docdeps = html/dochead.html \ cli_mandocs = $(shell find doc/cli -name '*.md' \ |sed 's|.md|.1|g' \ |sed 's|doc/cli/|man/man1/|g' ) \ - man/man1/npm-README.1 + man/man1/npm-README.1 \ + man/man1/npx.1 files_mandocs = $(shell find doc/files -name '*.md' \ |sed 's|.md|.5|g' \ @@ -96,6 +97,9 @@ man/man1/%.1: doc/cli/%.md scripts/doc-build.sh package.json @[ -d man/man1 ] || mkdir -p man/man1 scripts/doc-build.sh $< $@ +man/man1/npx.1: node_modules/libnpx/libnpx.1 + cat $< | sed s/libnpx/npx/ > $@ + man/man5/npm-json.5: man/man5/package.json.5 cp $< $@ diff --git a/bin/npx b/bin/npx new file mode 100644 index 0000000000000..a49c608bab89b --- /dev/null +++ b/bin/npx @@ -0,0 +1,34 @@ +#!/bin/sh +(set -o igncr) 2>/dev/null && set -o igncr; # cygwin encoding fix + +basedir=`dirname "$0"` + +case `uname` in + *CYGWIN*) basedir=`cygpath -w "$basedir"`;; +esac + +NODE_EXE="$basedir/node.exe" +if ! [ -x "$NODE_EXE" ]; then + NODE_EXE=node +fi + +NPX_CLI_JS="$basedir/node_modules/npm/bin/npx-cli.js" + +case `uname` in + *MINGW*) + NPM_PREFIX=`"$NODE_EXE" "$NPX_CLI_JS" prefix -g` + NPM_PREFIX_NPX_CLI_JS="$NPM_PREFIX/node_modules/npm/bin/npx-cli.js" + if [ -f "$NPM_PREFIX_NPX_CLI_JS" ]; then + NPX_CLI_JS="$NPM_PREFIX_NPX_CLI_JS" + fi + ;; + *CYGWIN*) + NPM_PREFIX=`"$NODE_EXE" "$NPX_CLI_JS" prefix -g` + NPM_PREFIX_NPX_CLI_JS="$NPM_PREFIX/node_modules/npm/bin/npx-cli.js" + if [ -f "$NPM_PREFIX_NPX_CLI_JS" ]; then + NPX_CLI_JS="$NPM_PREFIX_NPX_CLI_JS" + fi + ;; +esac + +"$NODE_EXE" "$NPX_CLI_JS" "$@" diff --git a/bin/npx-cli.js b/bin/npx-cli.js new file mode 100755 index 0000000000000..f4043650599d7 --- /dev/null +++ b/bin/npx-cli.js @@ -0,0 +1,8 @@ +#!/usr/bin/env node + +const npx = require('libnpx') +const path = require('path') + +const NPM_PATH = path.join(__dirname, 'npm-cli.js') + +npx(npx.parseArgs(process.argv, NPM_PATH)) diff --git a/bin/npx.cmd b/bin/npx.cmd new file mode 100644 index 0000000000000..72526178eef88 --- /dev/null +++ b/bin/npx.cmd @@ -0,0 +1,19 @@ +:: Created by npm, please don't edit manually. +@ECHO OFF + +SETLOCAL + +SET "NODE_EXE=%~dp0\node.exe" +IF NOT EXIST "%NODE_EXE%" ( + SET "NODE_EXE=node" +) + +SET "NPX_CLI_JS=%~dp0\node_modules\npm\bin\npx-cli.js" +FOR /F "delims=" %%F IN ('CALL "%NODE_EXE%" "%NPX_CLI_JS%" prefix -g') DO ( + SET "NPM_PREFIX_NPX_CLI_JS=%%F\node_modules\npm\bin\npx-cli.js" +) +IF EXIST "%NPM_PREFIX_NPX_CLI_JS%" ( + SET "NPX_CLI_JS=%NPM_PREFIX_NPX_CLI_JS%" +) + +"%NODE_EXE%" "%NPX_CLI_JS%" %* diff --git a/node_modules/libnpx/CHANGELOG.md b/node_modules/libnpx/CHANGELOG.md new file mode 100644 index 0000000000000..eba08fbcf9490 --- /dev/null +++ b/node_modules/libnpx/CHANGELOG.md @@ -0,0 +1,512 @@ +# Change Log + +All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. + + +## [9.0.3](https://github.com/zkat/npx/compare/v9.0.2...v9.0.3) (2017-07-08) + + +### Bug Fixes + +* **version:** hand version to yargs directly ([e0b5eeb](https://github.com/zkat/npx/commit/e0b5eeb)) + + + + +## [9.0.2](https://github.com/zkat/npx/compare/v9.0.1...v9.0.2) (2017-07-08) + + +### Bug Fixes + +* **manpage:** fix manpage for real because files syntax is weird ([9145e2a](https://github.com/zkat/npx/commit/9145e2a)) + + + + +## [9.0.1](https://github.com/zkat/npx/compare/v9.0.0...v9.0.1) (2017-07-08) + + +### Bug Fixes + +* **man:** make sure manpage is used in npx bin ([704b94f](https://github.com/zkat/npx/commit/704b94f)) + + + + +# [9.0.0](https://github.com/zkat/npx/compare/v8.1.1...v9.0.0) (2017-07-08) + + +### Features + +* **libnpx:** libify main npx codebase ([643f58e](https://github.com/zkat/npx/commit/643f58e)) +* **npx:** create a new binary for standalone publishing ([da5a3b7](https://github.com/zkat/npx/commit/da5a3b7)) + + +### BREAKING CHANGES + +* **libnpx:** This version of npx can no longer be used as a +standalone binary. It will be available on the registry as `libnpx`, +and a separate project will take over the role of the main `npx` binary. + + + + +## [8.1.1](https://github.com/zkat/npx/compare/v8.1.0...v8.1.1) (2017-07-06) + + +### Bug Fixes + +* **deps:** bump all deps ([6ea24bf](https://github.com/zkat/npx/commit/6ea24bf)) +* **npm:** bump npm to 5.1.0 for a bunch of fixes ([18e4587](https://github.com/zkat/npx/commit/18e4587)) + + + + +# [8.1.0](https://github.com/zkat/npx/compare/v8.0.1...v8.1.0) (2017-06-27) + + +### Bug Fixes + +* **i18n:** minor tweaks to ja.json (#46) ([1ed63c2](https://github.com/zkat/npx/commit/1ed63c2)) + + +### Features + +* **i18n:** Update pt_BR.json (#51) ([d292f22](https://github.com/zkat/npx/commit/d292f22)) + + + + +## [8.0.1](https://github.com/zkat/npx/compare/v8.0.0...v8.0.1) (2017-06-27) + + +### Bug Fixes + +* **npm:** bump npm version for more bugfixes ([30711a8](https://github.com/zkat/npx/commit/30711a8)) +* **npm:** Use --parseable option to work around output quirks ([8cb75a2](https://github.com/zkat/npx/commit/8cb75a2)) + + + + +# [8.0.0](https://github.com/zkat/npx/compare/v7.0.0...v8.0.0) (2017-06-24) + + +### Features + +* **exec:** auto-guess binaries when different from pkg name ([139c434](https://github.com/zkat/npx/commit/139c434)) + + +### BREAKING CHANGES + +* **exec:** `npx ember-cli` and such things will now execute the +binary based on some guesswork, but only when using the shorthand format +for npx execution, with no `-p` option or `-c`. This might cause npx to +unintentionally execute the wrong binary if the package in question has +multiple non-matching binaries, but that should be rare. + + + + +# [7.0.0](https://github.com/zkat/npx/compare/v6.2.0...v7.0.0) (2017-06-24) + + +### Bug Fixes + +* **win32:** improve win32 situation a bit (#50) ([b7ad934](https://github.com/zkat/npx/commit/b7ad934)) + + +### Features + +* **local:** improve the behavior when calling ./local paths (#48) ([2e418d1](https://github.com/zkat/npx/commit/2e418d1)) + + +### BREAKING CHANGES + +* **local:** `npx ./something` will now execute `./something` as a +binary or script instead of trying to install it as npm would. Other behavior +related to local path deps has likewise been changed. See +[#49](https://github.com/zkat/npx/issues/49) for a detailed explanation +of all the various cases and how each of them is handled. + + + + +# [6.2.0](https://github.com/zkat/npx/compare/v6.1.0...v6.2.0) (2017-06-23) + + +### Bug Fixes + +* **child:** iron out a few crinkles and add tests ([b3b5ef6](https://github.com/zkat/npx/commit/b3b5ef6)) +* **execCmd:** only reuse the current process if no shell passed in ([e413cff](https://github.com/zkat/npx/commit/e413cff)) +* **execCmd:** use the module built-in directly ([6f741c2](https://github.com/zkat/npx/commit/6f741c2)) +* **help:** fuck it. just hard-code it ([d5d5085](https://github.com/zkat/npx/commit/d5d5085)) +* **main:** only exec if this is the main module ([9631e2a](https://github.com/zkat/npx/commit/9631e2a)) + + +### Features + +* **i18n:** Update fr.json (#44) ([ea47c4f](https://github.com/zkat/npx/commit/ea47c4f)) +* **i18n:** update the Romanian translation. (#42) ([2ed36b6](https://github.com/zkat/npx/commit/2ed36b6)) + + + + +# [6.1.0](https://github.com/zkat/npx/compare/v6.0.0...v6.1.0) (2017-06-21) + + +### Bug Fixes + +* **deps:** remove unused gauge dep ([aa40a34](https://github.com/zkat/npx/commit/aa40a34)) + + +### Features + +* **i18n:** update ru locale (#41) ([7c84dee](https://github.com/zkat/npx/commit/7c84dee)) +* **i18n:** update zh_CN (#40) ([da4ec67](https://github.com/zkat/npx/commit/da4ec67)) +* **perf:** run node-based commands in the current process ([6efcde4](https://github.com/zkat/npx/commit/6efcde4)) + + + + +# [6.0.0](https://github.com/zkat/npx/compare/v5.4.0...v6.0.0) (2017-06-20) + + +### Bug Fixes + +* **call:** stop parsing -c for commands + fix corner cases ([bd4e538](https://github.com/zkat/npx/commit/bd4e538)) +* **child:** exec does not have the information needed to correctly escape its args ([6714992](https://github.com/zkat/npx/commit/6714992)) +* **guessCmdName:** tests failed because of lazy npa ([53a0119](https://github.com/zkat/npx/commit/53a0119)) +* **i18n:** gender inclusiveness fix for french version (#37) ([04920ae](https://github.com/zkat/npx/commit/04920ae)), closes [#37](https://github.com/zkat/npx/issues/37) +* **i18n:** typo 😇 (#38) ([ede4a53](https://github.com/zkat/npx/commit/ede4a53)) +* **install:** handle JSON parsing failures ([bec2887](https://github.com/zkat/npx/commit/bec2887)) +* **output:** stop printing out Command Failed messages ([873cffe](https://github.com/zkat/npx/commit/873cffe)) +* **parseArgs:** fix booboo in fast path ([d1e5487](https://github.com/zkat/npx/commit/d1e5487)) +* **perf:** fast-path `npx foo` arg parsing ([ba4fe71](https://github.com/zkat/npx/commit/ba4fe71)) +* **perf:** remove bluebird and defer some requires for SPEED ([00fc313](https://github.com/zkat/npx/commit/00fc313)) + + +### Features + +* **i18n:** add Romanian translations. (#34) ([9e98bd0](https://github.com/zkat/npx/commit/9e98bd0)) +* **i18n:** added a few more localizable strings ([779d950](https://github.com/zkat/npx/commit/779d950)) +* **i18n:** updated ca.json ([af7a035](https://github.com/zkat/npx/commit/af7a035)) +* **i18n:** updated es.json ([414644f](https://github.com/zkat/npx/commit/414644f)) +* **i18n:** updated ja.json ([448b082](https://github.com/zkat/npx/commit/448b082)) +* **i18n:** Ze German Translation (#35) ([6f003f5](https://github.com/zkat/npx/commit/6f003f5)) +* **package:** report number of temp packages installed ([5b7fe8d](https://github.com/zkat/npx/commit/5b7fe8d)) +* **perf:** only launch update-notifier when npx installs stuff ([549d413](https://github.com/zkat/npx/commit/549d413)) +* **quiet:** added -q/--quiet to suppress output from npx itself ([16607d9](https://github.com/zkat/npx/commit/16607d9)) + + +### BREAKING CHANGES + +* **call:** `npx -c "foo"` will no longer install `foo`. Use `-p` to specicify packages to install. npx will no longer assume any particular format or escape status for `-c` strings: they will be passed directly, unparsed, and unaltered, to child_process.spawn. + + + + +# [5.4.0](https://github.com/zkat/npx/compare/v5.3.0...v5.4.0) (2017-06-17) + + +### Bug Fixes + +* **i18n:** some corrections for es.json ([4d50b71](https://github.com/zkat/npx/commit/4d50b71)) +* **i18n:** update locale files with bugfixes ([77caf82](https://github.com/zkat/npx/commit/77caf82)) +* **i18n:** Y utility was ignoring falsy entries ([f22a4d0](https://github.com/zkat/npx/commit/f22a4d0)) +* **i18n:** してください -> します ([01671af](https://github.com/zkat/npx/commit/01671af)) + + +### Features + +* **i18n:** add catalan translation ([579efa1](https://github.com/zkat/npx/commit/579efa1)) +* **i18n:** add pt-br translation (#33) ([6142551](https://github.com/zkat/npx/commit/6142551)) +* **i18n:** added largely machine-translated ja.json ([827705f](https://github.com/zkat/npx/commit/827705f)) +* **i18n:** adds russian translation (#32) ([b2619c1](https://github.com/zkat/npx/commit/b2619c1)) + + + + +# [5.3.0](https://github.com/zkat/npx/compare/v5.2.0...v5.3.0) (2017-06-13) + + +### Features + +* **i18n:** add Chinese translation (#31) ([24e1b31](https://github.com/zkat/npx/commit/24e1b31)) + + + + +# [5.2.0](https://github.com/zkat/npx/compare/v5.1.3...v5.2.0) (2017-06-12) + + +### Bug Fixes + +* **i18n:** removing extra spacing in fr.json ([002e2b8](https://github.com/zkat/npx/commit/002e2b8)) + + +### Features + +* **i18n:** add french locale (#29) ([662395b](https://github.com/zkat/npx/commit/662395b)) + + + + +## [5.1.3](https://github.com/zkat/npx/compare/v5.1.2...v5.1.3) (2017-06-12) + + +### Bug Fixes + +* **fallback:** put the Y in the wrong place lol ([d6bf8aa](https://github.com/zkat/npx/commit/d6bf8aa)) + + + + +## [5.1.2](https://github.com/zkat/npx/compare/v5.1.1...v5.1.2) (2017-06-10) + + + + +## [5.1.1](https://github.com/zkat/npx/compare/v5.1.0...v5.1.1) (2017-06-10) + + +### Bug Fixes + +* **i18n:** forgot to add locales to files ([4118d6a](https://github.com/zkat/npx/commit/4118d6a)) + + + + +# [5.1.0](https://github.com/zkat/npx/compare/v5.0.3...v5.1.0) (2017-06-10) + + +### Bug Fixes + +* **exit:** let process exit normally to finish writes ([c50a398](https://github.com/zkat/npx/commit/c50a398)) + + +### Features + +* **i18n:** added es.json ([6cf58b9](https://github.com/zkat/npx/commit/6cf58b9)) +* **i18n:** set up i18n plus baseline en.json locale ([b67bb3a](https://github.com/zkat/npx/commit/b67bb3a)) + + + + +## [5.0.3](https://github.com/zkat/npx/compare/v5.0.2...v5.0.3) (2017-06-09) + + +### Bug Fixes + +* **fallback:** exec is no ([42c1d30](https://github.com/zkat/npx/commit/42c1d30)) + + + + +## [5.0.2](https://github.com/zkat/npx/compare/v5.0.1...v5.0.2) (2017-06-09) + + +### Bug Fixes + +* **fallback:** allow fallback to local anyway ([569cf2c](https://github.com/zkat/npx/commit/569cf2c)) + + + + +## [5.0.1](https://github.com/zkat/npx/compare/v5.0.0...v5.0.1) (2017-06-09) + + + + +# [5.0.0](https://github.com/zkat/npx/compare/v4.0.3...v5.0.0) (2017-06-09) + + +### Features + +* **fallback:** by default, only fall back if you have an @ in the name ([bea08a0](https://github.com/zkat/npx/commit/bea08a0)) + + +### BREAKING CHANGES + +* **fallback:** auto-fallback will no longer fall back unless there was +an @ sign in the command. + + + + +## [4.0.3](https://github.com/zkat/npx/compare/v4.0.2...v4.0.3) (2017-06-04) + + +### Bug Fixes + +* **npm:** use --userconfig when querying for npm cache config (#28) ([21bc3bf](https://github.com/zkat/npx/commit/21bc3bf)) + + + + +## [4.0.2](https://github.com/zkat/npx/compare/v4.0.1...v4.0.2) (2017-06-04) + + +### Bug Fixes + +* **install:** get windows workin (#27) ([9472175](https://github.com/zkat/npx/commit/9472175)) + + + + +## [4.0.1](https://github.com/zkat/npx/compare/v4.0.0...v4.0.1) (2017-06-04) + + +### Bug Fixes + +* **cmd:** make sure to use our own, enriched path ([9c89c2a](https://github.com/zkat/npx/commit/9c89c2a)) +* **error:** join args with a space on Command failed error ([c2f6f18](https://github.com/zkat/npx/commit/c2f6f18)) + + + + +# [4.0.0](https://github.com/zkat/npx/compare/v3.0.0...v4.0.0) (2017-06-03) + + +### Features + +* **call:** -c now loads same env as run-script ([76ae44c](https://github.com/zkat/npx/commit/76ae44c)) +* **npm:** allow configuration of npm binary ([e5d5634](https://github.com/zkat/npx/commit/e5d5634)) +* **npm:** embed npm binary ([a2cae9d](https://github.com/zkat/npx/commit/a2cae9d)) + + +### BREAKING CHANGES + +* **call:** scripts invoked with -c will now have a bunch of +variables added to them that were not there before. +* **npm:** npx will no longer use the system npm -- it embeds its own + + + + +# [3.0.0](https://github.com/zkat/npx/compare/v2.1.0...v3.0.0) (2017-06-03) + + +### Bug Fixes + +* **args:** accept argv as arg and fix minor bugs ([46f10fe](https://github.com/zkat/npx/commit/46f10fe)) +* **deps:** explicitly add mkdirp and rimraf to devDeps ([832c75d](https://github.com/zkat/npx/commit/832c75d)) +* **docs:** misc tweaks to docs ([ed70a7b](https://github.com/zkat/npx/commit/ed70a7b)) +* **exec:** escape binaries and args to cp.exec (#18) ([55d6a11](https://github.com/zkat/npx/commit/55d6a11)) +* **fallback:** shells were sometimes ignored based on $SHELL ([07b7efc](https://github.com/zkat/npx/commit/07b7efc)) +* **get-prefix:** nudge isRootPath ([1ab31eb](https://github.com/zkat/npx/commit/1ab31eb)) +* **help:** correctly enable -h and --help ([adc2f45](https://github.com/zkat/npx/commit/adc2f45)) +* **startup:** delay loading some things to speed up startup ([6b32bf5](https://github.com/zkat/npx/commit/6b32bf5)) + + +### Features + +* **cmd:** do some heuristic guesswork on default command names (#23) ([2404420](https://github.com/zkat/npx/commit/2404420)) +* **ignore:** add --ignore-existing option (#20) ([0866a83](https://github.com/zkat/npx/commit/0866a83)) +* **install:** added --no-install option to prevent install fallbacks ([a5fbdaf](https://github.com/zkat/npx/commit/a5fbdaf)) +* **package:** multiple --package options are now accepted ([f2fa6b3](https://github.com/zkat/npx/commit/f2fa6b3)) +* **save:** remove all save-related functionality (#19) ([ab77f6c](https://github.com/zkat/npx/commit/ab77f6c)) +* **shell:** run -c strings inside a system shell (#22) ([17db461](https://github.com/zkat/npx/commit/17db461)) + + +### BREAKING CHANGES + +* **save:** npx can no longer be used to save packages locally or globally. Use an actual package manager for that, instead. + + + + +# [2.1.0](https://github.com/zkat/npx/compare/v2.0.1...v2.1.0) (2017-06-01) + + +### Features + +* **opts:** add --shell-auto-fallback (#7) ([ac9cb40](https://github.com/zkat/npx/commit/ac9cb40)) + + + + +## [2.0.1](https://github.com/zkat/npx/compare/v2.0.0...v2.0.1) (2017-05-31) + + +### Bug Fixes + +* **exec:** use command lookup joined with current PATH ([d9175e8](https://github.com/zkat/npx/commit/d9175e8)) + + + + +# [2.0.0](https://github.com/zkat/npx/compare/v1.1.1...v2.0.0) (2017-05-31) + + +### Bug Fixes + +* **npm:** manually look up npm path for Windows compat ([0fe8fbf](https://github.com/zkat/npx/commit/0fe8fbf)) + + +### Features + +* **commands:** -p and [@version](https://github.com/version) now trigger installs ([9668c83](https://github.com/zkat/npx/commit/9668c83)) + + +### BREAKING CHANGES + +* **commands:** If a command has an explicit --package option, or if the command has an @version part, any version of the command in $PATH will be ignored and a regular install will be executed. + + + + +## [1.1.1](https://github.com/zkat/npx/compare/v1.1.0...v1.1.1) (2017-05-30) + + +### Bug Fixes + +* **docs:** make sure man page gets installed ([2aadc16](https://github.com/zkat/npx/commit/2aadc16)) + + + + +# [1.1.0](https://github.com/zkat/npx/compare/v1.0.2...v1.1.0) (2017-05-30) + + +### Bug Fixes + +* **help:** update usage string for help ([0747cff](https://github.com/zkat/npx/commit/0747cff)) +* **main:** exit if no package was parsed ([cdb579d](https://github.com/zkat/npx/commit/cdb579d)) +* **opts:** allow -- to prevent further parsing ([db7a0e4](https://github.com/zkat/npx/commit/db7a0e4)) + + +### Features + +* **updates:** added update-notifier ([8dc91d4](https://github.com/zkat/npx/commit/8dc91d4)) + + + + +## [1.0.2](https://github.com/zkat/npx/compare/v1.0.1...v1.0.2) (2017-05-30) + + +### Bug Fixes + +* **pkg:** bundle deps to guarantee global install precision ([3e21217](https://github.com/zkat/npx/commit/3e21217)) + + + + +## [1.0.1](https://github.com/zkat/npx/compare/v1.0.0...v1.0.1) (2017-05-30) + + +### Bug Fixes + +* **build:** add dummy test file to let things build ([6199eb6](https://github.com/zkat/npx/commit/6199eb6)) +* **docs:** fix arg documentation in readme/manpage ([d1cf44c](https://github.com/zkat/npx/commit/d1cf44c)) +* **opts:** add --version/-v ([2633a0e](https://github.com/zkat/npx/commit/2633a0e)) + + + + +# 1.0.0 (2017-05-30) + + +### Features + +* **npx:** initial working implementation ([a83a67d](https://github.com/zkat/npx/commit/a83a67d)) diff --git a/node_modules/libnpx/LICENSE.md b/node_modules/libnpx/LICENSE.md new file mode 100644 index 0000000000000..c05cb09586fcc --- /dev/null +++ b/node_modules/libnpx/LICENSE.md @@ -0,0 +1,3 @@ +To the extent possible under law, maintainers for this project have waived all copyright and related or neighboring rights to this project. + +For more information on this waiver, see: https://creativecommons.org/publicdomain/zero/1.0/ diff --git a/node_modules/libnpx/README.md b/node_modules/libnpx/README.md new file mode 100644 index 0000000000000..004ce1cd0a320 --- /dev/null +++ b/node_modules/libnpx/README.md @@ -0,0 +1,150 @@ +[![npm](https://img.shields.io/npm/v/npx.svg)](https://npm.im/npx) [![license](https://img.shields.io/npm/l/npx.svg)](https://npm.im/npx) [![Travis](https://img.shields.io/travis/zkat/npx.svg)](https://travis-ci.org/zkat/npx) [![AppVeyor](https://ci.appveyor.com/api/projects/status/github/zkat/npx?svg=true)](https://ci.appveyor.com/project/zkat/npx) [![Coverage Status](https://coveralls.io/repos/github/zkat/npx/badge.svg?branch=latest)](https://coveralls.io/github/zkat/npx?branch=latest) + +# npx(1) -- execute npm package binaries + +## SYNOPSIS + +`npx [options] [@version] [command-arg]...` + +`npx [options] [-p|--package ]... [command-arg]...` + +`npx [options] -c ''` + +`npx --shell-auto-fallback [shell]` + +## INSTALL + +`npm install -g npx` + +## DESCRIPTION + +Executes `` either from a local `node_modules/.bin`, or from a central cache, installing any packages needed in order for `` to run. + +By default, `npx` will check whether `` exists in `$PATH`, or in the local project binaries, and execute that. If `` is not found, it will be installed prior to execution. + +Unless a `--package` option is specified, `npx` will try to guess the name of the binary to invoke depending on the specifier provided. All package specifiers understood by `npm` may be used with `npx`, including git specifiers, remote tarballs, local directories, or scoped packages. + +If a full specifier is included, or if `--package` is used, npx will always use a freshly-installed, temporary version of the package. This can also be forced with the `--ignore-existing` flag. + +* `-p, --package ` - define the package to be installed. This defaults to the value of ``. This is only needed for packages with multiple binaries if you want to call one of the other executables, or where the binary name does not match the package name. If this option is provided `` will be executed as-is, without interpreting `@version` if it's there. Multiple `--package` options may be provided, and all the packages specified will be installed. + +* `--no-install` - If passed to `npx`, it will only try to run `` if it already exists in the current path or in `$prefix/node_modules/.bin`. It won't try to install missing commands. + +* `--cache ` - set the location of the npm cache. Defaults to npm's own cache settings. + +* `--userconfig ` - path to the user configuration file to pass to npm. Defaults to whatever npm's current default is. + +* `-c ` - Execute `` inside an `npm run-script`-like shell environment, with all the usual environment variables available. Only the first item in `` will be automatically used as ``. Any others _must_ use `-p`. + +* `--shell ` - The shell to invoke the command with, if any. + +* `--shell-auto-fallback []` - Generates shell code to override your shell's "command not found" handler with one that calls `npx`. Tries to figure out your shell, or you can pass its name (either `bash`, `fish`, or `zsh`) as an option. See below for how to install. + +* `--ignore-existing` - If this flag is set, npx will not look in `$PATH`, or in the current package's `node_modules/.bin` for an existing version before deciding whether to install. Binaries in those paths will still be available for execution, but will be shadowed by any packages requested by this install. + +* `-q, --quiet` - Suppressed any output from npx itself (progress bars, error messages, install reports). Subcommand output itself will not be silenced. + +* `-v, --version` - Show the current npx version. + +## EXAMPLES + +### Running a project-local bin + +``` +$ npm i -D webpack +$ npx webpack ... +``` + +### One-off invocation without local installation + +``` +$ npm rm webpack +$ npx webpack -- ... +$ cat package.json +...webpack not in "devDependencies"... +``` + +### Invoking a command from a github repository + +``` +$ npx github:piuccio/cowsay +...or... +$ npx git+ssh://my.hosted.git:cowsay.git#semver:^1 +...etc... +``` + +### Execute a full shell command using one npx call w/ multiple packages + +``` +$ npx -p lolcatjs -p cowsay -c \ + 'echo "$npm_package_name@$npm_package_version" | cowsay | lolcatjs' +... + _____ +< your-cool-package@1.2.3 > + ----- + \ ^__^ + \ (oo)\_______ + (__)\ )\/\ + ||----w | + || || +``` + +## SHELL AUTO FALLBACK + +You can configure `npx` to run as your default fallback command when you type something in the command line with an `@` but the command is not found. This includes installing packages that were not found in the local prefix either. + +For example: + +``` +$ npm@4 --version +(stderr) npm@4 not found. Trying with npx... +4.6.1 +$ asdfasdfasf +zsh: command not found: asfdasdfasdf +``` + +Currently, `zsh`, `bash`, and `fish` are supported. You can access these completion scripts using `npx --shell-auto-fallback `. + +To install permanently, add the relevant line below to your `~/.bashrc`, `~/.zshrc`, `~/.config/fish/config.fish`, or as needed. To install just for the shell session, simply run the line. + +You can optionally pass through `--no-install` when generating the fallback to prevent it from installing packages if the command is missing. + +### For Bash: + +``` +$ source <(npx --shell-auto-fallback bash) +``` + +### For Zsh: + +``` +$ source <(npx --shell-auto-fallback zsh) +``` + +### For Fish: + +``` +$ source (npx --shell-auto-fallback fish | psub) +``` + +## ACKNOWLEDGEMENTS + +Huge thanks to [Kwyn Meagher](https://blog.kwyn.io) for generously donating the package name in the main npm registry. Previously `npx` was used for a Tessel board Neopixels library, which can now be found under [`npx-tessel`](https://npm.im/npx-tessel). + +## AUTHOR + +Written by [Kat Marchan](https://github.com/zkat). + +## REPORTING BUGS + +Please file any relevant issues [on Github.](https://github.com/zkat/npx) + +## LICENSE + +This work is released by its authors into the public domain under CC0-1.0. See `LICENSE.md` for details. + +## SEE ALSO + +* `npm(1)` +* `npm-run-script(1)` +* `npm-config(7)` diff --git a/node_modules/libnpx/auto-fallback.js b/node_modules/libnpx/auto-fallback.js new file mode 100644 index 0000000000000..3f26451597495 --- /dev/null +++ b/node_modules/libnpx/auto-fallback.js @@ -0,0 +1,61 @@ +'use strict' + +const Y = require('./y.js') + +function mkPosix (opts) { + return ` +command_not_found_${opts.isBash ? 'handle' : 'handler'}() { + # Do not run within a pipe + if test ! -t 1; then + >&2 echo "${Y`command not found: ${'$1'}`}" + return 127 + fi + echo "${Y`${'$1'} not found. Trying with npx...`}" >&2 + if ! [[ $1 =~ @ ]]; then + npx --no-install "$@" + else + npx "$@" + fi + return $? +}` +} + +function mkFish (opts) { + return ` +function __fish_command_not_found_on_interactive --on-event fish_prompt + functions --erase __fish_command_not_found_handler + functions --erase __fish_command_not_found_setup + + function __fish_command_not_found_handler --on-event fish_command_not_found + echo "${Y`${'$argv[1]'} not found. Trying with npx...`}" >&2 + if string match -q -r @ $argv[1] + npx $argv + else + npx --no-install $argv + end + end + + functions --erase __fish_command_not_found_on_interactive +end` +} + +module.exports = autoFallback +function autoFallback (shell, fromEnv, opts) { + if (shell.includes('bash')) { + return mkPosix({isBash: true, install: opts.install}) + } + + if (shell.includes('zsh')) { + return mkPosix({isBash: false, install: opts.install}) + } + + if (shell.includes('fish')) { + return mkFish(opts) + } + + if (fromEnv) { + return autoFallback(fromEnv, null, opts) + } + + console.error(Y`Only Bash, Zsh, and Fish shells are supported :(`) +} diff --git a/node_modules/libnpx/child.js b/node_modules/libnpx/child.js new file mode 100644 index 0000000000000..c2aa53e16fcfe --- /dev/null +++ b/node_modules/libnpx/child.js @@ -0,0 +1,84 @@ +'use strict' + +const cp = require('child_process') +const path = require('path') + +module.exports.runCommand = runCommand +function runCommand (command, opts) { + const cmd = opts.call || command || opts.command + const copts = (opts.call ? [] : opts.cmdOpts) || [] + return spawn(cmd, copts, { + shell: opts.shell || !!opts.call, + stdio: opts.stdio || 'inherit' + }).catch(err => { + if (err.code === 'ENOENT') { + err = new Error( + `npx: ${ + require('./y.js')`command not found: ${path.basename(cmd)}` + }` + ) + err.exitCode = 127 + } else { + err.message = require('./y.js')`Command failed: ${cmd} ${err.message}` + } + throw err + }) +} + +module.exports.spawn = spawn +function spawn (cmd, args, opts) { + return new Promise((resolve, reject) => { + const child = cp.spawn(cmd, args, opts) + let stdout = '' + let stderr = '' + child.stdout && child.stdout.on('data', d => { stdout += d }) + child.stderr && child.stderr.on('data', d => { stderr += d }) + child.on('error', reject) + child.on('close', code => { + if (code) { + const err = new Error( + require('./y.js')`Command failed: ${cmd} ${args.join(' ')}` + ) + err.isOperational = true + err.stderr = stderr + err.exitCode = code + reject(err) + } else { + resolve({code, stdout, stderr}) + } + }) + }) +} + +module.exports.exec = exec +function exec (cmd, args, opts) { + opts = opts || {} + return new Promise((resolve, reject) => { + cp.exec(`${escapeArg(cmd, true)} ${ + args.join(' ') + }`, opts, (err, stdout) => { + if (err) { + if (typeof err.code === 'number') { + err.exitCode = err.code + } + reject(err) + } else { + resolve(stdout) + } + }) + }) +} + +module.exports.escapeArg = escapeArg +function escapeArg (str, asPath) { + return process.platform === 'win32' && asPath + ? path.normalize(str) + .split(/\\/) + .map(s => s.match(/\s+/) ? `"${s}"` : s) + .join('\\') + : process.platform === 'win32' + ? `"${str}"` + : str.match(/[^-_.~/\w]/) + ? `'${str.replace(/'/g, "'\"'\"'")}'` + : str +} diff --git a/node_modules/libnpx/get-prefix.js b/node_modules/libnpx/get-prefix.js new file mode 100644 index 0000000000000..71bedffc580c8 --- /dev/null +++ b/node_modules/libnpx/get-prefix.js @@ -0,0 +1,54 @@ +'use strict' + +const promisify = require('./util.js').promisify + +const path = require('path') +const statAsync = promisify(require('fs').stat) + +module.exports = getPrefix +function getPrefix (current, root) { + if (!root) { + const original = root = path.resolve(current) + while (path.basename(root) === 'node_modules') { + root = path.dirname(root) + } + if (original !== root) { + return Promise.resolve(root) + } else { + return getPrefix(root, root) + } + } + if (isRootPath(current, process.platform)) { + return Promise.resolve(root) + } else { + return Promise.all([ + fileExists(path.join(current, 'package.json')), + fileExists(path.join(current, 'node_modules')) + ]).then(args => { + const hasPkg = args[0] + const hasModules = args[1] + if (hasPkg || hasModules) { + return current + } else { + const parent = path.dirname(current) + return getPrefix(parent, root) + } + }) + } +} + +module.exports._fileExists = fileExists +function fileExists (f) { + return statAsync(f).catch(err => { + if (err.code !== 'ENOENT') { + throw err + } + }) +} + +module.exports._isRootPath = isRootPath +function isRootPath (p, platform) { + return platform === 'win32' + ? p.match(/^[a-z]+:[/\\]?$/i) + : p === '/' +} diff --git a/node_modules/libnpx/index.js b/node_modules/libnpx/index.js new file mode 100755 index 0000000000000..eac218a1d86ce --- /dev/null +++ b/node_modules/libnpx/index.js @@ -0,0 +1,277 @@ +'use strict' + +const Buffer = require('safe-buffer').Buffer +const promisify = require('./util.js').promisify + +const child = require('./child') +const fs = require('fs') +const parseArgs = require('./parse-args.js') +const path = require('path') +const which = promisify(require('which')) + +const PATH_SEP = process.platform === 'win32' ? ';' : ':' + +module.exports = npx +module.exports.parseArgs = parseArgs +function npx (argv) { + const shell = argv['shell-auto-fallback'] + if (shell || shell === '') { + const fallback = require('./auto-fallback.js')( + shell, process.env.SHELL, argv + ) + if (fallback) { + return console.log(fallback) + } else { + process.exitCode = 1 + return + } + } + + if (!argv.call && (!argv.command || !argv.package)) { + !argv.q && console.error(Y()`\nERROR: You must supply a command.\n`) + !argv.q && parseArgs.showHelp() + process.exitCode = 1 + return + } + + const startTime = Date.now() + + // First, we look to see if we're inside an npm project, and grab its + // bin path. This is exactly the same as running `$ npm bin`. + return localBinPath(process.cwd()).then(local => { + if (local) { + // Local project paths take priority. Go ahead and prepend it. + process.env.PATH = `${local}${PATH_SEP}${process.env.PATH}` + } + return Promise.all([ + // Figuring out if a command exists, early on, lets us maybe + // short-circuit a few things later. This bit here primarily benefits + // calls like `$ npx foo`, where we might just be trying to invoke + // a single command and use whatever is already in the path. + argv.command && getExistingPath(argv.command, argv), + // The `-c` flag involves special behavior when used: in this case, + // we take a bit of extra time to pick up npm's full lifecycle script + // environment (so you can use `$npm_package_xxxxx` and company). + // Without that flag, we just use the current env. + argv.call && getEnv(argv) + ]).then(args => { + const existing = args[0] + const newEnv = args[1] + if (newEnv) { + // NOTE - we don't need to manipulate PATH further here, because + // npm has already done so. And even added the node-gyp path! + process.env = newEnv + } + if ((!existing && !argv.call) || argv.packageRequested) { + // We only fire off the updateNotifier if we're installing things + require('update-notifier')({pkg: require('./package.json')}).notify() + // Some npm packages need to be installed. Let's install them! + return ensurePackages(argv.package, argv).then(results => { + if (results && results.added && results.updated && !argv.q) { + console.error(Y()`npx: installed ${ + results.added.length + results.updated.length + } in ${(Date.now() - startTime) / 1000}s`) + } + if ( + argv.command && + !existing && + !argv.packageRequested && + argv.package.length === 1 + ) { + return promisify(fs.readdir)(results.bin).then(bins => { + const cmd = new RegExp(`^${argv.command}(?:\\.cmd)?$`, 'i') + const matching = bins.find(b => b.match(cmd)) + return path.resolve(results.bin, bins[matching] || bins[0]) + }) + } else { + return existing + } + }) + } else { + // We can skip any extra installation, 'cause everything exists. + return existing + } + }).then(existing => { + return execCommand(existing, argv) + }).catch(err => { + !argv.q && console.error(err.message) + process.exitCode = err.exitCode || 1 + }) + }) +} + +module.exports._localBinPath = localBinPath +function localBinPath (cwd) { + return require('./get-prefix.js')(cwd).then(prefix => { + return path.join(prefix, 'node_modules', '.bin') + }) +} + +module.exports._getEnv = getEnv +function getEnv (opts) { + return child.exec(opts.npm, [ + 'run', 'env', '--parseable' + ]).then(require('dotenv').parse) +} + +module.exports._ensurePackages = ensurePackages +function ensurePackages (specs, opts) { + return ( + opts.cache ? Promise.resolve(opts.cache) : getNpmCache(opts) + ).then(cache => { + const prefix = path.join(cache, '_npx') + const bins = process.platform === 'win32' + ? prefix + : path.join(prefix, 'bin') + return promisify(require('rimraf'))(bins).then(() => { + return installPackages(specs, prefix, opts) + }).then(info => { + // This will make temp bins _higher priority_ than even local bins. + // This is intentional, since npx assumes that if you went through + // the trouble of doing `-p`, you're rather have that one. Right? ;) + process.env.PATH = `${bins}${PATH_SEP}${process.env.PATH}` + if (!info) { info = {} } + info.prefix = prefix + info.bin = bins + return info + }) + }) +} + +module.exports._getExistingPath = getExistingPath +function getExistingPath (command, opts) { + if (opts.isLocal) { + return Promise.resolve(command) + } else if ( + opts.cmdHadVersion || opts.packageRequested || opts.ignoreExisting + ) { + return Promise.resolve(false) + } else { + return which(command).catch(err => { + if (err.code === 'ENOENT') { + if (!opts.install) { + err.exitCode = 127 + throw err + } + } else { + throw err + } + }) + } +} + +module.exports._getNpmCache = getNpmCache +function getNpmCache (opts) { + return which(opts.npm).then(npmPath => { + const args = ['config', 'get', 'cache', '--parseable'] + if (opts.userconfig) { + args.push('--userconfig', child.escapeArg(opts.userconfig, true)) + } + return child.exec(npmPath, args) + }).then(cache => cache.trim()) +} + +module.exports._buildArgs = buildArgs +function buildArgs (specs, prefix, opts) { + const args = ['install'].concat(specs) + args.push('--global', '--prefix', prefix) + if (opts.cache) args.push('--cache', opts.cache) + if (opts.userconfig) args.push('--userconfig', opts.userconfig) + args.push('--loglevel', 'error', '--json') + + return args +} + +module.exports._installPackages = installPackages +function installPackages (specs, prefix, opts) { + const args = buildArgs(specs, prefix, opts) + return which(opts.npm).then(npmPath => { + return child.spawn(npmPath, args, { + stdio: [0, 'pipe', opts.q ? 'ignore' : 2] + }).then(deets => { + try { + return deets.stdout ? JSON.parse(deets.stdout) : null + } catch (e) { } + }, err => { + if (err.exitCode) { + err.message = Y()`Install for ${specs} failed with code ${err.exitCode}` + } + throw err + }) + }) +} + +module.exports._execCommand = execCommand +function execCommand (_existing, argv) { + return findNodeScript(_existing, argv).then(existing => { + const Module = require('module') + if (existing && Module.runMain && !argv.shell && existing !== __filename) { + // let it take over the process. This means we can skip node startup! + if (!argv.noYargs) { + // blow away built-up yargs crud + require('yargs').reset() + } + process.argv = [ + process.argv[0], // Current node binary + existing // node script path. `runMain()` will set this as the new main + ].concat(argv.cmdOpts) // options for the cmd itself + Module.runMain() // ✨MAGIC✨. Sorry-not-sorry + } else { + return child.runCommand(existing, argv).catch(err => { + if (err.isOperational && err.exitCode) { + // At this point, we want to treat errors from the child as if + // we were just running the command. That means no extra msg logging + process.exitCode = err.exitCode + } else { + // But if it's not just a regular child-level error, blow up normally + throw err + } + }) + } + }) +} + +module.exports._findNodeScript = findNodeScript +function findNodeScript (existing, opts) { + if (!existing) { + return Promise.resolve(false) + } else { + return promisify(fs.stat)(existing).then(stat => { + if (opts && opts.isLocal && path.extname(existing) === '.js') { + return existing + } else if (opts && opts.isLocal && stat.isDirectory()) { + // npx will execute the directory itself + try { + const pkg = require(path.resolve(existing, 'package.json')) + const target = path.resolve(existing, pkg.bin || pkg.main || 'index.js') + return findNodeScript(target, opts).then(script => { + if (script) { + return script + } else { + throw new Error(Y()`command not found: ${target}`) + } + }) + } catch (e) { + throw new Error(Y()`command not found: ${existing}`) + } + } else if (process.platform !== 'win32') { + const line = '#!/usr/bin/env node\n' + const bytecount = line.length + const buf = Buffer.alloc(bytecount) + return promisify(fs.open)(existing, 'r').then(fd => { + return promisify(fs.read)(fd, buf, 0, bytecount, 0).then(() => { + return promisify(fs.close)(fd) + }, err => { + return promisify(fs.close)(fd).then(() => { throw err }) + }) + }).then(() => { + return buf.toString('utf8') === line && existing + }) + } + }) + } +} + +function Y () { + return require('./y.js') +} diff --git a/node_modules/libnpx/libnpx.1 b/node_modules/libnpx/libnpx.1 new file mode 100644 index 0000000000000..7925d816ff25f --- /dev/null +++ b/node_modules/libnpx/libnpx.1 @@ -0,0 +1,158 @@ +.TH "NPX" "1" "July 2017" "libnpx@9.0.2" "User Commands" +.SH "NAME" +\fBnpx\fR \- execute npm package binaries +.SH SYNOPSIS +.P +\fBnpx [options] [@version] [command\-arg]\.\.\.\fP +.P +\fBnpx [options] [\-p|\-\-package ]\.\.\. [command\-arg]\.\.\.\fP +.P +\fBnpx [options] \-c ''\fP +.P +\fBnpx \-\-shell\-auto\-fallback [shell]\fP +.SH INSTALL +.P +\fBnpm install \-g npx\fP +.SH DESCRIPTION +.P +Executes \fB\fP either from a local \fBnode_modules/\.bin\fP, or from a central cache, installing any packages needed in order for \fB\fP to run\. +.P +By default, \fBnpx\fP will check whether \fB\fP exists in \fB$PATH\fP, or in the local project binaries, and execute that\. If \fB\fP is not found, it will be installed prior to execution\. +.P +Unless a \fB\-\-package\fP option is specified, \fBnpx\fP will try to guess the name of the binary to invoke depending on the specifier provided\. All package specifiers understood by \fBnpm\fP may be used with \fBnpx\fP, including git specifiers, remote tarballs, local directories, or scoped packages\. +.P +If a full specifier is included, or if \fB\-\-package\fP is used, npx will always use a freshly\-installed, temporary version of the package\. This can also be forced with the \fB\-\-ignore\-existing\fP flag\. +.RS 0 +.IP \(bu 2 +\fB\-p, \-\-package \fP \- define the package to be installed\. This defaults to the value of \fB\fP\|\. This is only needed for packages with multiple binaries if you want to call one of the other executables, or where the binary name does not match the package name\. If this option is provided \fB\fP will be executed as\-is, without interpreting \fB@version\fP if it's there\. Multiple \fB\-\-package\fP options may be provided, and all the packages specified will be installed\. +.IP \(bu 2 +\fB\-\-no\-install\fP \- If passed to \fBnpx\fP, it will only try to run \fB\fP if it already exists in the current path or in \fB$prefix/node_modules/\.bin\fP\|\. It won't try to install missing commands\. +.IP \(bu 2 +\fB\-\-cache \fP \- set the location of the npm cache\. Defaults to npm's own cache settings\. +.IP \(bu 2 +\fB\-\-userconfig \fP \- path to the user configuration file to pass to npm\. Defaults to whatever npm's current default is\. +.IP \(bu 2 +\fB\-c \fP \- Execute \fB\fP inside an \fBnpm run\-script\fP\-like shell environment, with all the usual environment variables available\. Only the first item in \fB\fP will be automatically used as \fB\fP\|\. Any others \fImust\fR use \fB\-p\fP\|\. +.IP \(bu 2 +\fB\-\-shell \fP \- The shell to invoke the command with, if any\. +.IP \(bu 2 +\fB\-\-shell\-auto\-fallback []\fP \- Generates shell code to override your shell's "command not found" handler with one that calls \fBnpx\fP\|\. Tries to figure out your shell, or you can pass its name (either \fBbash\fP, \fBfish\fP, or \fBzsh\fP) as an option\. See below for how to install\. +.IP \(bu 2 +\fB\-\-ignore\-existing\fP \- If this flag is set, npx will not look in \fB$PATH\fP, or in the current package's \fBnode_modules/\.bin\fP for an existing version before deciding whether to install\. Binaries in those paths will still be available for execution, but will be shadowed by any packages requested by this install\. +.IP \(bu 2 +\fB\-q, \-\-quiet\fP \- Suppressed any output from npx itself (progress bars, error messages, install reports)\. Subcommand output itself will not be silenced\. +.IP \(bu 2 +\fB\-v, \-\-version\fP \- Show the current npx version\. + +.RE +.SH EXAMPLES +.SS Running a project\-local bin +.P +.RS 2 +.nf +$ npm i \-D webpack +$ npx webpack \.\.\. +.fi +.RE +.SS One\-off invocation without local installation +.P +.RS 2 +.nf +$ npm rm webpack +$ npx webpack \-\- \.\.\. +$ cat package\.json +\|\.\.\.webpack not in "devDependencies"\.\.\. +.fi +.RE +.SS Invoking a command from a github repository +.P +.RS 2 +.nf +$ npx github:piuccio/cowsay +\|\.\.\.or\.\.\. +$ npx git+ssh://my\.hosted\.git:cowsay\.git#semver:^1 +\|\.\.\.etc\.\.\. +.fi +.RE +.SS Execute a full shell command using one npx call w/ multiple packages +.P +.RS 2 +.nf +$ npx \-p lolcatjs \-p cowsay \-c \\ + 'echo "$npm_package_name@$npm_package_version" | cowsay | lolcatjs' +\|\.\.\. + _____ +< your\-cool\-package@1\.2\.3 > + \-\-\-\-\- + \\ ^__^ + \\ (oo)\\_______ + (__)\\ )\\/\\ + ||\-\-\-\-w | + || || +.fi +.RE +.SH SHELL AUTO FALLBACK +.P +You can configure \fBnpx\fP to run as your default fallback command when you type something in the command line with an \fB@\fP but the command is not found\. This includes installing packages that were not found in the local prefix either\. +.P +For example: +.P +.RS 2 +.nf +$ npm@4 \-\-version +(stderr) npm@4 not found\. Trying with npx\.\.\. +4\.6\.1 +$ asdfasdfasf +zsh: command not found: asfdasdfasdf +.fi +.RE +.P +Currently, \fBzsh\fP, \fBbash\fP, and \fBfish\fP are supported\. You can access these completion scripts using \fBnpx \-\-shell\-auto\-fallback \fP\|\. +.P +To install permanently, add the relevant line below to your \fB~/\.bashrc\fP, \fB~/\.zshrc\fP, \fB~/\.config/fish/config\.fish\fP, or as needed\. To install just for the shell session, simply run the line\. +.P +You can optionally pass through \fB\-\-no\-install\fP when generating the fallback to prevent it from installing packages if the command is missing\. +.SS For Bash: +.P +.RS 2 +.nf +$ source <(npx \-\-shell\-auto\-fallback bash) +.fi +.RE +.SS For Zsh: +.P +.RS 2 +.nf +$ source <(npx \-\-shell\-auto\-fallback zsh) +.fi +.RE +.SS For Fish: +.P +.RS 2 +.nf +$ source (npx \-\-shell\-auto\-fallback fish | psub) +.fi +.RE +.SH ACKNOWLEDGEMENTS +.P +Huge thanks to Kwyn Meagher \fIhttps://blog\.kwyn\.io\fR for generously donating the package name in the main npm registry\. Previously \fBnpx\fP was used for a Tessel board Neopixels library, which can now be found under \fBnpx\-tessel\fP \fIhttps://npm\.im/npx\-tessel\fR\|\. +.SH AUTHOR +.P +Written by Kat Marchan \fIhttps://github\.com/zkat\fR\|\. +.SH REPORTING BUGS +.P +Please file any relevant issues on Github\. \fIhttps://github\.com/zkat/npx\fR +.SH LICENSE +.P +This work is released by its authors into the public domain under CC0\-1\.0\. See \fBLICENSE\.md\fP for details\. +.SH SEE ALSO +.RS 0 +.IP \(bu 2 +\fBnpm(1)\fP +.IP \(bu 2 +\fBnpm\-run\-script(1)\fP +.IP \(bu 2 +\fBnpm\-config(7)\fP + +.RE + diff --git a/node_modules/libnpx/locales/ca.json b/node_modules/libnpx/locales/ca.json new file mode 100644 index 0000000000000..045ccbfd7d1b6 --- /dev/null +++ b/node_modules/libnpx/locales/ca.json @@ -0,0 +1,28 @@ +{ + "Execute binaries from npm packages.\n%s": "Executa comandas de paquets de npm.\n%s", + "Package to be installed.": "Paquet per a instal·lar.", + "Location of the npm cache.": "Ruta de la memòria cau de npm.", + "Skip installation if a package is missing.": "Salta el pas d'instal·lació si el paquet no està present.", + "Path to user npmrc.": "Ruta al npmrc de l'usuari.", + "Execute string as if inside `npm run-script`.": "Executa l'argument com si estigués dins de `npm run-script`.", + "Shell to execute the command with, if any.": "Shell amb el qual s'executarà la comanda, si algun.", + "Generate shell code to use npx as the \"command not found\" fallback.": "Genera codi de shell per utilizar npx com el replegament quan la comanda no existeix.", + "Ignores existing binaries in $PATH, or in the local project. This forces npx to do a temporary install and use the latest version.": "Ignora comandaments en $PATH, o en el projecte local. Això obliga a npx a fer una instal·lació contemporània i usar la versió més recent de la comanda.", + "npm binary to use for internal operations.": "Comando d'npm que es farà servir per a operacions internes de npx.", + "For the full documentation, see the manual page for npx(1).": "Per documentació completa, vegeu la pàgina del manual npx(1).", + "Unable to guess a binary name from %s. Please use --package.": "No s'ha pogut endevinar el nom de la comanda usant %s. Si us plau utilitza --package.", + "\nERROR: You must supply a command.\n": "\nERROR: Has proveir una comanda.\n", + "Command failed: %s %s": "La comanda va fracasar: %s %s", + "Install for %s failed with code %s": "instal·lació de %s fracassar amb codi %s", + "%s not found. Trying with npx...": "%s no existeix. Tractant amb npx...", + "command not found: %s": "comanda no existeix: %s", + "options": "opcions", + "command": "comanda", + "version": "versió", + "command-arg": "argument-de-comanda", + "command-string": "text-de-comanda", + "shell": "shell", + "package": "paquete", + "npx: installed %s in %ss": "npx: instal·lat %s en %ss", + "Suppress output from npx itself. Subcommands will not be affected.": "Suprimir producció de npx. Sub-comandas no seran afectats." +} diff --git a/node_modules/libnpx/locales/de.json b/node_modules/libnpx/locales/de.json new file mode 100644 index 0000000000000..985165c05681e --- /dev/null +++ b/node_modules/libnpx/locales/de.json @@ -0,0 +1,19 @@ +{ + "Execute binaries from npm packages.\n%s": "Führt Programme aus, die von npm Paketen bereitgestellt werden.\n%s", + "Package to be installed.": "Das zu installierende Paket.", + "Location of the npm cache.": "Ort des npm Zwischenspeichers.", + "Skip installation if a package is missing.": "Überspringe die Installation falls ein Paket fehlt.", + "Path to user npmrc.": "Pfad zur Benutzer_innen npmrc.", + "Execute string as if inside `npm run-script`.": "Führe Zeichenkette aus, als wäre sie innerhalb von `npm run-script`.", + "Shell to execute the command with, if any.": "Shell mit der Programme ausgeführt werden soll, wenn überhaupt.", + "Generate shell code to use npx as the \"command not found\" fallback.": "Erzeuge Shellcode um npx als Alternative zu \"Programm konnte nicht gefunden werden\" zu benutzen.", + "Ignores existing binaries in $PATH, or in the local project. This forces npx to do a temporary install and use the latest version.": "Ignoriere bestehende Programme innerhalb von $PATH, oder im lokalen Projekt. Dies zwingt npx dazu die neuste Version herunterzuladen und zu benutzen.", + "npm binary to use for internal operations.": "npm-Programm für die interne Benutzung.", + "For the full documentation, see the manual page for npx(1).": "In der Manpage npx(1) ist die gesammte Dokumentation einzusehen.", + "Unable to guess a binary name from %s. Please use --package.": "Der Programmname von %s kann nicht automatisch ermittelt werden. Bitte benutze --package.", + "\nERROR: You must supply a command.\n": "\nFEHLER: Du musst einen Befehl angeben.\n", + "Command failed: %s %s": "Befehl fehlgeschlagen: %s %s", + "Install for %s failed with code %s": "Die Installation von %s ist mit dem Code %s fehlgeschlagen", + "%s not found. Trying with npx...": "%s konnte nicht gefunden werden. Versuche mit npx...", + "command not found: %s": "Programm konnte nicht gefunden werden: %s" +} diff --git a/node_modules/libnpx/locales/en.json b/node_modules/libnpx/locales/en.json new file mode 100644 index 0000000000000..4b10e1e69707b --- /dev/null +++ b/node_modules/libnpx/locales/en.json @@ -0,0 +1,28 @@ +{ + "Execute binaries from npm packages.\n%s": "Execute binaries from npm packages.\n%s", + "Package to be installed.": "Package to be installed.", + "Location of the npm cache.": "Location of the npm cache.", + "Skip installation if a package is missing.": "Skip installation if a package is missing.", + "Path to user npmrc.": "Path to user npmrc.", + "Execute string as if inside `npm run-script`.": "Execute string as if inside `npm run-script`.", + "Shell to execute the command with, if any.": "Shell to execute the command with, if any.", + "Generate shell code to use npx as the \"command not found\" fallback.": "Generate shell code to use npx as the \"command not found\" fallback.", + "Ignores existing binaries in $PATH, or in the local project. This forces npx to do a temporary install and use the latest version.": "Ignores existing binaries in $PATH, or in the local project. This forces npx to do a temporary install and use the latest version.", + "npm binary to use for internal operations.": "npm binary to use for internal operations.", + "For the full documentation, see the manual page for npx(1).": "For the full documentation, see the manual page for npx(1).", + "Unable to guess a binary name from %s. Please use --package.": "Unable to guess a binary name from %s. Please use --package.", + "\nERROR: You must supply a command.\n": "\nERROR: You must supply a command.\n", + "Command failed: %s %s": "Command failed: %s %s", + "Install for %s failed with code %s": "Install for %s failed with code %s", + "%s not found. Trying with npx...": "%s not found. Trying with npx...", + "command not found: %s": "command not found: %s", + "options": "options", + "command": "command", + "version": "version", + "command-arg": "command-arg", + "command-string": "command-string", + "shell": "shell", + "package": "package", + "npx: installed %s in %ss": "npx: installed %s in %ss", + "Suppress output from npx itself. Subcommands will not be affected.": "Suppress output from npx itself. Subcommands will not be affected." +} \ No newline at end of file diff --git a/node_modules/libnpx/locales/es.json b/node_modules/libnpx/locales/es.json new file mode 100644 index 0000000000000..c89bceeb20b79 --- /dev/null +++ b/node_modules/libnpx/locales/es.json @@ -0,0 +1,28 @@ +{ + "Execute binaries from npm packages.\n%s": "Ejecuta comandos de paquetes de npm.\n%s", + "Package to be installed.": "Paquete para instalar.", + "Location of the npm cache.": "Ruta del cache de npm.", + "Skip installation if a package is missing.": "Salta el paso de instalación si el paquete no está presente.", + "Path to user npmrc.": "Ruta al npmrc del usuario.", + "Execute string as if inside `npm run-script`.": "Ejecuta el argumento como si estuviera dentro de `npm run-script`.", + "Shell to execute the command with, if any.": "Shell con el que se ejecutará el comando, si alguno.", + "Generate shell code to use npx as the \"command not found\" fallback.": "Genera código de shell para usar npx como el repliegue cuando el comando no existe.", + "Ignores existing binaries in $PATH, or in the local project. This forces npx to do a temporary install and use the latest version.": "Ignora comandos en $PATH, o en el proyecto local. Esto obliga a npx a hacer una instalación temporanea y usar la version más reciente del comando.", + "npm binary to use for internal operations.": "Comando de npm que se usará para operaciones internas de npx.", + "For the full documentation, see the manual page for npx(1).": "Para documentación completa, véase la pagina del manual npx(1).", + "Unable to guess a binary name from %s. Please use --package.": "No se pudo adivinar el nombre del comando usando %s. Por favor usa --package.", + "\nERROR: You must supply a command.\n": "\nERROR: Debes proveer un comando.\n", + "Command failed: %s %s": "Comando fracasó: %s %s", + "Install for %s failed with code %s": "La instalación de %s fracasó con código %s", + "%s not found. Trying with npx...": "%s no existe. Tratando con npx...", + "command not found: %s": "comando no existe: %s", + "options": "opciones", + "command": "comando", + "version": "versión", + "command-arg": "argumento-de-comando", + "command-string": "texto-de-comando", + "shell": "shell", + "package": "paquete", + "npx: installed %s in %ss": "npx: instaló %s en %ss", + "Suppress output from npx itself. Subcommands will not be affected.": "Suprimir producción de npx. Sub-comandos no serán afectados." +} diff --git a/node_modules/libnpx/locales/fr.json b/node_modules/libnpx/locales/fr.json new file mode 100644 index 0000000000000..95d8ae5c97af5 --- /dev/null +++ b/node_modules/libnpx/locales/fr.json @@ -0,0 +1,29 @@ +{ + "Execute binaries from npm packages.\n%s": "Exécutez des binaires à partir de paquets de npm.\n%s", + "Package to be installed.": "Paquet à installer.", + "Location of the npm cache.": "Endroit où est situé le cache de npm.", + "Skip installation if a package is missing.": "Sauter l'installation si un paquet est manquant.", + "Path to user npmrc.": "Chemin du npmrc de l'utilisateur(-trice).", + "Execute string as if inside `npm run-script`.": "Exécuter la chaine de caractère comme avec `npm run-script`.", + "Shell to execute the command with, if any.": "Shell a utiliser pour exécuter la commande, s'il y en a un.", + "Generate shell code to use npx as the \"command not found\" fallback.": "Générer le code du shell pour utiliser npx comme solution de rechange à \"command not found\"", + "Ignores existing binaries in $PATH, or in the local project. This forces npx to do a temporary install and use the latest version.": "Ignorer les binaires dans le $PATH ou dans le projet local. Cela force npm à faire une installation temporaire et utiliser la dernière version.", + "npm binary to use for internal operations.": "Binaire de npm a utiliser pour les opérations internes.", + "For the full documentation, see the manual page for npx(1).": "Pour la documentation complète, regarder la page du manuel pour npx(1).", + "Unable to guess a binary name from %s. Please use --package.": "Impossible de deviner le nom du binaire de %s, utilisez --Package s'il vous plaît.", + "\nERROR: You must supply a command.\n": "\nERROR: Vous devez fournir une commande.\n", + "Command failed: %s %s": "La commande a échoué: %s %s", + "Install for %s failed with code %s": "L'installation de %s a échoué avec le code %s", + "%s not found. Trying with npx...": "%s n'a pas été trouvé. Essai avec npx...", + "command not found: %s": "Commande non trouvée: %s", + "options": "options", + "command": "commande", + "version": "version", + "command-arg": "arguments-de-la-commande", + "command-string": "chaine-de-caractères-de-la-commande", + "shell": "shell", + "package": "paquet", + "npx: installed %s in %ss": "npx: a installé %s dans %ss", + "Suppress output from npx itself. Subcommands will not be affected.": "Supprimer les sorties générées par npx. Les sous-commandes ne seront pas affectées." +} + diff --git a/node_modules/libnpx/locales/ja.json b/node_modules/libnpx/locales/ja.json new file mode 100644 index 0000000000000..e575edabedfc1 --- /dev/null +++ b/node_modules/libnpx/locales/ja.json @@ -0,0 +1,28 @@ +{ + "Execute binaries from npm packages.\n%s": "npmパッケージのバイナリを実行します。", + "Package to be installed.": "インストールするパッケージ。", + "Location of the npm cache.": "npmのキャッシュへのパス。", + "Skip installation if a package is missing.": "パッケージがない場合は、インストールをスキップします。", + "Path to user npmrc.": "ユーザーのnpmrcへのパス。", + "Execute string as if inside `npm run-script`.": "「npm run-script」の内部にあるかのように文字列を実行します。", + "Shell to execute the command with, if any.": "コマンドを実行するシェル(存在する場合)。", + "Generate shell code to use npx as the \"command not found\" fallback.": "\"コマンドが見つかりません\" フォールバックとして使用するコードを生成します。", + "Ignores existing binaries in $PATH, or in the local project. This forces npx to do a temporary install and use the latest version.": "$PATH、または既存のローカルプロジェクトのバイナリを無視します。 これにより、npxは一時的にインストールを行い、最新バージョンを使用します。", + "npm binary to use for internal operations.": "npmのバイナリを内部操作に使用します。", + "For the full documentation, see the manual page for npx(1).": "詳しくは、npx(1)のマニュアルページを参照してください。", + "Unable to guess a binary name from %s. Please use --package.": "%sからバイナリ名を推測できません。 --packageを使用してください。", + "\nERROR: You must supply a command.\n": "\nエラー: コマンドを入力する必要があります。\n", + "Command failed: %s %s": "コマンドが失敗しました: %s %s", + "Install for %s failed with code %s": "コード%sで%sのインストールに失敗しました", + "%s not found. Trying with npx...": "%sが見つかりません。 npxで試してみて...", + "command not found: %s": "コマンドが見つかりません: %s", + "options": "オプション", + "command": "コマンド", + "version": "バージョン", + "command-arg": "コマンドの引数", + "command-string": "コマンドの文字列", + "shell": "シェル", + "package": "パッケージ", + "npx: installed %s in %ss": "npx: %s個のパッケージを%s秒でインストールしました。", + "Suppress output from npx itself. Subcommands will not be affected.": "npx自体の標準出力を抑止します。 サブコマンドは影響を受けません。" +} diff --git a/node_modules/libnpx/locales/pt_BR.json b/node_modules/libnpx/locales/pt_BR.json new file mode 100644 index 0000000000000..b44f4e0260061 --- /dev/null +++ b/node_modules/libnpx/locales/pt_BR.json @@ -0,0 +1,28 @@ +{ + "Execute binaries from npm packages.\n%s": "Executa comandos de módulos npm.\n%s", + "Package to be installed.": "Pacote para ser instalado.", + "Location of the npm cache.": "Localização da cache npm.", + "Skip installation if a package is missing.": "Pular instalação se um pacote está faltando.", + "Path to user npmrc.": "Localização do npmrc do usuário.", + "Execute string as if inside `npm run-script`.": "Executa string como se estivesse dentro de `npm run-script`.", + "Shell to execute the command with, if any.": "Terminal para executar o comando, se tiver.", + "Generate shell code to use npx as the \"command not found\" fallback.": "Gera código de terminal para usar npx no lugar quando comando não existir (\"command not found\").", + "Ignores existing binaries in $PATH, or in the local project. This forces npx to do a temporary install and use the latest version.": "Ignora comandos no $PATH ou no projeto atual. Isto obriga npx a fazer uma instalação temporária e usar a última versão.", + "npm binary to use for internal operations.": "Comando npm usado para operações internas.", + "For the full documentation, see the manual page for npx(1).": "Para documentação completa, veja a página do manual npx(1).", + "Unable to guess a binary name from %s. Please use --package.": "Não foi possível advinhar o nome do comando usando %s. Por favor, use --package.", + "\nERROR: You must supply a command.\n": "\nERRO: Você deve suprir um comando.\n", + "Command failed: %s %s": "Comando fracassou: %s %s", + "Install for %s failed with code %s": "Instalação de %s falhou com código %s", + "%s not found. Trying with npx...": "%s não existe. Tentando com npx...", + "command not found: %s": "comando não existe: %s", + "options": "opções", + "command": "comando", + "version": "versão", + "command-arg": "argumento-de-comando", + "command-string": "string-de-comando", + "shell": "terminal", + "package": "pacote", + "npx: installed %s in %ss": "npx: instalou %s em %ss", + "Suppress output from npx itself. Subcommands will not be affected.": "Omitir resultado de npx. Sub-comandos não serão afetados." +} diff --git a/node_modules/libnpx/locales/ro.json b/node_modules/libnpx/locales/ro.json new file mode 100644 index 0000000000000..9c865aa484340 --- /dev/null +++ b/node_modules/libnpx/locales/ro.json @@ -0,0 +1,28 @@ +{ + "Execute binaries from npm packages.\n%s": "Rulează executabilele binare din pachetele npm.\n%s", + "Package to be installed.": "Pachetul care va fi instalat.", + "Location of the npm cache.": "Locaţia cache-ului npm.", + "Skip installation if a package is missing.": "Sari peste instalare dacă lipsește un pachet.", + "Path to user npmrc.": "Calea către fișierul npmrc al utilizatorului.", + "Execute string as if inside `npm run-script`.": "Execută string-ul ca și cum ar fi rulat în `npm run-script`.", + "Shell to execute the command with, if any.": "Shell pentru a executa o comandă, dacă există.", + "Generate shell code to use npx as the \"command not found\" fallback.": "Generează cod shell pentru a folosi npx drept fallback pentru \"command not found\".", + "Ignores existing binaries in $PATH, or in the local project. This forces npx to do a temporary install and use the latest version.": "Ignoră executabilele binare din $PATH, sau din proiectul local. Aceasta forțează npx să instaleze și să folosească ultima versiune temporar.", + "npm binary to use for internal operations.": "Executabil binar npm pentru operaţiuni interne.", + "For the full documentation, see the manual page for npx(1).": "Pentru documentația completă, verifică manualul la pagina specifică pentru npx(1).", + "Unable to guess a binary name from %s. Please use --package.": "Imposibil de ghicit numele executabilului binar din %s. Vă rugăm să folosiți --package.", + "\nERROR: You must supply a command.\n": "\nEROARE: Trebuie precizată o comandă.\n", + "Command failed: %s %s": "Comanda a eșuat: %s %s", + "Install for %s failed with code %s": "Procesul de instalare pentru %s a dat greș cu codul de eroare %s", + "%s not found. Trying with npx...": "%s nu a fost găsită. Încercare cu npx...", + "command not found: %s": "comanda nu a fost găsită: %s", + "options": "opţiuni", + "command": "comandă", + "version": "versiune", + "command-arg": "comandă-argument", + "command-string": "comandă-string", + "shell": "shell", + "package": "pachet", + "npx: installed %s in %ss": "npx: instalat %s în %ss", + "Suppress output from npx itself. Subcommands will not be affected.": "Suprimă ieșirile din npx însăși. Subcomenzile nu vor fi afectate." +} diff --git a/node_modules/libnpx/locales/ru.json b/node_modules/libnpx/locales/ru.json new file mode 100644 index 0000000000000..3f431373c8b08 --- /dev/null +++ b/node_modules/libnpx/locales/ru.json @@ -0,0 +1,29 @@ +{ + "Execute binaries from npm packages.\n%s": "Выполняйте скрипты из npm пакетов.\n%s", + "Package to be installed.": "Пакет, который будет установлен.", + "Location of the npm cache.": "Расположение npm кеша.", + "Skip installation if a package is missing.": "Пропустить установку, если пакет отсутствует.", + "Path to user npmrc.": "Передать пользователя в nprc.", + "Execute string as if inside `npm run-script`.": "Выпонить скрипт как внутри `npm run-script`.", + "Shell to execute the command with, if any.": "Shell, чтобы выполнить команду, если необходимо.", + "Generate shell code to use npx as the \"command not found\" fallback.": "Создает код для shell, чтобы использовать npx при \"command not found\".", + "Ignores existing binaries in $PATH, or in the local project. This forces npx to do a temporary install and use the latest version.": "Игнорирует все существующие скрипты в $PATH или локальном проекте. Что заставляет npx использовать временную установку и использовать последние версии", + "npm binary to use for internal operations.": "npm файл для использования во внутренних операциях.", + "For the full documentation, see the manual page for npx(1).": "Полная документация доступна в мануале npx(1).", + "Unable to guess a binary name from %s. Please use --package.": "Невозможно угадать команду из %s. Пожалуйста, используйте --package.", + "\nERROR: You must supply a command.\n": "\nERROR: Нужно указать команду.\n", + "Command failed: %s %s": "Ошибка: %s %s", + "Install for %s failed with code %s": "Установка %s завершилась с кодом ошибки %s", + "%s not found. Trying with npx...": "%s не найдено. Пробуем с npx...", + "command not found: %s": "команда не найдена: %s", + "options": "опции", + "command": "команда", + "version": "версия", + "command-arg": "аргумент", + "command-string": "команда-строка", + "shell": "shell", + "package": "пакет", + "npx: installed %s in %ss": "npx: установлен %s в %ss", + "Suppress output from npx itself. Subcommands will not be affected.": "Отключить вывод npx. Поведение подкоманд не будет изменено." + +} diff --git a/node_modules/libnpx/locales/zh_CN.json b/node_modules/libnpx/locales/zh_CN.json new file mode 100644 index 0000000000000..6cf64629f16d3 --- /dev/null +++ b/node_modules/libnpx/locales/zh_CN.json @@ -0,0 +1,28 @@ +{ + "Execute binaries from npm packages.\n%s": "从 npm 的可执行包执行命令\n%s", + "Package to be installed.": "包安装的路径", + "Location of the npm cache.": "npm 缓存路径", + "Skip installation if a package is missing.": "如果有包缺失,跳过安装", + "Path to user npmrc.": "当前用户的 npmrc 路径", + "Execute string as if inside `npm run-script`.": "像执行 `npm run-script` 一样执行一个字符串", + "Shell to execute the command with, if any.": "执行命令用到的解释器,可选", + "Generate shell code to use npx as the \"command not found\" fallback.": "产生“找不到命令”的错误码", + "Ignores existing binaries in $PATH, or in the local project. This forces npx to do a temporary install and use the latest version.": "忽略 $PATH 或工程里已有的可执行文件,这会强制使 npx 临时安装一次,并且使用其最新的版本", + "npm binary to use for internal operations.": "为了执行内部操作的 npm 可执行文件", + "For the full documentation, see the manual page for npx(1).": "可以通过 npx(1) 的手册找到完整说明文档", + "Unable to guess a binary name from %s. Please use --package.": "无法推测出可执行文件名的来源 %s,请使用 --package", + "\nERROR: You must supply a command.\n": "\n错误:您必须提供一个命令\n", + "Command failed: %s %s": "执行失败:%s %s", + "Install for %s failed with code %s": "安装 %s 失败,错误代码:%s", + "%s not found. Trying with npx...": "找不到 %s,请尝试使用 npx...", + "command not found: %s": "找不到命令:%s", + "options": "选项", + "command": "命令", + "version": "版本", + "command-arg": "命令的参数", + "command-string": "命令的字符串", + "shell": "命令行解释器", + "package": "包", + "npx: installed %s in %ss": "npx: %s 安装成功,用时 %s 秒", + "Suppress output from npx itself. Subcommands will not be affected.": "隐藏 npx 的输出,子命令不会受到影响" +} diff --git a/node_modules/libnpx/node_modules/.bin/rc b/node_modules/libnpx/node_modules/.bin/rc new file mode 120000 index 0000000000000..a3f6fc7f1551b --- /dev/null +++ b/node_modules/libnpx/node_modules/.bin/rc @@ -0,0 +1 @@ +../rc/index.js \ No newline at end of file diff --git a/node_modules/libnpx/node_modules/.bin/rimraf b/node_modules/libnpx/node_modules/.bin/rimraf new file mode 120000 index 0000000000000..4cd49a49ddfc1 --- /dev/null +++ b/node_modules/libnpx/node_modules/.bin/rimraf @@ -0,0 +1 @@ +../rimraf/bin.js \ No newline at end of file diff --git a/node_modules/libnpx/node_modules/.bin/semver b/node_modules/libnpx/node_modules/.bin/semver new file mode 120000 index 0000000000000..317eb293d8e12 --- /dev/null +++ b/node_modules/libnpx/node_modules/.bin/semver @@ -0,0 +1 @@ +../semver/bin/semver \ No newline at end of file diff --git a/node_modules/libnpx/node_modules/.bin/which b/node_modules/libnpx/node_modules/.bin/which new file mode 120000 index 0000000000000..f62471c8511ba --- /dev/null +++ b/node_modules/libnpx/node_modules/.bin/which @@ -0,0 +1 @@ +../which/bin/which \ No newline at end of file diff --git a/node_modules/libnpx/node_modules/ansi-align/CHANGELOG.md b/node_modules/libnpx/node_modules/ansi-align/CHANGELOG.md new file mode 100644 index 0000000000000..621e50a9211a5 --- /dev/null +++ b/node_modules/libnpx/node_modules/ansi-align/CHANGELOG.md @@ -0,0 +1,36 @@ +# Change Log + +All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. + + +# [2.0.0](https://github.com/nexdrew/ansi-align/compare/v1.1.0...v2.0.0) (2017-05-01) + + +### Features + +* ES2015ify, dropping support for Node <4 ([#30](https://github.com/nexdrew/ansi-align/issues/30)) ([7b43f48](https://github.com/nexdrew/ansi-align/commit/7b43f48)) + + +### BREAKING CHANGES + +* Node 0.10 or 0.12 no longer supported, please update to Node 4+ or use ansi-align@1.1.0 + + + + +# [1.1.0](https://github.com/nexdrew/ansi-align/compare/v1.0.0...v1.1.0) (2016-06-06) + + +### Features + +* support left-alignment as no-op ([#3](https://github.com/nexdrew/ansi-align/issues/3)) ([e581db6](https://github.com/nexdrew/ansi-align/commit/e581db6)) + + + + +# 1.0.0 (2016-04-30) + + +### Features + +* initial commit ([1914d90](https://github.com/nexdrew/ansi-align/commit/1914d90)) diff --git a/node_modules/libnpx/node_modules/ansi-align/LICENSE b/node_modules/libnpx/node_modules/ansi-align/LICENSE new file mode 100644 index 0000000000000..ab601b657ea8c --- /dev/null +++ b/node_modules/libnpx/node_modules/ansi-align/LICENSE @@ -0,0 +1,13 @@ +Copyright (c) 2016, Contributors + +Permission to use, copy, modify, and/or distribute this software for any purpose +with or without fee is hereby granted, provided that the above copyright notice +and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS +OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER +TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF +THIS SOFTWARE. diff --git a/node_modules/libnpx/node_modules/ansi-align/README.md b/node_modules/libnpx/node_modules/ansi-align/README.md new file mode 100644 index 0000000000000..3aafc67f34195 --- /dev/null +++ b/node_modules/libnpx/node_modules/ansi-align/README.md @@ -0,0 +1,79 @@ +# ansi-align + +> align-text with ANSI support for CLIs + +[![Build Status](https://travis-ci.org/nexdrew/ansi-align.svg?branch=master)](https://travis-ci.org/nexdrew/ansi-align) +[![Coverage Status](https://coveralls.io/repos/github/nexdrew/ansi-align/badge.svg?branch=master)](https://coveralls.io/github/nexdrew/ansi-align?branch=master) +[![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg)](https://github.com/conventional-changelog/standard-version) + +Easily center- or right- align a block of text, carefully ignoring ANSI escape codes. + +E.g. turn this: + +ansi text block no alignment :( + +Into this: + +ansi text block center aligned! + +## Install + +```sh +npm install --save ansi-align +``` + +```js +var ansiAlign = require('ansi-align') +``` + +## API + +### `ansiAlign(text, [opts])` + +Align the given text per the line with the greatest [`string-width`](https://github.com/sindresorhus/string-width), returning a new string (or array). + +#### Arguments + +- `text`: required, string or array + + The text to align. If a string is given, it will be split using either the `opts.split` value or `'\n'` by default. If an array is given, a different array of modified strings will be returned. + +- `opts`: optional, object + + Options to change behavior, see below. + +#### Options + +- `opts.align`: string, default `'center'` + + The alignment mode. Use `'center'` for center-alignment, `'right'` for right-alignment, or `'left'` for left-alignment. Note that the given `text` is assumed to be left-aligned already, so specifying `align: 'left'` just returns the `text` as is (no-op). + +- `opts.split`: string or RegExp, default `'\n'` + + The separator to use when splitting the text. Only used if text is given as a string. + +- `opts.pad`: string, default `' '` + + The value used to left-pad (prepend to) lines of lesser width. Will be repeated as necessary to adjust alignment to the line with the greatest width. + +### `ansiAlign.center(text)` + +Alias for `ansiAlign(text, { align: 'center' })`. + +### `ansiAlign.right(text)` + +Alias for `ansiAlign(text, { align: 'right' })`. + +### `ansiAlign.left(text)` + +Alias for `ansiAlign(text, { align: 'left' })`, which is a no-op. + +## Similar Packages + +- [`center-align`](https://github.com/jonschlinkert/center-align): Very close to this package, except it doesn't support ANSI codes. +- [`left-pad`](https://github.com/camwest/left-pad): Great for left-padding but does not support center alignment or ANSI codes. +- Pretty much anything by the [chalk](https://github.com/chalk) team + +## License + +ISC © Contributors diff --git a/node_modules/libnpx/node_modules/ansi-align/index.js b/node_modules/libnpx/node_modules/ansi-align/index.js new file mode 100644 index 0000000000000..67fa826d06306 --- /dev/null +++ b/node_modules/libnpx/node_modules/ansi-align/index.js @@ -0,0 +1,61 @@ +'use strict' + +const stringWidth = require('string-width') + +function ansiAlign (text, opts) { + if (!text) return text + + opts = opts || {} + const align = opts.align || 'center' + + // short-circuit `align: 'left'` as no-op + if (align === 'left') return text + + const split = opts.split || '\n' + const pad = opts.pad || ' ' + const widthDiffFn = align !== 'right' ? halfDiff : fullDiff + + let returnString = false + if (!Array.isArray(text)) { + returnString = true + text = String(text).split(split) + } + + let width + let maxWidth = 0 + text = text.map(function (str) { + str = String(str) + width = stringWidth(str) + maxWidth = Math.max(width, maxWidth) + return { + str, + width + } + }).map(function (obj) { + return new Array(widthDiffFn(maxWidth, obj.width) + 1).join(pad) + obj.str + }) + + return returnString ? text.join(split) : text +} + +ansiAlign.left = function left (text) { + return ansiAlign(text, { align: 'left' }) +} + +ansiAlign.center = function center (text) { + return ansiAlign(text, { align: 'center' }) +} + +ansiAlign.right = function right (text) { + return ansiAlign(text, { align: 'right' }) +} + +module.exports = ansiAlign + +function halfDiff (maxWidth, curWidth) { + return Math.floor((maxWidth - curWidth) / 2) +} + +function fullDiff (maxWidth, curWidth) { + return maxWidth - curWidth +} diff --git a/node_modules/libnpx/node_modules/ansi-align/package.json b/node_modules/libnpx/node_modules/ansi-align/package.json new file mode 100644 index 0000000000000..36ed44317b84f --- /dev/null +++ b/node_modules/libnpx/node_modules/ansi-align/package.json @@ -0,0 +1,73 @@ +{ + "_args": [ + [ + "ansi-align@2.0.0", + "/Users/zkat/Documents/code/npx" + ] + ], + "_from": "ansi-align@2.0.0", + "_id": "ansi-align@2.0.0", + "_inBundle": true, + "_integrity": "sha1-w2rsy6VjuJzrVW82kPCx2eNUf38=", + "_location": "/libnpx/ansi-align", + "_phantomChildren": {}, + "_requested": { + "type": "version", + "registry": true, + "raw": "ansi-align@2.0.0", + "name": "ansi-align", + "escapedName": "ansi-align", + "rawSpec": "2.0.0", + "saveSpec": null, + "fetchSpec": "2.0.0" + }, + "_requiredBy": [ + "/libnpx/boxen" + ], + "_resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-2.0.0.tgz", + "_spec": "2.0.0", + "_where": "/Users/zkat/Documents/code/npx", + "author": { + "name": "nexdrew" + }, + "bugs": { + "url": "https://github.com/nexdrew/ansi-align/issues" + }, + "dependencies": { + "string-width": "^2.0.0" + }, + "description": "align-text with ANSI support for CLIs", + "devDependencies": { + "ava": "^0.19.1", + "chalk": "^1.1.3", + "coveralls": "^2.13.1", + "nyc": "^10.3.0", + "standard": "^10.0.2", + "standard-version": "^4.0.0" + }, + "files": [ + "index.js" + ], + "homepage": "https://github.com/nexdrew/ansi-align#readme", + "keywords": [ + "ansi", + "align", + "cli", + "center", + "pad" + ], + "license": "ISC", + "main": "index.js", + "name": "ansi-align", + "repository": { + "type": "git", + "url": "git+https://github.com/nexdrew/ansi-align.git" + }, + "scripts": { + "coverage": "nyc report --reporter=text-lcov | coveralls", + "pretest": "standard", + "release": "standard-version", + "test": "nyc ava" + }, + "version": "2.0.0" +} diff --git a/node_modules/libnpx/node_modules/ansi-regex/index.js b/node_modules/libnpx/node_modules/ansi-regex/index.js new file mode 100644 index 0000000000000..c4aaecf505063 --- /dev/null +++ b/node_modules/libnpx/node_modules/ansi-regex/index.js @@ -0,0 +1,10 @@ +'use strict'; + +module.exports = () => { + const pattern = [ + '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)', + '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))' + ].join('|'); + + return new RegExp(pattern, 'g'); +}; diff --git a/node_modules/libnpx/node_modules/ansi-regex/license b/node_modules/libnpx/node_modules/ansi-regex/license new file mode 100644 index 0000000000000..e7af2f77107d7 --- /dev/null +++ b/node_modules/libnpx/node_modules/ansi-regex/license @@ -0,0 +1,9 @@ +MIT License + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/libnpx/node_modules/ansi-regex/package.json b/node_modules/libnpx/node_modules/ansi-regex/package.json new file mode 100644 index 0000000000000..6f2fcccba0076 --- /dev/null +++ b/node_modules/libnpx/node_modules/ansi-regex/package.json @@ -0,0 +1,88 @@ +{ + "_args": [ + [ + "ansi-regex@3.0.0", + "/Users/zkat/Documents/code/npx" + ] + ], + "_from": "ansi-regex@3.0.0", + "_id": "ansi-regex@3.0.0", + "_inBundle": true, + "_integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "_location": "/libnpx/ansi-regex", + "_phantomChildren": {}, + "_requested": { + "type": "version", + "registry": true, + "raw": "ansi-regex@3.0.0", + "name": "ansi-regex", + "escapedName": "ansi-regex", + "rawSpec": "3.0.0", + "saveSpec": null, + "fetchSpec": "3.0.0" + }, + "_requiredBy": [ + "/libnpx/strip-ansi" + ], + "_resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "_spec": "3.0.0", + "_where": "/Users/zkat/Documents/code/npx", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "bugs": { + "url": "https://github.com/chalk/ansi-regex/issues" + }, + "description": "Regular expression for matching ANSI escape codes", + "devDependencies": { + "ava": "*", + "xo": "*" + }, + "engines": { + "node": ">=4" + }, + "files": [ + "index.js" + ], + "homepage": "https://github.com/chalk/ansi-regex#readme", + "keywords": [ + "ansi", + "styles", + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "tty", + "escape", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "command-line", + "text", + "regex", + "regexp", + "re", + "match", + "test", + "find", + "pattern" + ], + "license": "MIT", + "name": "ansi-regex", + "repository": { + "type": "git", + "url": "git+https://github.com/chalk/ansi-regex.git" + }, + "scripts": { + "test": "xo && ava", + "view-supported": "node fixtures/view-codes.js" + }, + "version": "3.0.0" +} diff --git a/node_modules/libnpx/node_modules/ansi-regex/readme.md b/node_modules/libnpx/node_modules/ansi-regex/readme.md new file mode 100644 index 0000000000000..22db1c3405555 --- /dev/null +++ b/node_modules/libnpx/node_modules/ansi-regex/readme.md @@ -0,0 +1,46 @@ +# ansi-regex [![Build Status](https://travis-ci.org/chalk/ansi-regex.svg?branch=master)](https://travis-ci.org/chalk/ansi-regex) + +> Regular expression for matching [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) + + +## Install + +``` +$ npm install ansi-regex +``` + + +## Usage + +```js +const ansiRegex = require('ansi-regex'); + +ansiRegex().test('\u001B[4mcake\u001B[0m'); +//=> true + +ansiRegex().test('cake'); +//=> false + +'\u001B[4mcake\u001B[0m'.match(ansiRegex()); +//=> ['\u001B[4m', '\u001B[0m'] +``` + + +## FAQ + +### Why do you test for codes not in the ECMA 48 standard? + +Some of the codes we run as a test are codes that we acquired finding various lists of non-standard or manufacturer specific codes. We test for both standard and non-standard codes, as most of them follow the same or similar format and can be safely matched in strings without the risk of removing actual string content. There are a few non-standard control codes that do not follow the traditional format (i.e. they end in numbers) thus forcing us to exclude them from the test because we cannot reliably match them. + +On the historical side, those ECMA standards were established in the early 90's whereas the VT100, for example, was designed in the mid/late 70's. At that point in time, control codes were still pretty ungoverned and engineers used them for a multitude of things, namely to activate hardware ports that may have been proprietary. Somewhere else you see a similar 'anarchy' of codes is in the x86 architecture for processors; there are a ton of "interrupts" that can mean different things on certain brands of processors, most of which have been phased out. + + +## Maintainers + +- [Sindre Sorhus](https://github.com/sindresorhus) +- [Josh Junon](https://github.com/qix-) + + +## License + +MIT diff --git a/node_modules/libnpx/node_modules/ansi-styles/index.js b/node_modules/libnpx/node_modules/ansi-styles/index.js new file mode 100644 index 0000000000000..78945278f78a7 --- /dev/null +++ b/node_modules/libnpx/node_modules/ansi-styles/index.js @@ -0,0 +1,65 @@ +'use strict'; + +function assembleStyles () { + var styles = { + modifiers: { + reset: [0, 0], + bold: [1, 22], // 21 isn't widely supported and 22 does the same thing + dim: [2, 22], + italic: [3, 23], + underline: [4, 24], + inverse: [7, 27], + hidden: [8, 28], + strikethrough: [9, 29] + }, + colors: { + black: [30, 39], + red: [31, 39], + green: [32, 39], + yellow: [33, 39], + blue: [34, 39], + magenta: [35, 39], + cyan: [36, 39], + white: [37, 39], + gray: [90, 39] + }, + bgColors: { + bgBlack: [40, 49], + bgRed: [41, 49], + bgGreen: [42, 49], + bgYellow: [43, 49], + bgBlue: [44, 49], + bgMagenta: [45, 49], + bgCyan: [46, 49], + bgWhite: [47, 49] + } + }; + + // fix humans + styles.colors.grey = styles.colors.gray; + + Object.keys(styles).forEach(function (groupName) { + var group = styles[groupName]; + + Object.keys(group).forEach(function (styleName) { + var style = group[styleName]; + + styles[styleName] = group[styleName] = { + open: '\u001b[' + style[0] + 'm', + close: '\u001b[' + style[1] + 'm' + }; + }); + + Object.defineProperty(styles, groupName, { + value: group, + enumerable: false + }); + }); + + return styles; +} + +Object.defineProperty(module, 'exports', { + enumerable: true, + get: assembleStyles +}); diff --git a/node_modules/libnpx/node_modules/ansi-styles/license b/node_modules/libnpx/node_modules/ansi-styles/license new file mode 100644 index 0000000000000..654d0bfe94343 --- /dev/null +++ b/node_modules/libnpx/node_modules/ansi-styles/license @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/node_modules/libnpx/node_modules/ansi-styles/package.json b/node_modules/libnpx/node_modules/ansi-styles/package.json new file mode 100644 index 0000000000000..e3e7e36a89b00 --- /dev/null +++ b/node_modules/libnpx/node_modules/ansi-styles/package.json @@ -0,0 +1,93 @@ +{ + "_args": [ + [ + "ansi-styles@2.2.1", + "/Users/zkat/Documents/code/npx" + ] + ], + "_from": "ansi-styles@2.2.1", + "_id": "ansi-styles@2.2.1", + "_inBundle": true, + "_integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "_location": "/libnpx/ansi-styles", + "_phantomChildren": {}, + "_requested": { + "type": "version", + "registry": true, + "raw": "ansi-styles@2.2.1", + "name": "ansi-styles", + "escapedName": "ansi-styles", + "rawSpec": "2.2.1", + "saveSpec": null, + "fetchSpec": "2.2.1" + }, + "_requiredBy": [ + "/libnpx/chalk" + ], + "_resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "_spec": "2.2.1", + "_where": "/Users/zkat/Documents/code/npx", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "bugs": { + "url": "https://github.com/chalk/ansi-styles/issues" + }, + "description": "ANSI escape codes for styling strings in the terminal", + "devDependencies": { + "mocha": "*" + }, + "engines": { + "node": ">=0.10.0" + }, + "files": [ + "index.js" + ], + "homepage": "https://github.com/chalk/ansi-styles#readme", + "keywords": [ + "ansi", + "styles", + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "tty", + "escape", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "license": "MIT", + "maintainers": [ + { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + { + "name": "Joshua Appelman", + "email": "jappelman@xebia.com", + "url": "jbnicolai.com" + } + ], + "name": "ansi-styles", + "repository": { + "type": "git", + "url": "git+https://github.com/chalk/ansi-styles.git" + }, + "scripts": { + "test": "mocha" + }, + "version": "2.2.1" +} diff --git a/node_modules/libnpx/node_modules/ansi-styles/readme.md b/node_modules/libnpx/node_modules/ansi-styles/readme.md new file mode 100644 index 0000000000000..3f933f6162e58 --- /dev/null +++ b/node_modules/libnpx/node_modules/ansi-styles/readme.md @@ -0,0 +1,86 @@ +# ansi-styles [![Build Status](https://travis-ci.org/chalk/ansi-styles.svg?branch=master)](https://travis-ci.org/chalk/ansi-styles) + +> [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles) for styling strings in the terminal + +You probably want the higher-level [chalk](https://github.com/chalk/chalk) module for styling your strings. + +![](screenshot.png) + + +## Install + +``` +$ npm install --save ansi-styles +``` + + +## Usage + +```js +var ansi = require('ansi-styles'); + +console.log(ansi.green.open + 'Hello world!' + ansi.green.close); +``` + + +## API + +Each style has an `open` and `close` property. + + +## Styles + +### Modifiers + +- `reset` +- `bold` +- `dim` +- `italic` *(not widely supported)* +- `underline` +- `inverse` +- `hidden` +- `strikethrough` *(not widely supported)* + +### Colors + +- `black` +- `red` +- `green` +- `yellow` +- `blue` +- `magenta` +- `cyan` +- `white` +- `gray` + +### Background colors + +- `bgBlack` +- `bgRed` +- `bgGreen` +- `bgYellow` +- `bgBlue` +- `bgMagenta` +- `bgCyan` +- `bgWhite` + + +## Advanced usage + +By default you get a map of styles, but the styles are also available as groups. They are non-enumerable so they don't show up unless you access them explicitly. This makes it easier to expose only a subset in a higher-level module. + +- `ansi.modifiers` +- `ansi.colors` +- `ansi.bgColors` + + +###### Example + +```js +console.log(ansi.colors.green.open); +``` + + +## License + +MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/node_modules/libnpx/node_modules/balanced-match/.npmignore b/node_modules/libnpx/node_modules/balanced-match/.npmignore new file mode 100644 index 0000000000000..ae5d8c36ac652 --- /dev/null +++ b/node_modules/libnpx/node_modules/balanced-match/.npmignore @@ -0,0 +1,5 @@ +test +.gitignore +.travis.yml +Makefile +example.js diff --git a/node_modules/libnpx/node_modules/balanced-match/LICENSE.md b/node_modules/libnpx/node_modules/balanced-match/LICENSE.md new file mode 100644 index 0000000000000..2cdc8e4148cc0 --- /dev/null +++ b/node_modules/libnpx/node_modules/balanced-match/LICENSE.md @@ -0,0 +1,21 @@ +(MIT) + +Copyright (c) 2013 Julian Gruber <julian@juliangruber.com> + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/libnpx/node_modules/balanced-match/README.md b/node_modules/libnpx/node_modules/balanced-match/README.md new file mode 100644 index 0000000000000..08e918c0db9a6 --- /dev/null +++ b/node_modules/libnpx/node_modules/balanced-match/README.md @@ -0,0 +1,91 @@ +# balanced-match + +Match balanced string pairs, like `{` and `}` or `` and ``. Supports regular expressions as well! + +[![build status](https://secure.travis-ci.org/juliangruber/balanced-match.svg)](http://travis-ci.org/juliangruber/balanced-match) +[![downloads](https://img.shields.io/npm/dm/balanced-match.svg)](https://www.npmjs.org/package/balanced-match) + +[![testling badge](https://ci.testling.com/juliangruber/balanced-match.png)](https://ci.testling.com/juliangruber/balanced-match) + +## Example + +Get the first matching pair of braces: + +```js +var balanced = require('balanced-match'); + +console.log(balanced('{', '}', 'pre{in{nested}}post')); +console.log(balanced('{', '}', 'pre{first}between{second}post')); +console.log(balanced(/\s+\{\s+/, /\s+\}\s+/, 'pre { in{nest} } post')); +``` + +The matches are: + +```bash +$ node example.js +{ start: 3, end: 14, pre: 'pre', body: 'in{nested}', post: 'post' } +{ start: 3, + end: 9, + pre: 'pre', + body: 'first', + post: 'between{second}post' } +{ start: 3, end: 17, pre: 'pre', body: 'in{nest}', post: 'post' } +``` + +## API + +### var m = balanced(a, b, str) + +For the first non-nested matching pair of `a` and `b` in `str`, return an +object with those keys: + +* **start** the index of the first match of `a` +* **end** the index of the matching `b` +* **pre** the preamble, `a` and `b` not included +* **body** the match, `a` and `b` not included +* **post** the postscript, `a` and `b` not included + +If there's no match, `undefined` will be returned. + +If the `str` contains more `a` than `b` / there are unmatched pairs, the first match that was closed will be used. For example, `{{a}` will match `['{', 'a', '']` and `{a}}` will match `['', 'a', '}']`. + +### var r = balanced.range(a, b, str) + +For the first non-nested matching pair of `a` and `b` in `str`, return an +array with indexes: `[ , ]`. + +If there's no match, `undefined` will be returned. + +If the `str` contains more `a` than `b` / there are unmatched pairs, the first match that was closed will be used. For example, `{{a}` will match `[ 1, 3 ]` and `{a}}` will match `[0, 2]`. + +## Installation + +With [npm](https://npmjs.org) do: + +```bash +npm install balanced-match +``` + +## License + +(MIT) + +Copyright (c) 2013 Julian Gruber <julian@juliangruber.com> + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/libnpx/node_modules/balanced-match/index.js b/node_modules/libnpx/node_modules/balanced-match/index.js new file mode 100644 index 0000000000000..1685a76293255 --- /dev/null +++ b/node_modules/libnpx/node_modules/balanced-match/index.js @@ -0,0 +1,59 @@ +'use strict'; +module.exports = balanced; +function balanced(a, b, str) { + if (a instanceof RegExp) a = maybeMatch(a, str); + if (b instanceof RegExp) b = maybeMatch(b, str); + + var r = range(a, b, str); + + return r && { + start: r[0], + end: r[1], + pre: str.slice(0, r[0]), + body: str.slice(r[0] + a.length, r[1]), + post: str.slice(r[1] + b.length) + }; +} + +function maybeMatch(reg, str) { + var m = str.match(reg); + return m ? m[0] : null; +} + +balanced.range = range; +function range(a, b, str) { + var begs, beg, left, right, result; + var ai = str.indexOf(a); + var bi = str.indexOf(b, ai + 1); + var i = ai; + + if (ai >= 0 && bi > 0) { + begs = []; + left = str.length; + + while (i >= 0 && !result) { + if (i == ai) { + begs.push(i); + ai = str.indexOf(a, i + 1); + } else if (begs.length == 1) { + result = [ begs.pop(), bi ]; + } else { + beg = begs.pop(); + if (beg < left) { + left = beg; + right = bi; + } + + bi = str.indexOf(b, i + 1); + } + + i = ai < bi && ai >= 0 ? ai : bi; + } + + if (begs.length) { + result = [ left, right ]; + } + } + + return result; +} diff --git a/node_modules/libnpx/node_modules/balanced-match/package.json b/node_modules/libnpx/node_modules/balanced-match/package.json new file mode 100644 index 0000000000000..bfbe4e79f6561 --- /dev/null +++ b/node_modules/libnpx/node_modules/balanced-match/package.json @@ -0,0 +1,80 @@ +{ + "_args": [ + [ + "balanced-match@1.0.0", + "/Users/zkat/Documents/code/npx" + ] + ], + "_from": "balanced-match@1.0.0", + "_id": "balanced-match@1.0.0", + "_inBundle": true, + "_integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "_location": "/libnpx/balanced-match", + "_phantomChildren": {}, + "_requested": { + "type": "version", + "registry": true, + "raw": "balanced-match@1.0.0", + "name": "balanced-match", + "escapedName": "balanced-match", + "rawSpec": "1.0.0", + "saveSpec": null, + "fetchSpec": "1.0.0" + }, + "_requiredBy": [ + "/libnpx/brace-expansion" + ], + "_resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "_spec": "1.0.0", + "_where": "/Users/zkat/Documents/code/npx", + "author": { + "name": "Julian Gruber", + "email": "mail@juliangruber.com", + "url": "http://juliangruber.com" + }, + "bugs": { + "url": "https://github.com/juliangruber/balanced-match/issues" + }, + "dependencies": {}, + "description": "Match balanced character pairs, like \"{\" and \"}\"", + "devDependencies": { + "matcha": "^0.7.0", + "tape": "^4.6.0" + }, + "homepage": "https://github.com/juliangruber/balanced-match", + "keywords": [ + "match", + "regexp", + "test", + "balanced", + "parse" + ], + "license": "MIT", + "main": "index.js", + "name": "balanced-match", + "repository": { + "type": "git", + "url": "git://github.com/juliangruber/balanced-match.git" + }, + "scripts": { + "bench": "make bench", + "test": "make test" + }, + "testling": { + "files": "test/*.js", + "browsers": [ + "ie/8..latest", + "firefox/20..latest", + "firefox/nightly", + "chrome/25..latest", + "chrome/canary", + "opera/12..latest", + "opera/next", + "safari/5.1..latest", + "ipad/6.0..latest", + "iphone/6.0..latest", + "android-browser/4.2..latest" + ] + }, + "version": "1.0.0" +} diff --git a/node_modules/libnpx/node_modules/boxen/index.js b/node_modules/libnpx/node_modules/boxen/index.js new file mode 100644 index 0000000000000..2233e3d7b0009 --- /dev/null +++ b/node_modules/libnpx/node_modules/boxen/index.js @@ -0,0 +1,138 @@ +'use strict'; +const stringWidth = require('string-width'); +const chalk = require('chalk'); +const widestLine = require('widest-line'); +const cliBoxes = require('cli-boxes'); +const camelCase = require('camelcase'); +const ansiAlign = require('ansi-align'); +const termSize = require('term-size'); + +const getObject = detail => { + let obj; + + if (typeof detail === 'number') { + obj = { + top: detail, + right: detail * 3, + bottom: detail, + left: detail * 3 + }; + } else { + obj = Object.assign({ + top: 0, + right: 0, + bottom: 0, + left: 0 + }, detail); + } + + return obj; +}; + +const getBorderChars = borderStyle => { + const sides = [ + 'topLeft', + 'topRight', + 'bottomRight', + 'bottomLeft', + 'vertical', + 'horizontal' + ]; + + let chars; + + if (typeof borderStyle === 'string') { + chars = cliBoxes[borderStyle]; + + if (!chars) { + throw new TypeError(`Invalid border style: ${borderStyle}`); + } + } else { + sides.forEach(key => { + if (!borderStyle[key] || typeof borderStyle[key] !== 'string') { + throw new TypeError(`Invalid border style: ${key}`); + } + }); + + chars = borderStyle; + } + + return chars; +}; + +const getBackgroundColorName = x => camelCase('bg', x); + +module.exports = (text, opts) => { + opts = Object.assign({ + padding: 0, + borderStyle: 'single', + dimBorder: false, + align: 'left', + float: 'left' + }, opts); + + if (opts.backgroundColor) { + opts.backgroundColor = getBackgroundColorName(opts.backgroundColor); + } + + if (opts.borderColor && !chalk[opts.borderColor]) { + throw new Error(`${opts.borderColor} is not a valid borderColor`); + } + + if (opts.backgroundColor && !chalk[opts.backgroundColor]) { + throw new Error(`${opts.backgroundColor} is not a valid backgroundColor`); + } + + const chars = getBorderChars(opts.borderStyle); + const padding = getObject(opts.padding); + const margin = getObject(opts.margin); + + const colorizeBorder = x => { + const ret = opts.borderColor ? chalk[opts.borderColor](x) : x; + return opts.dimBorder ? chalk.dim(ret) : ret; + }; + + const colorizeContent = x => opts.backgroundColor ? chalk[opts.backgroundColor](x) : x; + + text = ansiAlign(text, {align: opts.align}); + + const NL = '\n'; + const PAD = ' '; + + let lines = text.split(NL); + + if (padding.top > 0) { + lines = Array(padding.top).fill('').concat(lines); + } + + if (padding.bottom > 0) { + lines = lines.concat(Array(padding.bottom).fill('')); + } + + const contentWidth = widestLine(text) + padding.left + padding.right; + const paddingLeft = PAD.repeat(padding.left); + const columns = termSize().columns; + let marginLeft = PAD.repeat(margin.left); + + if (opts.float === 'center') { + const padWidth = (columns - contentWidth) / 2; + marginLeft = PAD.repeat(padWidth); + } else if (opts.float === 'right') { + const padWidth = Math.max(columns - contentWidth - 2, 0); + marginLeft = PAD.repeat(padWidth); + } + + const horizontal = chars.horizontal.repeat(contentWidth); + const top = colorizeBorder(NL.repeat(margin.top) + marginLeft + chars.topLeft + horizontal + chars.topRight); + const bottom = colorizeBorder(marginLeft + chars.bottomLeft + horizontal + chars.bottomRight + NL.repeat(margin.bottom)); + const side = colorizeBorder(chars.vertical); + + const middle = lines.map(line => { + const paddingRight = PAD.repeat(contentWidth - stringWidth(line) - padding.left); + return marginLeft + side + colorizeContent(paddingLeft + line + paddingRight) + side; + }).join(NL); + + return top + NL + middle + NL + bottom; +}; + +module.exports._borderStyles = cliBoxes; diff --git a/node_modules/libnpx/node_modules/boxen/license b/node_modules/libnpx/node_modules/boxen/license new file mode 100644 index 0000000000000..654d0bfe94343 --- /dev/null +++ b/node_modules/libnpx/node_modules/boxen/license @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/node_modules/libnpx/node_modules/boxen/package.json b/node_modules/libnpx/node_modules/boxen/package.json new file mode 100644 index 0000000000000..8d6c6d990acd5 --- /dev/null +++ b/node_modules/libnpx/node_modules/boxen/package.json @@ -0,0 +1,85 @@ +{ + "_args": [ + [ + "boxen@1.1.0", + "/Users/zkat/Documents/code/npx" + ] + ], + "_from": "boxen@1.1.0", + "_id": "boxen@1.1.0", + "_inBundle": true, + "_integrity": "sha1-sbad1SIwXoB6md7ud329blFnsQI=", + "_location": "/libnpx/boxen", + "_phantomChildren": {}, + "_requested": { + "type": "version", + "registry": true, + "raw": "boxen@1.1.0", + "name": "boxen", + "escapedName": "boxen", + "rawSpec": "1.1.0", + "saveSpec": null, + "fetchSpec": "1.1.0" + }, + "_requiredBy": [ + "/libnpx/update-notifier" + ], + "_resolved": "https://registry.npmjs.org/boxen/-/boxen-1.1.0.tgz", + "_spec": "1.1.0", + "_where": "/Users/zkat/Documents/code/npx", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "bugs": { + "url": "https://github.com/sindresorhus/boxen/issues" + }, + "dependencies": { + "ansi-align": "^2.0.0", + "camelcase": "^4.0.0", + "chalk": "^1.1.1", + "cli-boxes": "^1.0.0", + "string-width": "^2.0.0", + "term-size": "^0.1.0", + "widest-line": "^1.0.0" + }, + "description": "Create boxes in the terminal", + "devDependencies": { + "ava": "*", + "nyc": "^10.3.0", + "xo": "*" + }, + "engines": { + "node": ">=4" + }, + "files": [ + "index.js" + ], + "homepage": "https://github.com/sindresorhus/boxen#readme", + "keywords": [ + "cli", + "box", + "boxes", + "terminal", + "term", + "console", + "ascii", + "unicode", + "border", + "text" + ], + "license": "MIT", + "name": "boxen", + "repository": { + "type": "git", + "url": "git+https://github.com/sindresorhus/boxen.git" + }, + "scripts": { + "test": "xo && nyc ava" + }, + "version": "1.1.0", + "xo": { + "esnext": true + } +} diff --git a/node_modules/libnpx/node_modules/boxen/readme.md b/node_modules/libnpx/node_modules/boxen/readme.md new file mode 100644 index 0000000000000..abb78bff12615 --- /dev/null +++ b/node_modules/libnpx/node_modules/boxen/readme.md @@ -0,0 +1,175 @@ +# boxen + +> Create boxes in the terminal + +[![Build Status](https://travis-ci.org/sindresorhus/boxen.svg?branch=master)](https://travis-ci.org/sindresorhus/boxen) + + +## Install + +``` +$ npm install --save boxen +``` + + +## Usage + +```js +const boxen = require('boxen'); + +console.log(boxen('unicorn', {padding: 1})); +/* +┌─────────────┐ +│ │ +│ unicorn │ +│ │ +└─────────────┘ +*/ + +console.log(boxen('unicorn', {padding: 1, margin: 1, borderStyle: 'double'})); +/* + + ╔═════════════╗ + ║ ║ + ║ unicorn ║ + ║ ║ + ╚═════════════╝ + +*/ +``` + + +## API + +### boxen(input, [options]) + +#### input + +Type: `string` + +Text inside the box. + +#### options + +##### borderColor + +Type: `string`
+Values: `black` `red` `green` `yellow` `blue` `magenta` `cyan` `white` `gray` + +Color of the box border. + +##### borderStyle + +Type: `string` `object`
+Default: `single`
+Values: +- `single` +``` +┌───┐ +│foo│ +└───┘ +``` +- `double` +``` +╔═══╗ +║foo║ +╚═══╝ +``` +- `round` (`single` sides with round corners) +``` +╭───╮ +│foo│ +╰───╯ +``` +- `single-double` (`single` on top and bottom, `double` on right and left) +``` +╓───╖ +║foo║ +╙───╜ +``` +- `double-single` (`double` on top and bottom, `single` on right and left) +``` +╒═══╕ +│foo│ +╘═══╛ +``` +- `classic` +``` ++---+ +|foo| ++---+ +``` + +Style of the box border. + +Can be any of the above predefined styles or an object with the following keys: + +```js +{ + topLeft: '+', + topRight: '+', + bottomLeft: '+', + bottomRight: '+', + horizontal: '-', + vertical: '|' +} +``` + +##### dimBorder + +Type: `boolean`
+Default: `false` + +Reduce opacity of the border. + +##### padding + +Type: `number` `object`
+Default: `0` + +Space between the text and box border. + +Accepts a number or an object with any of the `top`, `right`, `bottom`, `left` properties. When a number is specified, the left/right padding is 3 times the top/bottom to make it look nice. + +##### margin + +Type: `number` `object`
+Default: `0` + +Space around the box. + +Accepts a number or an object with any of the `top`, `right`, `bottom`, `left` properties. When a number is specified, the left/right margin is 3 times the top/bottom to make it look nice. + +##### float + +Type: `string`
+Values: `right` `center` `left`
+Default: `left` + +Float the box on the available terminal screen space. + +##### backgroundColor + +Type: `string`
+Values: `black` `red` `green` `yellow` `blue` `magenta` `cyan` `white` + +Color of the background. + +##### align + +Type: `string`
+Default: `left`
+Values: `left` `center` `right` + +Align the text in the box based on the widest line. + + +## Related + +- [boxen-cli](https://github.com/sindresorhus/boxen-cli) - CLI for this module +- [cli-boxes](https://github.com/sindresorhus/cli-boxes) - Boxes for use in the terminal + + +## License + +MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/node_modules/libnpx/node_modules/brace-expansion/README.md b/node_modules/libnpx/node_modules/brace-expansion/README.md new file mode 100644 index 0000000000000..ed2ec1fdd78f5 --- /dev/null +++ b/node_modules/libnpx/node_modules/brace-expansion/README.md @@ -0,0 +1,123 @@ +# brace-expansion + +[Brace expansion](https://www.gnu.org/software/bash/manual/html_node/Brace-Expansion.html), +as known from sh/bash, in JavaScript. + +[![build status](https://secure.travis-ci.org/juliangruber/brace-expansion.svg)](http://travis-ci.org/juliangruber/brace-expansion) +[![downloads](https://img.shields.io/npm/dm/brace-expansion.svg)](https://www.npmjs.org/package/brace-expansion) +[![Greenkeeper badge](https://badges.greenkeeper.io/juliangruber/brace-expansion.svg)](https://greenkeeper.io/) + +[![testling badge](https://ci.testling.com/juliangruber/brace-expansion.png)](https://ci.testling.com/juliangruber/brace-expansion) + +## Example + +```js +var expand = require('brace-expansion'); + +expand('file-{a,b,c}.jpg') +// => ['file-a.jpg', 'file-b.jpg', 'file-c.jpg'] + +expand('-v{,,}') +// => ['-v', '-v', '-v'] + +expand('file{0..2}.jpg') +// => ['file0.jpg', 'file1.jpg', 'file2.jpg'] + +expand('file-{a..c}.jpg') +// => ['file-a.jpg', 'file-b.jpg', 'file-c.jpg'] + +expand('file{2..0}.jpg') +// => ['file2.jpg', 'file1.jpg', 'file0.jpg'] + +expand('file{0..4..2}.jpg') +// => ['file0.jpg', 'file2.jpg', 'file4.jpg'] + +expand('file-{a..e..2}.jpg') +// => ['file-a.jpg', 'file-c.jpg', 'file-e.jpg'] + +expand('file{00..10..5}.jpg') +// => ['file00.jpg', 'file05.jpg', 'file10.jpg'] + +expand('{{A..C},{a..c}}') +// => ['A', 'B', 'C', 'a', 'b', 'c'] + +expand('ppp{,config,oe{,conf}}') +// => ['ppp', 'pppconfig', 'pppoe', 'pppoeconf'] +``` + +## API + +```js +var expand = require('brace-expansion'); +``` + +### var expanded = expand(str) + +Return an array of all possible and valid expansions of `str`. If none are +found, `[str]` is returned. + +Valid expansions are: + +```js +/^(.*,)+(.+)?$/ +// {a,b,...} +``` + +A comma seperated list of options, like `{a,b}` or `{a,{b,c}}` or `{,a,}`. + +```js +/^-?\d+\.\.-?\d+(\.\.-?\d+)?$/ +// {x..y[..incr]} +``` + +A numeric sequence from `x` to `y` inclusive, with optional increment. +If `x` or `y` start with a leading `0`, all the numbers will be padded +to have equal length. Negative numbers and backwards iteration work too. + +```js +/^-?\d+\.\.-?\d+(\.\.-?\d+)?$/ +// {x..y[..incr]} +``` + +An alphabetic sequence from `x` to `y` inclusive, with optional increment. +`x` and `y` must be exactly one character, and if given, `incr` must be a +number. + +For compatibility reasons, the string `${` is not eligible for brace expansion. + +## Installation + +With [npm](https://npmjs.org) do: + +```bash +npm install brace-expansion +``` + +## Contributors + +- [Julian Gruber](https://github.com/juliangruber) +- [Isaac Z. Schlueter](https://github.com/isaacs) + +## License + +(MIT) + +Copyright (c) 2013 Julian Gruber <julian@juliangruber.com> + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/libnpx/node_modules/brace-expansion/index.js b/node_modules/libnpx/node_modules/brace-expansion/index.js new file mode 100644 index 0000000000000..0478be81eabc2 --- /dev/null +++ b/node_modules/libnpx/node_modules/brace-expansion/index.js @@ -0,0 +1,201 @@ +var concatMap = require('concat-map'); +var balanced = require('balanced-match'); + +module.exports = expandTop; + +var escSlash = '\0SLASH'+Math.random()+'\0'; +var escOpen = '\0OPEN'+Math.random()+'\0'; +var escClose = '\0CLOSE'+Math.random()+'\0'; +var escComma = '\0COMMA'+Math.random()+'\0'; +var escPeriod = '\0PERIOD'+Math.random()+'\0'; + +function numeric(str) { + return parseInt(str, 10) == str + ? parseInt(str, 10) + : str.charCodeAt(0); +} + +function escapeBraces(str) { + return str.split('\\\\').join(escSlash) + .split('\\{').join(escOpen) + .split('\\}').join(escClose) + .split('\\,').join(escComma) + .split('\\.').join(escPeriod); +} + +function unescapeBraces(str) { + return str.split(escSlash).join('\\') + .split(escOpen).join('{') + .split(escClose).join('}') + .split(escComma).join(',') + .split(escPeriod).join('.'); +} + + +// Basically just str.split(","), but handling cases +// where we have nested braced sections, which should be +// treated as individual members, like {a,{b,c},d} +function parseCommaParts(str) { + if (!str) + return ['']; + + var parts = []; + var m = balanced('{', '}', str); + + if (!m) + return str.split(','); + + var pre = m.pre; + var body = m.body; + var post = m.post; + var p = pre.split(','); + + p[p.length-1] += '{' + body + '}'; + var postParts = parseCommaParts(post); + if (post.length) { + p[p.length-1] += postParts.shift(); + p.push.apply(p, postParts); + } + + parts.push.apply(parts, p); + + return parts; +} + +function expandTop(str) { + if (!str) + return []; + + // I don't know why Bash 4.3 does this, but it does. + // Anything starting with {} will have the first two bytes preserved + // but *only* at the top level, so {},a}b will not expand to anything, + // but a{},b}c will be expanded to [a}c,abc]. + // One could argue that this is a bug in Bash, but since the goal of + // this module is to match Bash's rules, we escape a leading {} + if (str.substr(0, 2) === '{}') { + str = '\\{\\}' + str.substr(2); + } + + return expand(escapeBraces(str), true).map(unescapeBraces); +} + +function identity(e) { + return e; +} + +function embrace(str) { + return '{' + str + '}'; +} +function isPadded(el) { + return /^-?0\d/.test(el); +} + +function lte(i, y) { + return i <= y; +} +function gte(i, y) { + return i >= y; +} + +function expand(str, isTop) { + var expansions = []; + + var m = balanced('{', '}', str); + if (!m || /\$$/.test(m.pre)) return [str]; + + var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body); + var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body); + var isSequence = isNumericSequence || isAlphaSequence; + var isOptions = m.body.indexOf(',') >= 0; + if (!isSequence && !isOptions) { + // {a},b} + if (m.post.match(/,.*\}/)) { + str = m.pre + '{' + m.body + escClose + m.post; + return expand(str); + } + return [str]; + } + + var n; + if (isSequence) { + n = m.body.split(/\.\./); + } else { + n = parseCommaParts(m.body); + if (n.length === 1) { + // x{{a,b}}y ==> x{a}y x{b}y + n = expand(n[0], false).map(embrace); + if (n.length === 1) { + var post = m.post.length + ? expand(m.post, false) + : ['']; + return post.map(function(p) { + return m.pre + n[0] + p; + }); + } + } + } + + // at this point, n is the parts, and we know it's not a comma set + // with a single entry. + + // no need to expand pre, since it is guaranteed to be free of brace-sets + var pre = m.pre; + var post = m.post.length + ? expand(m.post, false) + : ['']; + + var N; + + if (isSequence) { + var x = numeric(n[0]); + var y = numeric(n[1]); + var width = Math.max(n[0].length, n[1].length) + var incr = n.length == 3 + ? Math.abs(numeric(n[2])) + : 1; + var test = lte; + var reverse = y < x; + if (reverse) { + incr *= -1; + test = gte; + } + var pad = n.some(isPadded); + + N = []; + + for (var i = x; test(i, y); i += incr) { + var c; + if (isAlphaSequence) { + c = String.fromCharCode(i); + if (c === '\\') + c = ''; + } else { + c = String(i); + if (pad) { + var need = width - c.length; + if (need > 0) { + var z = new Array(need + 1).join('0'); + if (i < 0) + c = '-' + z + c.slice(1); + else + c = z + c; + } + } + } + N.push(c); + } + } else { + N = concatMap(n, function(el) { return expand(el, false) }); + } + + for (var j = 0; j < N.length; j++) { + for (var k = 0; k < post.length; k++) { + var expansion = pre + N[j] + post[k]; + if (!isTop || isSequence || expansion) + expansions.push(expansion); + } + } + + return expansions; +} + diff --git a/node_modules/libnpx/node_modules/brace-expansion/package.json b/node_modules/libnpx/node_modules/brace-expansion/package.json new file mode 100644 index 0000000000000..6e45022e9e26c --- /dev/null +++ b/node_modules/libnpx/node_modules/brace-expansion/package.json @@ -0,0 +1,78 @@ +{ + "_args": [ + [ + "brace-expansion@1.1.8", + "/Users/zkat/Documents/code/npx" + ] + ], + "_from": "brace-expansion@1.1.8", + "_id": "brace-expansion@1.1.8", + "_inBundle": true, + "_integrity": "sha1-wHshHHyVLsH479Uad+8NHTmQopI=", + "_location": "/libnpx/brace-expansion", + "_phantomChildren": {}, + "_requested": { + "type": "version", + "registry": true, + "raw": "brace-expansion@1.1.8", + "name": "brace-expansion", + "escapedName": "brace-expansion", + "rawSpec": "1.1.8", + "saveSpec": null, + "fetchSpec": "1.1.8" + }, + "_requiredBy": [ + "/libnpx/minimatch" + ], + "_resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.8.tgz", + "_spec": "1.1.8", + "_where": "/Users/zkat/Documents/code/npx", + "author": { + "name": "Julian Gruber", + "email": "mail@juliangruber.com", + "url": "http://juliangruber.com" + }, + "bugs": { + "url": "https://github.com/juliangruber/brace-expansion/issues" + }, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + }, + "description": "Brace expansion as known from sh/bash", + "devDependencies": { + "matcha": "^0.7.0", + "tape": "^4.6.0" + }, + "homepage": "https://github.com/juliangruber/brace-expansion", + "keywords": [], + "license": "MIT", + "main": "index.js", + "name": "brace-expansion", + "repository": { + "type": "git", + "url": "git://github.com/juliangruber/brace-expansion.git" + }, + "scripts": { + "bench": "matcha test/perf/bench.js", + "gentest": "bash test/generate.sh", + "test": "tape test/*.js" + }, + "testling": { + "files": "test/*.js", + "browsers": [ + "ie/8..latest", + "firefox/20..latest", + "firefox/nightly", + "chrome/25..latest", + "chrome/canary", + "opera/12..latest", + "opera/next", + "safari/5.1..latest", + "ipad/6.0..latest", + "iphone/6.0..latest", + "android-browser/4.2..latest" + ] + }, + "version": "1.1.8" +} diff --git a/node_modules/libnpx/node_modules/builtin-modules/builtin-modules.json b/node_modules/libnpx/node_modules/builtin-modules/builtin-modules.json new file mode 100644 index 0000000000000..72670f6bf5cf5 --- /dev/null +++ b/node_modules/libnpx/node_modules/builtin-modules/builtin-modules.json @@ -0,0 +1,35 @@ +[ + "assert", + "buffer", + "child_process", + "cluster", + "console", + "constants", + "crypto", + "dgram", + "dns", + "domain", + "events", + "fs", + "http", + "https", + "module", + "net", + "os", + "path", + "process", + "punycode", + "querystring", + "readline", + "repl", + "stream", + "string_decoder", + "timers", + "tls", + "tty", + "url", + "util", + "v8", + "vm", + "zlib" +] diff --git a/node_modules/libnpx/node_modules/builtin-modules/index.js b/node_modules/libnpx/node_modules/builtin-modules/index.js new file mode 100644 index 0000000000000..9ef35ab0694e7 --- /dev/null +++ b/node_modules/libnpx/node_modules/builtin-modules/index.js @@ -0,0 +1,10 @@ +'use strict'; + +var blacklist = [ + 'freelist', + 'sys' +]; + +module.exports = Object.keys(process.binding('natives')).filter(function (el) { + return !/^_|^internal|\//.test(el) && blacklist.indexOf(el) === -1; +}).sort(); diff --git a/node_modules/libnpx/node_modules/builtin-modules/license b/node_modules/libnpx/node_modules/builtin-modules/license new file mode 100644 index 0000000000000..654d0bfe94343 --- /dev/null +++ b/node_modules/libnpx/node_modules/builtin-modules/license @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/node_modules/libnpx/node_modules/builtin-modules/package.json b/node_modules/libnpx/node_modules/builtin-modules/package.json new file mode 100644 index 0000000000000..d08e511ba360d --- /dev/null +++ b/node_modules/libnpx/node_modules/builtin-modules/package.json @@ -0,0 +1,75 @@ +{ + "_args": [ + [ + "builtin-modules@1.1.1", + "/Users/zkat/Documents/code/npx" + ] + ], + "_from": "builtin-modules@1.1.1", + "_id": "builtin-modules@1.1.1", + "_inBundle": true, + "_integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", + "_location": "/libnpx/builtin-modules", + "_phantomChildren": {}, + "_requested": { + "type": "version", + "registry": true, + "raw": "builtin-modules@1.1.1", + "name": "builtin-modules", + "escapedName": "builtin-modules", + "rawSpec": "1.1.1", + "saveSpec": null, + "fetchSpec": "1.1.1" + }, + "_requiredBy": [ + "/libnpx/is-builtin-module" + ], + "_resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", + "_spec": "1.1.1", + "_where": "/Users/zkat/Documents/code/npx", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "bugs": { + "url": "https://github.com/sindresorhus/builtin-modules/issues" + }, + "description": "List of the Node.js builtin modules", + "devDependencies": { + "ava": "*", + "xo": "*" + }, + "engines": { + "node": ">=0.10.0" + }, + "files": [ + "index.js", + "static.js", + "builtin-modules.json" + ], + "homepage": "https://github.com/sindresorhus/builtin-modules#readme", + "keywords": [ + "builtin", + "built-in", + "builtins", + "node", + "modules", + "core", + "bundled", + "list", + "array", + "names" + ], + "license": "MIT", + "name": "builtin-modules", + "repository": { + "type": "git", + "url": "git+https://github.com/sindresorhus/builtin-modules.git" + }, + "scripts": { + "make": "node make.js", + "test": "xo && ava" + }, + "version": "1.1.1" +} diff --git a/node_modules/libnpx/node_modules/builtin-modules/readme.md b/node_modules/libnpx/node_modules/builtin-modules/readme.md new file mode 100644 index 0000000000000..f1894b1896530 --- /dev/null +++ b/node_modules/libnpx/node_modules/builtin-modules/readme.md @@ -0,0 +1,41 @@ +# builtin-modules [![Build Status](https://travis-ci.org/sindresorhus/builtin-modules.svg?branch=master)](https://travis-ci.org/sindresorhus/builtin-modules) + +> List of the Node.js builtin modules + +The list is just a [JSON file](builtin-modules.json) and can be used wherever. + + +## Install + +``` +$ npm install --save builtin-modules +``` + + +## Usage + +```js +var builtinModules = require('builtin-modules'); + +console.log(builinModules); +//=> ['assert', 'buffer', ...] +``` + + +## API + +Returns an array of builtin modules fetched from the running Node.js version. + +### Static list + +This module also comes bundled with a static array of builtin modules generated from the latest Node.js version. You can get it with `require('builtin-modules/static');` + + +## Related + +- [is-builtin-module](https://github.com/sindresorhus/is-builtin-module) - Check if a string matches the name of a Node.js builtin module + + +## License + +MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/node_modules/libnpx/node_modules/builtin-modules/static.js b/node_modules/libnpx/node_modules/builtin-modules/static.js new file mode 100644 index 0000000000000..9508f8f4ec421 --- /dev/null +++ b/node_modules/libnpx/node_modules/builtin-modules/static.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('./builtin-modules.json'); diff --git a/node_modules/libnpx/node_modules/builtins/.travis.yml b/node_modules/libnpx/node_modules/builtins/.travis.yml new file mode 100644 index 0000000000000..cc4dba29d959a --- /dev/null +++ b/node_modules/libnpx/node_modules/builtins/.travis.yml @@ -0,0 +1,4 @@ +language: node_js +node_js: + - "0.8" + - "0.10" diff --git a/node_modules/libnpx/node_modules/builtins/History.md b/node_modules/libnpx/node_modules/builtins/History.md new file mode 100644 index 0000000000000..0eb45c420775e --- /dev/null +++ b/node_modules/libnpx/node_modules/builtins/History.md @@ -0,0 +1,39 @@ + +0.0.7 / 2014-09-01 +================== + + * update .repository + +0.0.6 / 2014-09-01 +================== + + * add travis + * add test script + * add constants + +0.0.5 / 2014-06-27 +================== + + * add module + * publish to public npm + +0.0.4 / 2014-04-25 +================== + + * add timers + +0.0.3 / 2014-02-22 +================== + + * add buffer + +0.0.2 / 2014-02-11 +================== + + * add assert + +0.0.1 / 2014-02-11 +================== + + * add main + * initial commit diff --git a/node_modules/libnpx/node_modules/builtins/License b/node_modules/libnpx/node_modules/builtins/License new file mode 100644 index 0000000000000..b142e5dc08133 --- /dev/null +++ b/node_modules/libnpx/node_modules/builtins/License @@ -0,0 +1,20 @@ +Copyright (c) 2015 Julian Gruber + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/libnpx/node_modules/builtins/Readme.md b/node_modules/libnpx/node_modules/builtins/Readme.md new file mode 100644 index 0000000000000..96f4b1f6c4a83 --- /dev/null +++ b/node_modules/libnpx/node_modules/builtins/Readme.md @@ -0,0 +1,18 @@ + +# builtins + + List of node.js [builtin modules](http://nodejs.org/api/). + + [![build status](https://secure.travis-ci.org/juliangruber/builtins.svg)](http://travis-ci.org/juliangruber/builtins) + +## Example + +```js +var builtins = require('builtins'); + +assert(builtins.indexOf('http') > -1); +``` + +## License + + MIT diff --git a/node_modules/libnpx/node_modules/builtins/builtins.json b/node_modules/libnpx/node_modules/builtins/builtins.json new file mode 100644 index 0000000000000..45c05225644bd --- /dev/null +++ b/node_modules/libnpx/node_modules/builtins/builtins.json @@ -0,0 +1,35 @@ +[ + "assert", + "buffer", + "child_process", + "cluster", + "console", + "constants", + "crypto", + "dgram", + "dns", + "domain", + "events", + "fs", + "http", + "https", + "module", + "net", + "os", + "path", + "process", + "punycode", + "querystring", + "readline", + "repl", + "stream", + "string_decoder", + "timers", + "tls", + "tty", + "url", + "util", + "v8", + "vm", + "zlib" +] diff --git a/node_modules/libnpx/node_modules/builtins/package.json b/node_modules/libnpx/node_modules/builtins/package.json new file mode 100644 index 0000000000000..9963b96799314 --- /dev/null +++ b/node_modules/libnpx/node_modules/builtins/package.json @@ -0,0 +1,49 @@ +{ + "_args": [ + [ + "builtins@1.0.3", + "/Users/zkat/Documents/code/npx" + ] + ], + "_from": "builtins@1.0.3", + "_id": "builtins@1.0.3", + "_inBundle": true, + "_integrity": "sha1-y5T662HIaWRR2zZTThQi+U8K7og=", + "_location": "/libnpx/builtins", + "_phantomChildren": {}, + "_requested": { + "type": "version", + "registry": true, + "raw": "builtins@1.0.3", + "name": "builtins", + "escapedName": "builtins", + "rawSpec": "1.0.3", + "saveSpec": null, + "fetchSpec": "1.0.3" + }, + "_requiredBy": [ + "/libnpx/validate-npm-package-name" + ], + "_resolved": "https://registry.npmjs.org/builtins/-/builtins-1.0.3.tgz", + "_spec": "1.0.3", + "_where": "/Users/zkat/Documents/code/npx", + "bugs": { + "url": "https://github.com/juliangruber/builtins/issues" + }, + "description": "List of node.js builtin modules", + "homepage": "https://github.com/juliangruber/builtins#readme", + "license": "MIT", + "main": "builtins.json", + "name": "builtins", + "publishConfig": { + "registry": "https://registry.npmjs.org" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/juliangruber/builtins.git" + }, + "scripts": { + "test": "node test.js" + }, + "version": "1.0.3" +} diff --git a/node_modules/libnpx/node_modules/builtins/test.js b/node_modules/libnpx/node_modules/builtins/test.js new file mode 100644 index 0000000000000..ffbe8389c14d6 --- /dev/null +++ b/node_modules/libnpx/node_modules/builtins/test.js @@ -0,0 +1,5 @@ +var builtins = require('./builtins'); + +builtins.forEach(function(name){ + require(name); +}); diff --git a/node_modules/libnpx/node_modules/camelcase/index.js b/node_modules/libnpx/node_modules/camelcase/index.js new file mode 100644 index 0000000000000..c8492a228630a --- /dev/null +++ b/node_modules/libnpx/node_modules/camelcase/index.js @@ -0,0 +1,64 @@ +'use strict'; + +function preserveCamelCase(str) { + let isLastCharLower = false; + let isLastCharUpper = false; + let isLastLastCharUpper = false; + + for (let i = 0; i < str.length; i++) { + const c = str[i]; + + if (isLastCharLower && /[a-zA-Z]/.test(c) && c.toUpperCase() === c) { + str = str.substr(0, i) + '-' + str.substr(i); + isLastCharLower = false; + isLastLastCharUpper = isLastCharUpper; + isLastCharUpper = true; + i++; + } else if (isLastCharUpper && isLastLastCharUpper && /[a-zA-Z]/.test(c) && c.toLowerCase() === c) { + str = str.substr(0, i - 1) + '-' + str.substr(i - 1); + isLastLastCharUpper = isLastCharUpper; + isLastCharUpper = false; + isLastCharLower = true; + } else { + isLastCharLower = c.toLowerCase() === c; + isLastLastCharUpper = isLastCharUpper; + isLastCharUpper = c.toUpperCase() === c; + } + } + + return str; +} + +module.exports = function (str) { + if (arguments.length > 1) { + str = Array.from(arguments) + .map(x => x.trim()) + .filter(x => x.length) + .join('-'); + } else { + str = str.trim(); + } + + if (str.length === 0) { + return ''; + } + + if (str.length === 1) { + return str.toLowerCase(); + } + + if (/^[a-z0-9]+$/.test(str)) { + return str; + } + + const hasUpperCase = str !== str.toLowerCase(); + + if (hasUpperCase) { + str = preserveCamelCase(str); + } + + return str + .replace(/^[_.\- ]+/, '') + .toLowerCase() + .replace(/[_.\- ]+(\w|$)/g, (m, p1) => p1.toUpperCase()); +}; diff --git a/node_modules/libnpx/node_modules/camelcase/license b/node_modules/libnpx/node_modules/camelcase/license new file mode 100644 index 0000000000000..654d0bfe94343 --- /dev/null +++ b/node_modules/libnpx/node_modules/camelcase/license @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/node_modules/libnpx/node_modules/camelcase/package.json b/node_modules/libnpx/node_modules/camelcase/package.json new file mode 100644 index 0000000000000..ab98f46dbce62 --- /dev/null +++ b/node_modules/libnpx/node_modules/camelcase/package.json @@ -0,0 +1,79 @@ +{ + "_args": [ + [ + "camelcase@4.1.0", + "/Users/zkat/Documents/code/npx" + ] + ], + "_from": "camelcase@4.1.0", + "_id": "camelcase@4.1.0", + "_inBundle": true, + "_integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", + "_location": "/libnpx/camelcase", + "_phantomChildren": {}, + "_requested": { + "type": "version", + "registry": true, + "raw": "camelcase@4.1.0", + "name": "camelcase", + "escapedName": "camelcase", + "rawSpec": "4.1.0", + "saveSpec": null, + "fetchSpec": "4.1.0" + }, + "_requiredBy": [ + "/libnpx/boxen", + "/libnpx/yargs", + "/libnpx/yargs-parser" + ], + "_resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", + "_spec": "4.1.0", + "_where": "/Users/zkat/Documents/code/npx", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "bugs": { + "url": "https://github.com/sindresorhus/camelcase/issues" + }, + "description": "Convert a dash/dot/underscore/space separated string to camelCase: foo-bar → fooBar", + "devDependencies": { + "ava": "*", + "xo": "*" + }, + "engines": { + "node": ">=4" + }, + "files": [ + "index.js" + ], + "homepage": "https://github.com/sindresorhus/camelcase#readme", + "keywords": [ + "camelcase", + "camel-case", + "camel", + "case", + "dash", + "hyphen", + "dot", + "underscore", + "separator", + "string", + "text", + "convert" + ], + "license": "MIT", + "name": "camelcase", + "repository": { + "type": "git", + "url": "git+https://github.com/sindresorhus/camelcase.git" + }, + "scripts": { + "test": "xo && ava" + }, + "version": "4.1.0", + "xo": { + "esnext": true + } +} diff --git a/node_modules/libnpx/node_modules/camelcase/readme.md b/node_modules/libnpx/node_modules/camelcase/readme.md new file mode 100644 index 0000000000000..0610dc627ddc2 --- /dev/null +++ b/node_modules/libnpx/node_modules/camelcase/readme.md @@ -0,0 +1,57 @@ +# camelcase [![Build Status](https://travis-ci.org/sindresorhus/camelcase.svg?branch=master)](https://travis-ci.org/sindresorhus/camelcase) + +> Convert a dash/dot/underscore/space separated string to camelCase: `foo-bar` → `fooBar` + + +## Install + +``` +$ npm install --save camelcase +``` + + +## Usage + +```js +const camelCase = require('camelcase'); + +camelCase('foo-bar'); +//=> 'fooBar' + +camelCase('foo_bar'); +//=> 'fooBar' + +camelCase('Foo-Bar'); +//=> 'fooBar' + +camelCase('--foo.bar'); +//=> 'fooBar' + +camelCase('__foo__bar__'); +//=> 'fooBar' + +camelCase('foo bar'); +//=> 'fooBar' + +console.log(process.argv[3]); +//=> '--foo-bar' +camelCase(process.argv[3]); +//=> 'fooBar' + +camelCase('foo', 'bar'); +//=> 'fooBar' + +camelCase('__foo__', '--bar'); +//=> 'fooBar' +``` + + +## Related + +- [decamelize](https://github.com/sindresorhus/decamelize) - The inverse of this module +- [uppercamelcase](https://github.com/SamVerschueren/uppercamelcase) - Like this module, but to PascalCase instead of camelCase + + +## License + +MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/node_modules/libnpx/node_modules/capture-stack-trace/index.js b/node_modules/libnpx/node_modules/capture-stack-trace/index.js new file mode 100644 index 0000000000000..1b696c8b60f62 --- /dev/null +++ b/node_modules/libnpx/node_modules/capture-stack-trace/index.js @@ -0,0 +1,18 @@ +'use strict'; + +module.exports = Error.captureStackTrace || function (error) { + var container = new Error(); + + Object.defineProperty(error, 'stack', { + configurable: true, + get: function getStack() { + var stack = container.stack; + + Object.defineProperty(this, 'stack', { + value: stack + }); + + return stack; + } + }); +}; diff --git a/node_modules/libnpx/node_modules/capture-stack-trace/package.json b/node_modules/libnpx/node_modules/capture-stack-trace/package.json new file mode 100644 index 0000000000000..79ef778751ab1 --- /dev/null +++ b/node_modules/libnpx/node_modules/capture-stack-trace/package.json @@ -0,0 +1,64 @@ +{ + "_args": [ + [ + "capture-stack-trace@1.0.0", + "/Users/zkat/Documents/code/npx" + ] + ], + "_from": "capture-stack-trace@1.0.0", + "_id": "capture-stack-trace@1.0.0", + "_inBundle": true, + "_integrity": "sha1-Sm+gc5nCa7pH8LJJa00PtAjFVQ0=", + "_location": "/libnpx/capture-stack-trace", + "_phantomChildren": {}, + "_requested": { + "type": "version", + "registry": true, + "raw": "capture-stack-trace@1.0.0", + "name": "capture-stack-trace", + "escapedName": "capture-stack-trace", + "rawSpec": "1.0.0", + "saveSpec": null, + "fetchSpec": "1.0.0" + }, + "_requiredBy": [ + "/libnpx/create-error-class" + ], + "_resolved": "https://registry.npmjs.org/capture-stack-trace/-/capture-stack-trace-1.0.0.tgz", + "_spec": "1.0.0", + "_where": "/Users/zkat/Documents/code/npx", + "author": { + "name": "Vsevolod Strukchinsky", + "email": "floatdrop@gmail.com", + "url": "github.com/floatdrop" + }, + "bugs": { + "url": "https://github.com/floatdrop/capture-stack-trace/issues" + }, + "dependencies": {}, + "description": "Error.captureStackTrace ponyfill", + "devDependencies": { + "mocha": "*" + }, + "engines": { + "node": ">=0.10.0" + }, + "files": [ + "index.js" + ], + "homepage": "https://github.com/floatdrop/capture-stack-trace#readme", + "keywords": [ + "Error", + "captureStackTrace" + ], + "license": "MIT", + "name": "capture-stack-trace", + "repository": { + "type": "git", + "url": "git+https://github.com/floatdrop/capture-stack-trace.git" + }, + "scripts": { + "test": "mocha" + }, + "version": "1.0.0" +} diff --git a/node_modules/libnpx/node_modules/capture-stack-trace/readme.md b/node_modules/libnpx/node_modules/capture-stack-trace/readme.md new file mode 100644 index 0000000000000..a944ab961b588 --- /dev/null +++ b/node_modules/libnpx/node_modules/capture-stack-trace/readme.md @@ -0,0 +1,36 @@ +# capture-stack-trace [![Build Status](https://travis-ci.org/floatdrop/capture-stack-trace.svg?branch=master)](https://travis-ci.org/floatdrop/capture-stack-trace) + +> Ponyfill for Error.captureStackTrace + + +## Install + +``` +$ npm install --save capture-stack-trace +``` + + +## Usage + +```js +var captureStackTrace = require('capture-stack-trace'); + +captureStackTrace({}); +// => {stack: ...} +``` + + +## API + +### captureStackTrace(error) + +#### error + +*Required* +Type: `Object` + +Target Object, that will recieve stack property. + +## License + +MIT © [Vsevolod Strukchinsky](http://github.com/floatdrop) diff --git a/node_modules/libnpx/node_modules/chalk/index.js b/node_modules/libnpx/node_modules/chalk/index.js new file mode 100644 index 0000000000000..2d85a91747a71 --- /dev/null +++ b/node_modules/libnpx/node_modules/chalk/index.js @@ -0,0 +1,116 @@ +'use strict'; +var escapeStringRegexp = require('escape-string-regexp'); +var ansiStyles = require('ansi-styles'); +var stripAnsi = require('strip-ansi'); +var hasAnsi = require('has-ansi'); +var supportsColor = require('supports-color'); +var defineProps = Object.defineProperties; +var isSimpleWindowsTerm = process.platform === 'win32' && !/^xterm/i.test(process.env.TERM); + +function Chalk(options) { + // detect mode if not set manually + this.enabled = !options || options.enabled === undefined ? supportsColor : options.enabled; +} + +// use bright blue on Windows as the normal blue color is illegible +if (isSimpleWindowsTerm) { + ansiStyles.blue.open = '\u001b[94m'; +} + +var styles = (function () { + var ret = {}; + + Object.keys(ansiStyles).forEach(function (key) { + ansiStyles[key].closeRe = new RegExp(escapeStringRegexp(ansiStyles[key].close), 'g'); + + ret[key] = { + get: function () { + return build.call(this, this._styles.concat(key)); + } + }; + }); + + return ret; +})(); + +var proto = defineProps(function chalk() {}, styles); + +function build(_styles) { + var builder = function () { + return applyStyle.apply(builder, arguments); + }; + + builder._styles = _styles; + builder.enabled = this.enabled; + // __proto__ is used because we must return a function, but there is + // no way to create a function with a different prototype. + /* eslint-disable no-proto */ + builder.__proto__ = proto; + + return builder; +} + +function applyStyle() { + // support varags, but simply cast to string in case there's only one arg + var args = arguments; + var argsLen = args.length; + var str = argsLen !== 0 && String(arguments[0]); + + if (argsLen > 1) { + // don't slice `arguments`, it prevents v8 optimizations + for (var a = 1; a < argsLen; a++) { + str += ' ' + args[a]; + } + } + + if (!this.enabled || !str) { + return str; + } + + var nestedStyles = this._styles; + var i = nestedStyles.length; + + // Turns out that on Windows dimmed gray text becomes invisible in cmd.exe, + // see https://github.com/chalk/chalk/issues/58 + // If we're on Windows and we're dealing with a gray color, temporarily make 'dim' a noop. + var originalDim = ansiStyles.dim.open; + if (isSimpleWindowsTerm && (nestedStyles.indexOf('gray') !== -1 || nestedStyles.indexOf('grey') !== -1)) { + ansiStyles.dim.open = ''; + } + + while (i--) { + var code = ansiStyles[nestedStyles[i]]; + + // Replace any instances already present with a re-opening code + // otherwise only the part of the string until said closing code + // will be colored, and the rest will simply be 'plain'. + str = code.open + str.replace(code.closeRe, code.open) + code.close; + } + + // Reset the original 'dim' if we changed it to work around the Windows dimmed gray issue. + ansiStyles.dim.open = originalDim; + + return str; +} + +function init() { + var ret = {}; + + Object.keys(styles).forEach(function (name) { + ret[name] = { + get: function () { + return build.call(this, [name]); + } + }; + }); + + return ret; +} + +defineProps(Chalk.prototype, init()); + +module.exports = new Chalk(); +module.exports.styles = ansiStyles; +module.exports.hasColor = hasAnsi; +module.exports.stripColor = stripAnsi; +module.exports.supportsColor = supportsColor; diff --git a/node_modules/libnpx/node_modules/chalk/license b/node_modules/libnpx/node_modules/chalk/license new file mode 100644 index 0000000000000..654d0bfe94343 --- /dev/null +++ b/node_modules/libnpx/node_modules/chalk/license @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/node_modules/libnpx/node_modules/chalk/node_modules/ansi-regex/index.js b/node_modules/libnpx/node_modules/chalk/node_modules/ansi-regex/index.js new file mode 100644 index 0000000000000..b9574ed7e8201 --- /dev/null +++ b/node_modules/libnpx/node_modules/chalk/node_modules/ansi-regex/index.js @@ -0,0 +1,4 @@ +'use strict'; +module.exports = function () { + return /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]/g; +}; diff --git a/node_modules/libnpx/node_modules/chalk/node_modules/ansi-regex/license b/node_modules/libnpx/node_modules/chalk/node_modules/ansi-regex/license new file mode 100644 index 0000000000000..654d0bfe94343 --- /dev/null +++ b/node_modules/libnpx/node_modules/chalk/node_modules/ansi-regex/license @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/node_modules/libnpx/node_modules/chalk/node_modules/ansi-regex/package.json b/node_modules/libnpx/node_modules/chalk/node_modules/ansi-regex/package.json new file mode 100644 index 0000000000000..eb09cab421a0d --- /dev/null +++ b/node_modules/libnpx/node_modules/chalk/node_modules/ansi-regex/package.json @@ -0,0 +1,111 @@ +{ + "_args": [ + [ + "ansi-regex@2.1.1", + "/Users/zkat/Documents/code/npx" + ] + ], + "_from": "ansi-regex@2.1.1", + "_id": "ansi-regex@2.1.1", + "_inBundle": true, + "_integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "_location": "/libnpx/chalk/ansi-regex", + "_phantomChildren": {}, + "_requested": { + "type": "version", + "registry": true, + "raw": "ansi-regex@2.1.1", + "name": "ansi-regex", + "escapedName": "ansi-regex", + "rawSpec": "2.1.1", + "saveSpec": null, + "fetchSpec": "2.1.1" + }, + "_requiredBy": [ + "/libnpx/chalk/strip-ansi" + ], + "_resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "_spec": "2.1.1", + "_where": "/Users/zkat/Documents/code/npx", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "bugs": { + "url": "https://github.com/chalk/ansi-regex/issues" + }, + "description": "Regular expression for matching ANSI escape codes", + "devDependencies": { + "ava": "0.17.0", + "xo": "0.16.0" + }, + "engines": { + "node": ">=0.10.0" + }, + "files": [ + "index.js" + ], + "homepage": "https://github.com/chalk/ansi-regex#readme", + "keywords": [ + "ansi", + "styles", + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "tty", + "escape", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "command-line", + "text", + "regex", + "regexp", + "re", + "match", + "test", + "find", + "pattern" + ], + "license": "MIT", + "maintainers": [ + { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + { + "name": "Joshua Appelman", + "email": "jappelman@xebia.com", + "url": "jbnicolai.com" + }, + { + "name": "JD Ballard", + "email": "i.am.qix@gmail.com", + "url": "github.com/qix-" + } + ], + "name": "ansi-regex", + "repository": { + "type": "git", + "url": "git+https://github.com/chalk/ansi-regex.git" + }, + "scripts": { + "test": "xo && ava --verbose", + "view-supported": "node fixtures/view-codes.js" + }, + "version": "2.1.1", + "xo": { + "rules": { + "guard-for-in": 0, + "no-loop-func": 0 + } + } +} diff --git a/node_modules/libnpx/node_modules/chalk/node_modules/ansi-regex/readme.md b/node_modules/libnpx/node_modules/chalk/node_modules/ansi-regex/readme.md new file mode 100644 index 0000000000000..6a928edf0f6b0 --- /dev/null +++ b/node_modules/libnpx/node_modules/chalk/node_modules/ansi-regex/readme.md @@ -0,0 +1,39 @@ +# ansi-regex [![Build Status](https://travis-ci.org/chalk/ansi-regex.svg?branch=master)](https://travis-ci.org/chalk/ansi-regex) + +> Regular expression for matching [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code) + + +## Install + +``` +$ npm install --save ansi-regex +``` + + +## Usage + +```js +const ansiRegex = require('ansi-regex'); + +ansiRegex().test('\u001b[4mcake\u001b[0m'); +//=> true + +ansiRegex().test('cake'); +//=> false + +'\u001b[4mcake\u001b[0m'.match(ansiRegex()); +//=> ['\u001b[4m', '\u001b[0m'] +``` + +## FAQ + +### Why do you test for codes not in the ECMA 48 standard? + +Some of the codes we run as a test are codes that we acquired finding various lists of non-standard or manufacturer specific codes. If I recall correctly, we test for both standard and non-standard codes, as most of them follow the same or similar format and can be safely matched in strings without the risk of removing actual string content. There are a few non-standard control codes that do not follow the traditional format (i.e. they end in numbers) thus forcing us to exclude them from the test because we cannot reliably match them. + +On the historical side, those ECMA standards were established in the early 90's whereas the VT100, for example, was designed in the mid/late 70's. At that point in time, control codes were still pretty ungoverned and engineers used them for a multitude of things, namely to activate hardware ports that may have been proprietary. Somewhere else you see a similar 'anarchy' of codes is in the x86 architecture for processors; there are a ton of "interrupts" that can mean different things on certain brands of processors, most of which have been phased out. + + +## License + +MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/node_modules/libnpx/node_modules/chalk/node_modules/strip-ansi/index.js b/node_modules/libnpx/node_modules/chalk/node_modules/strip-ansi/index.js new file mode 100644 index 0000000000000..099480fbfc54c --- /dev/null +++ b/node_modules/libnpx/node_modules/chalk/node_modules/strip-ansi/index.js @@ -0,0 +1,6 @@ +'use strict'; +var ansiRegex = require('ansi-regex')(); + +module.exports = function (str) { + return typeof str === 'string' ? str.replace(ansiRegex, '') : str; +}; diff --git a/node_modules/libnpx/node_modules/chalk/node_modules/strip-ansi/license b/node_modules/libnpx/node_modules/chalk/node_modules/strip-ansi/license new file mode 100644 index 0000000000000..654d0bfe94343 --- /dev/null +++ b/node_modules/libnpx/node_modules/chalk/node_modules/strip-ansi/license @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/node_modules/libnpx/node_modules/chalk/node_modules/strip-ansi/package.json b/node_modules/libnpx/node_modules/chalk/node_modules/strip-ansi/package.json new file mode 100644 index 0000000000000..ae1c58a3a7aec --- /dev/null +++ b/node_modules/libnpx/node_modules/chalk/node_modules/strip-ansi/package.json @@ -0,0 +1,104 @@ +{ + "_args": [ + [ + "strip-ansi@3.0.1", + "/Users/zkat/Documents/code/npx" + ] + ], + "_from": "strip-ansi@3.0.1", + "_id": "strip-ansi@3.0.1", + "_inBundle": true, + "_integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "_location": "/libnpx/chalk/strip-ansi", + "_phantomChildren": {}, + "_requested": { + "type": "version", + "registry": true, + "raw": "strip-ansi@3.0.1", + "name": "strip-ansi", + "escapedName": "strip-ansi", + "rawSpec": "3.0.1", + "saveSpec": null, + "fetchSpec": "3.0.1" + }, + "_requiredBy": [ + "/libnpx/chalk" + ], + "_resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "_spec": "3.0.1", + "_where": "/Users/zkat/Documents/code/npx", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "bugs": { + "url": "https://github.com/chalk/strip-ansi/issues" + }, + "dependencies": { + "ansi-regex": "^2.0.0" + }, + "description": "Strip ANSI escape codes", + "devDependencies": { + "ava": "*", + "xo": "*" + }, + "engines": { + "node": ">=0.10.0" + }, + "files": [ + "index.js" + ], + "homepage": "https://github.com/chalk/strip-ansi#readme", + "keywords": [ + "strip", + "trim", + "remove", + "ansi", + "styles", + "color", + "colour", + "colors", + "terminal", + "console", + "string", + "tty", + "escape", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "license": "MIT", + "maintainers": [ + { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + { + "name": "Joshua Boy Nicolai Appelman", + "email": "joshua@jbna.nl", + "url": "jbna.nl" + }, + { + "name": "JD Ballard", + "email": "i.am.qix@gmail.com", + "url": "github.com/qix-" + } + ], + "name": "strip-ansi", + "repository": { + "type": "git", + "url": "git+https://github.com/chalk/strip-ansi.git" + }, + "scripts": { + "test": "xo && ava" + }, + "version": "3.0.1" +} diff --git a/node_modules/libnpx/node_modules/chalk/node_modules/strip-ansi/readme.md b/node_modules/libnpx/node_modules/chalk/node_modules/strip-ansi/readme.md new file mode 100644 index 0000000000000..cb7d9ff7ee403 --- /dev/null +++ b/node_modules/libnpx/node_modules/chalk/node_modules/strip-ansi/readme.md @@ -0,0 +1,33 @@ +# strip-ansi [![Build Status](https://travis-ci.org/chalk/strip-ansi.svg?branch=master)](https://travis-ci.org/chalk/strip-ansi) + +> Strip [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code) + + +## Install + +``` +$ npm install --save strip-ansi +``` + + +## Usage + +```js +var stripAnsi = require('strip-ansi'); + +stripAnsi('\u001b[4mcake\u001b[0m'); +//=> 'cake' +``` + + +## Related + +- [strip-ansi-cli](https://github.com/chalk/strip-ansi-cli) - CLI for this module +- [has-ansi](https://github.com/chalk/has-ansi) - Check if a string has ANSI escape codes +- [ansi-regex](https://github.com/chalk/ansi-regex) - Regular expression for matching ANSI escape codes +- [chalk](https://github.com/chalk/chalk) - Terminal string styling done right + + +## License + +MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/node_modules/libnpx/node_modules/chalk/package.json b/node_modules/libnpx/node_modules/chalk/package.json new file mode 100644 index 0000000000000..13672497c7630 --- /dev/null +++ b/node_modules/libnpx/node_modules/chalk/package.json @@ -0,0 +1,118 @@ +{ + "_args": [ + [ + "chalk@1.1.3", + "/Users/zkat/Documents/code/npx" + ] + ], + "_from": "chalk@1.1.3", + "_id": "chalk@1.1.3", + "_inBundle": true, + "_integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "_location": "/libnpx/chalk", + "_phantomChildren": {}, + "_requested": { + "type": "version", + "registry": true, + "raw": "chalk@1.1.3", + "name": "chalk", + "escapedName": "chalk", + "rawSpec": "1.1.3", + "saveSpec": null, + "fetchSpec": "1.1.3" + }, + "_requiredBy": [ + "/libnpx/boxen", + "/libnpx/update-notifier" + ], + "_resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "_spec": "1.1.3", + "_where": "/Users/zkat/Documents/code/npx", + "bugs": { + "url": "https://github.com/chalk/chalk/issues" + }, + "dependencies": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + }, + "description": "Terminal string styling done right. Much color.", + "devDependencies": { + "coveralls": "^2.11.2", + "matcha": "^0.6.0", + "mocha": "*", + "nyc": "^3.0.0", + "require-uncached": "^1.0.2", + "resolve-from": "^1.0.0", + "semver": "^4.3.3", + "xo": "*" + }, + "engines": { + "node": ">=0.10.0" + }, + "files": [ + "index.js" + ], + "homepage": "https://github.com/chalk/chalk#readme", + "keywords": [ + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "str", + "ansi", + "style", + "styles", + "tty", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "license": "MIT", + "maintainers": [ + { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + { + "name": "Joshua Appelman", + "email": "jappelman@xebia.com", + "url": "jbnicolai.com" + }, + { + "name": "JD Ballard", + "email": "i.am.qix@gmail.com", + "url": "github.com/qix-" + } + ], + "name": "chalk", + "repository": { + "type": "git", + "url": "git+https://github.com/chalk/chalk.git" + }, + "scripts": { + "bench": "matcha benchmark.js", + "coverage": "nyc npm test && nyc report", + "coveralls": "nyc npm test && nyc report --reporter=text-lcov | coveralls", + "test": "xo && mocha" + }, + "version": "1.1.3", + "xo": { + "envs": [ + "node", + "mocha" + ] + } +} diff --git a/node_modules/libnpx/node_modules/chalk/readme.md b/node_modules/libnpx/node_modules/chalk/readme.md new file mode 100644 index 0000000000000..5cf111e353383 --- /dev/null +++ b/node_modules/libnpx/node_modules/chalk/readme.md @@ -0,0 +1,213 @@ +

+
+
+ chalk +
+
+
+

+ +> Terminal string styling done right + +[![Build Status](https://travis-ci.org/chalk/chalk.svg?branch=master)](https://travis-ci.org/chalk/chalk) +[![Coverage Status](https://coveralls.io/repos/chalk/chalk/badge.svg?branch=master)](https://coveralls.io/r/chalk/chalk?branch=master) +[![](http://img.shields.io/badge/unicorn-approved-ff69b4.svg)](https://www.youtube.com/watch?v=9auOCbH5Ns4) + + +[colors.js](https://github.com/Marak/colors.js) used to be the most popular string styling module, but it has serious deficiencies like extending `String.prototype` which causes all kinds of [problems](https://github.com/yeoman/yo/issues/68). Although there are other ones, they either do too much or not enough. + +**Chalk is a clean and focused alternative.** + +![](https://github.com/chalk/ansi-styles/raw/master/screenshot.png) + + +## Why + +- Highly performant +- Doesn't extend `String.prototype` +- Expressive API +- Ability to nest styles +- Clean and focused +- Auto-detects color support +- Actively maintained +- [Used by ~4500 modules](https://www.npmjs.com/browse/depended/chalk) as of July 15, 2015 + + +## Install + +``` +$ npm install --save chalk +``` + + +## Usage + +Chalk comes with an easy to use composable API where you just chain and nest the styles you want. + +```js +var chalk = require('chalk'); + +// style a string +chalk.blue('Hello world!'); + +// combine styled and normal strings +chalk.blue('Hello') + 'World' + chalk.red('!'); + +// compose multiple styles using the chainable API +chalk.blue.bgRed.bold('Hello world!'); + +// pass in multiple arguments +chalk.blue('Hello', 'World!', 'Foo', 'bar', 'biz', 'baz'); + +// nest styles +chalk.red('Hello', chalk.underline.bgBlue('world') + '!'); + +// nest styles of the same type even (color, underline, background) +chalk.green( + 'I am a green line ' + + chalk.blue.underline.bold('with a blue substring') + + ' that becomes green again!' +); +``` + +Easily define your own themes. + +```js +var chalk = require('chalk'); +var error = chalk.bold.red; +console.log(error('Error!')); +``` + +Take advantage of console.log [string substitution](http://nodejs.org/docs/latest/api/console.html#console_console_log_data). + +```js +var name = 'Sindre'; +console.log(chalk.green('Hello %s'), name); +//=> Hello Sindre +``` + + +## API + +### chalk.`