@prismer/sdk 2.0.7 → 2.2.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -7
- package/dist/chunk-R7POPVJR.mjs +35 -0
- package/dist/cli.js +59723 -8280
- package/dist/index.d.mts +724 -229
- package/dist/index.d.ts +724 -229
- package/dist/index.js +325 -23
- package/dist/index.mjs +324 -23
- package/dist/katex-OIP2Q473.mjs +14515 -0
- package/dist/pkf-schema.json +35 -0
- package/dist/pkf.d.mts +1 -0
- package/dist/pkf.d.ts +1 -0
- package/dist/pkf.js +48370 -0
- package/dist/pkf.mjs +33683 -0
- package/node_modules/@clack/core/CHANGELOG.md +249 -0
- package/node_modules/@clack/core/LICENSE +9 -0
- package/node_modules/@clack/core/README.md +22 -0
- package/node_modules/@clack/core/dist/index.cjs +15 -0
- package/node_modules/@clack/core/dist/index.cjs.map +1 -0
- package/node_modules/@clack/core/dist/index.d.cts +209 -0
- package/node_modules/@clack/core/dist/index.d.mts +209 -0
- package/node_modules/@clack/core/dist/index.d.ts +209 -0
- package/node_modules/@clack/core/dist/index.mjs +15 -0
- package/node_modules/@clack/core/dist/index.mjs.map +1 -0
- package/node_modules/@clack/core/package.json +62 -0
- package/node_modules/@clack/prompts/CHANGELOG.md +374 -0
- package/node_modules/@clack/prompts/LICENSE +9 -0
- package/node_modules/@clack/prompts/README.md +191 -0
- package/node_modules/@clack/prompts/dist/index.cjs +80 -0
- package/node_modules/@clack/prompts/dist/index.cjs.map +1 -0
- package/node_modules/@clack/prompts/dist/index.d.cts +151 -0
- package/node_modules/@clack/prompts/dist/index.d.mts +151 -0
- package/node_modules/@clack/prompts/dist/index.d.ts +151 -0
- package/node_modules/@clack/prompts/dist/index.mjs +80 -0
- package/node_modules/@clack/prompts/dist/index.mjs.map +1 -0
- package/node_modules/@clack/prompts/package.json +61 -0
- package/node_modules/@iarna/toml/LICENSE +14 -0
- package/node_modules/@iarna/toml/README.md +301 -0
- package/node_modules/@iarna/toml/index.d.ts +57 -0
- package/node_modules/@iarna/toml/lib/create-date.js +23 -0
- package/node_modules/@iarna/toml/lib/create-datetime-float.js +24 -0
- package/node_modules/@iarna/toml/lib/create-datetime.js +10 -0
- package/node_modules/@iarna/toml/lib/create-time.js +22 -0
- package/node_modules/@iarna/toml/lib/format-num.js +6 -0
- package/node_modules/@iarna/toml/lib/parser-debug.js +60 -0
- package/node_modules/@iarna/toml/lib/parser.js +127 -0
- package/node_modules/@iarna/toml/lib/toml-parser.js +1379 -0
- package/node_modules/@iarna/toml/package.json +82 -0
- package/node_modules/@iarna/toml/parse-async.js +30 -0
- package/node_modules/@iarna/toml/parse-pretty-error.js +33 -0
- package/node_modules/@iarna/toml/parse-stream.js +80 -0
- package/node_modules/@iarna/toml/parse-string.js +18 -0
- package/node_modules/@iarna/toml/parse.js +5 -0
- package/node_modules/@iarna/toml/stringify.js +296 -0
- package/node_modules/@iarna/toml/toml.js +3 -0
- package/node_modules/@prismer/aip-sdk/README.md +36 -0
- package/node_modules/@prismer/aip-sdk/dist/cli/chunk-LIJDUCHB.js +104 -0
- package/node_modules/@prismer/aip-sdk/dist/cli/chunk-QUQXZ2LD.js +99 -0
- package/node_modules/@prismer/aip-sdk/dist/cli/credentials-5GGZEJFG.js +56 -0
- package/node_modules/@prismer/aip-sdk/dist/cli/delegation-3J35VGBZ.js +64 -0
- package/node_modules/@prismer/aip-sdk/dist/cli/identity-LXVWKSVB.js +7 -0
- package/node_modules/@prismer/aip-sdk/dist/cli/index.js +259 -0
- package/node_modules/@prismer/aip-sdk/dist/cli/resolver-TGOPKW52.js +26 -0
- package/node_modules/@prismer/aip-sdk/dist/index.cjs +368 -0
- package/node_modules/@prismer/aip-sdk/dist/index.d.cts +174 -0
- package/node_modules/@prismer/aip-sdk/dist/index.d.ts +174 -0
- package/node_modules/@prismer/aip-sdk/dist/index.js +322 -0
- package/node_modules/@prismer/aip-sdk/package.json +53 -0
- package/node_modules/ansi-regex/index.d.ts +37 -0
- package/node_modules/ansi-regex/index.js +10 -0
- package/node_modules/ansi-regex/license +9 -0
- package/node_modules/ansi-regex/package.json +55 -0
- package/node_modules/ansi-regex/readme.md +78 -0
- package/node_modules/camelcase/index.d.ts +63 -0
- package/node_modules/camelcase/index.js +76 -0
- package/node_modules/camelcase/license +9 -0
- package/node_modules/camelcase/package.json +43 -0
- package/node_modules/camelcase/readme.md +99 -0
- package/node_modules/cliui/LICENSE.txt +14 -0
- package/node_modules/cliui/README.md +115 -0
- package/node_modules/cliui/index.js +354 -0
- package/node_modules/cliui/package.json +65 -0
- package/node_modules/color-convert/LICENSE +21 -0
- package/node_modules/color-convert/README.md +68 -0
- package/node_modules/color-convert/conversions.js +839 -0
- package/node_modules/color-convert/index.js +81 -0
- package/node_modules/color-convert/package.json +48 -0
- package/node_modules/color-convert/route.js +97 -0
- package/node_modules/color-name/LICENSE +8 -0
- package/node_modules/color-name/README.md +11 -0
- package/node_modules/color-name/index.js +152 -0
- package/node_modules/color-name/package.json +28 -0
- package/node_modules/commander/LICENSE +22 -0
- package/node_modules/commander/Readme.md +1157 -0
- package/node_modules/commander/esm.mjs +16 -0
- package/node_modules/commander/index.js +24 -0
- package/node_modules/commander/lib/argument.js +149 -0
- package/node_modules/commander/lib/command.js +2509 -0
- package/node_modules/commander/lib/error.js +39 -0
- package/node_modules/commander/lib/help.js +520 -0
- package/node_modules/commander/lib/option.js +330 -0
- package/node_modules/commander/lib/suggestSimilar.js +101 -0
- package/node_modules/commander/package-support.json +16 -0
- package/node_modules/commander/package.json +84 -0
- package/node_modules/commander/typings/esm.d.mts +3 -0
- package/node_modules/commander/typings/index.d.ts +969 -0
- package/node_modules/decamelize/index.js +13 -0
- package/node_modules/decamelize/license +21 -0
- package/node_modules/decamelize/package.json +38 -0
- package/node_modules/decamelize/readme.md +48 -0
- package/node_modules/dijkstrajs/.travis.yml +4 -0
- package/node_modules/dijkstrajs/CONTRIBUTING.md +8 -0
- package/node_modules/dijkstrajs/LICENSE.md +19 -0
- package/node_modules/dijkstrajs/README.md +18 -0
- package/node_modules/dijkstrajs/dijkstra.js +165 -0
- package/node_modules/dijkstrajs/package.json +60 -0
- package/node_modules/dijkstrajs/test/dijkstra.test.js +96 -0
- package/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
- package/node_modules/emoji-regex/README.md +73 -0
- package/node_modules/emoji-regex/es2015/index.js +6 -0
- package/node_modules/emoji-regex/es2015/text.js +6 -0
- package/node_modules/emoji-regex/index.d.ts +23 -0
- package/node_modules/emoji-regex/index.js +6 -0
- package/node_modules/emoji-regex/package.json +50 -0
- package/node_modules/emoji-regex/text.js +6 -0
- package/node_modules/find-up/index.d.ts +137 -0
- package/node_modules/find-up/index.js +89 -0
- package/node_modules/find-up/license +9 -0
- package/node_modules/find-up/package.json +53 -0
- package/node_modules/find-up/readme.md +156 -0
- package/node_modules/get-caller-file/LICENSE.md +6 -0
- package/node_modules/get-caller-file/README.md +41 -0
- package/node_modules/get-caller-file/index.d.ts +2 -0
- package/node_modules/get-caller-file/index.js +22 -0
- package/node_modules/get-caller-file/index.js.map +1 -0
- package/node_modules/get-caller-file/package.json +42 -0
- package/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
- package/node_modules/is-fullwidth-code-point/index.js +50 -0
- package/node_modules/is-fullwidth-code-point/license +9 -0
- package/node_modules/is-fullwidth-code-point/package.json +42 -0
- package/node_modules/is-fullwidth-code-point/readme.md +39 -0
- package/node_modules/locate-path/index.d.ts +83 -0
- package/node_modules/locate-path/index.js +65 -0
- package/node_modules/locate-path/license +9 -0
- package/node_modules/locate-path/package.json +45 -0
- package/node_modules/locate-path/readme.md +122 -0
- package/node_modules/p-locate/index.d.ts +64 -0
- package/node_modules/p-locate/index.js +52 -0
- package/node_modules/p-locate/license +9 -0
- package/node_modules/p-locate/node_modules/p-limit/index.d.ts +38 -0
- package/node_modules/p-locate/node_modules/p-limit/index.js +57 -0
- package/node_modules/p-locate/node_modules/p-limit/license +9 -0
- package/node_modules/p-locate/node_modules/p-limit/package.json +52 -0
- package/node_modules/p-locate/node_modules/p-limit/readme.md +101 -0
- package/node_modules/p-locate/package.json +53 -0
- package/node_modules/p-locate/readme.md +90 -0
- package/node_modules/p-try/index.d.ts +39 -0
- package/node_modules/p-try/index.js +9 -0
- package/node_modules/p-try/license +9 -0
- package/node_modules/p-try/package.json +42 -0
- package/node_modules/p-try/readme.md +58 -0
- package/node_modules/path-exists/index.d.ts +28 -0
- package/node_modules/path-exists/index.js +23 -0
- package/node_modules/path-exists/license +9 -0
- package/node_modules/path-exists/package.json +39 -0
- package/node_modules/path-exists/readme.md +52 -0
- package/node_modules/picocolors/LICENSE +15 -0
- package/node_modules/picocolors/README.md +21 -0
- package/node_modules/picocolors/package.json +25 -0
- package/node_modules/picocolors/picocolors.browser.js +4 -0
- package/node_modules/picocolors/picocolors.d.ts +5 -0
- package/node_modules/picocolors/picocolors.js +75 -0
- package/node_modules/picocolors/types.d.ts +51 -0
- package/node_modules/pngjs/.eslintignore +2 -0
- package/node_modules/pngjs/.eslintrc.json +19 -0
- package/node_modules/pngjs/.prettierignore +3 -0
- package/node_modules/pngjs/LICENSE +20 -0
- package/node_modules/pngjs/README.md +429 -0
- package/node_modules/pngjs/browser.js +16096 -0
- package/node_modules/pngjs/coverage/lcov-report/base.css +354 -0
- package/node_modules/pngjs/coverage/lcov-report/bitmapper.js.html +881 -0
- package/node_modules/pngjs/coverage/lcov-report/bitpacker.js.html +554 -0
- package/node_modules/pngjs/coverage/lcov-report/block-navigation.js +77 -0
- package/node_modules/pngjs/coverage/lcov-report/chunkstream.js.html +647 -0
- package/node_modules/pngjs/coverage/lcov-report/constants.js.html +176 -0
- package/node_modules/pngjs/coverage/lcov-report/crc.js.html +200 -0
- package/node_modules/pngjs/coverage/lcov-report/favicon.png +0 -0
- package/node_modules/pngjs/coverage/lcov-report/filter-pack.js.html +593 -0
- package/node_modules/pngjs/coverage/lcov-report/filter-parse-async.js.html +152 -0
- package/node_modules/pngjs/coverage/lcov-report/filter-parse-sync.js.html +143 -0
- package/node_modules/pngjs/coverage/lcov-report/filter-parse.js.html +611 -0
- package/node_modules/pngjs/coverage/lcov-report/format-normaliser.js.html +359 -0
- package/node_modules/pngjs/coverage/lcov-report/index.html +426 -0
- package/node_modules/pngjs/coverage/lcov-report/interlace.js.html +365 -0
- package/node_modules/pngjs/coverage/lcov-report/packer-async.js.html +230 -0
- package/node_modules/pngjs/coverage/lcov-report/packer-sync.js.html +248 -0
- package/node_modules/pngjs/coverage/lcov-report/packer.js.html +467 -0
- package/node_modules/pngjs/coverage/lcov-report/paeth-predictor.js.html +128 -0
- package/node_modules/pngjs/coverage/lcov-report/parser-async.js.html +575 -0
- package/node_modules/pngjs/coverage/lcov-report/parser-sync.js.html +404 -0
- package/node_modules/pngjs/coverage/lcov-report/parser.js.html +950 -0
- package/node_modules/pngjs/coverage/lcov-report/png-sync.js.html +116 -0
- package/node_modules/pngjs/coverage/lcov-report/png.js.html +662 -0
- package/node_modules/pngjs/coverage/lcov-report/prettify.css +101 -0
- package/node_modules/pngjs/coverage/lcov-report/prettify.js +1007 -0
- package/node_modules/pngjs/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/node_modules/pngjs/coverage/lcov-report/sorter.js +169 -0
- package/node_modules/pngjs/coverage/lcov-report/sync-inflate.js.html +584 -0
- package/node_modules/pngjs/coverage/lcov-report/sync-reader.js.html +215 -0
- package/node_modules/pngjs/coverage/lcov.info +2177 -0
- package/node_modules/pngjs/lib/bitmapper.js +267 -0
- package/node_modules/pngjs/lib/bitpacker.js +158 -0
- package/node_modules/pngjs/lib/chunkstream.js +189 -0
- package/node_modules/pngjs/lib/constants.js +32 -0
- package/node_modules/pngjs/lib/crc.js +40 -0
- package/node_modules/pngjs/lib/filter-pack.js +171 -0
- package/node_modules/pngjs/lib/filter-parse-async.js +24 -0
- package/node_modules/pngjs/lib/filter-parse-sync.js +21 -0
- package/node_modules/pngjs/lib/filter-parse.js +177 -0
- package/node_modules/pngjs/lib/format-normaliser.js +93 -0
- package/node_modules/pngjs/lib/interlace.js +95 -0
- package/node_modules/pngjs/lib/packer-async.js +50 -0
- package/node_modules/pngjs/lib/packer-sync.js +56 -0
- package/node_modules/pngjs/lib/packer.js +129 -0
- package/node_modules/pngjs/lib/paeth-predictor.js +16 -0
- package/node_modules/pngjs/lib/parser-async.js +165 -0
- package/node_modules/pngjs/lib/parser-sync.js +108 -0
- package/node_modules/pngjs/lib/parser.js +290 -0
- package/node_modules/pngjs/lib/png-sync.js +12 -0
- package/node_modules/pngjs/lib/png.js +194 -0
- package/node_modules/pngjs/lib/sync-inflate.js +168 -0
- package/node_modules/pngjs/lib/sync-reader.js +45 -0
- package/node_modules/pngjs/package.json +73 -0
- package/node_modules/qrcode/README.md +770 -0
- package/node_modules/qrcode/bin/qrcode +159 -0
- package/node_modules/qrcode/helper/to-sjis-browser.js +2 -0
- package/node_modules/qrcode/helper/to-sjis.js +105 -0
- package/node_modules/qrcode/lib/browser.js +76 -0
- package/node_modules/qrcode/lib/can-promise.js +7 -0
- package/node_modules/qrcode/lib/core/alignment-pattern.js +83 -0
- package/node_modules/qrcode/lib/core/alphanumeric-data.js +59 -0
- package/node_modules/qrcode/lib/core/bit-buffer.js +37 -0
- package/node_modules/qrcode/lib/core/bit-matrix.js +65 -0
- package/node_modules/qrcode/lib/core/byte-data.js +30 -0
- package/node_modules/qrcode/lib/core/error-correction-code.js +135 -0
- package/node_modules/qrcode/lib/core/error-correction-level.js +50 -0
- package/node_modules/qrcode/lib/core/finder-pattern.js +22 -0
- package/node_modules/qrcode/lib/core/format-info.js +29 -0
- package/node_modules/qrcode/lib/core/galois-field.js +69 -0
- package/node_modules/qrcode/lib/core/kanji-data.js +54 -0
- package/node_modules/qrcode/lib/core/mask-pattern.js +234 -0
- package/node_modules/qrcode/lib/core/mode.js +167 -0
- package/node_modules/qrcode/lib/core/numeric-data.js +43 -0
- package/node_modules/qrcode/lib/core/polynomial.js +62 -0
- package/node_modules/qrcode/lib/core/qrcode.js +495 -0
- package/node_modules/qrcode/lib/core/reed-solomon-encoder.js +56 -0
- package/node_modules/qrcode/lib/core/regex.js +31 -0
- package/node_modules/qrcode/lib/core/segments.js +330 -0
- package/node_modules/qrcode/lib/core/utils.js +63 -0
- package/node_modules/qrcode/lib/core/version-check.js +9 -0
- package/node_modules/qrcode/lib/core/version.js +163 -0
- package/node_modules/qrcode/lib/index.js +12 -0
- package/node_modules/qrcode/lib/renderer/canvas.js +63 -0
- package/node_modules/qrcode/lib/renderer/png.js +78 -0
- package/node_modules/qrcode/lib/renderer/svg-tag.js +81 -0
- package/node_modules/qrcode/lib/renderer/svg.js +19 -0
- package/node_modules/qrcode/lib/renderer/terminal/terminal-small.js +85 -0
- package/node_modules/qrcode/lib/renderer/terminal/terminal.js +49 -0
- package/node_modules/qrcode/lib/renderer/terminal.js +9 -0
- package/node_modules/qrcode/lib/renderer/utf8.js +71 -0
- package/node_modules/qrcode/lib/renderer/utils.js +99 -0
- package/node_modules/qrcode/lib/server.js +138 -0
- package/node_modules/qrcode/license +10 -0
- package/node_modules/qrcode/package.json +77 -0
- package/node_modules/require-directory/.jshintrc +67 -0
- package/node_modules/require-directory/.npmignore +1 -0
- package/node_modules/require-directory/.travis.yml +3 -0
- package/node_modules/require-directory/LICENSE +22 -0
- package/node_modules/require-directory/README.markdown +184 -0
- package/node_modules/require-directory/index.js +86 -0
- package/node_modules/require-directory/package.json +40 -0
- package/node_modules/require-main-filename/LICENSE.txt +14 -0
- package/node_modules/require-main-filename/README.md +26 -0
- package/node_modules/require-main-filename/index.js +18 -0
- package/node_modules/require-main-filename/package.json +35 -0
- package/node_modules/set-blocking/LICENSE.txt +14 -0
- package/node_modules/set-blocking/README.md +31 -0
- package/node_modules/set-blocking/index.js +7 -0
- package/node_modules/set-blocking/package.json +42 -0
- package/node_modules/sisteransi/license +21 -0
- package/node_modules/sisteransi/package.json +34 -0
- package/node_modules/sisteransi/readme.md +113 -0
- package/node_modules/sisteransi/src/index.js +58 -0
- package/node_modules/sisteransi/src/sisteransi.d.ts +35 -0
- package/node_modules/string-width/index.d.ts +29 -0
- package/node_modules/string-width/index.js +47 -0
- package/node_modules/string-width/license +9 -0
- package/node_modules/string-width/package.json +56 -0
- package/node_modules/string-width/readme.md +50 -0
- package/node_modules/strip-ansi/index.d.ts +17 -0
- package/node_modules/strip-ansi/index.js +4 -0
- package/node_modules/strip-ansi/license +9 -0
- package/node_modules/strip-ansi/package.json +54 -0
- package/node_modules/strip-ansi/readme.md +46 -0
- package/node_modules/which-module/LICENSE +13 -0
- package/node_modules/which-module/README.md +58 -0
- package/node_modules/which-module/index.js +9 -0
- package/node_modules/which-module/package.json +41 -0
- package/node_modules/wrap-ansi/index.js +186 -0
- package/node_modules/wrap-ansi/license +9 -0
- package/node_modules/wrap-ansi/node_modules/ansi-styles/index.d.ts +345 -0
- package/node_modules/wrap-ansi/node_modules/ansi-styles/index.js +163 -0
- package/node_modules/wrap-ansi/node_modules/ansi-styles/license +9 -0
- package/node_modules/wrap-ansi/node_modules/ansi-styles/package.json +56 -0
- package/node_modules/wrap-ansi/node_modules/ansi-styles/readme.md +152 -0
- package/node_modules/wrap-ansi/package.json +61 -0
- package/node_modules/wrap-ansi/readme.md +97 -0
- package/node_modules/y18n/LICENSE +13 -0
- package/node_modules/y18n/README.md +109 -0
- package/node_modules/y18n/index.js +188 -0
- package/node_modules/y18n/package.json +39 -0
- package/node_modules/yargs/LICENSE +21 -0
- package/node_modules/yargs/README.md +140 -0
- package/node_modules/yargs/build/lib/apply-extends.d.ts +2 -0
- package/node_modules/yargs/build/lib/apply-extends.js +65 -0
- package/node_modules/yargs/build/lib/argsert.d.ts +2 -0
- package/node_modules/yargs/build/lib/argsert.js +65 -0
- package/node_modules/yargs/build/lib/command.d.ts +64 -0
- package/node_modules/yargs/build/lib/command.js +416 -0
- package/node_modules/yargs/build/lib/common-types.d.ts +36 -0
- package/node_modules/yargs/build/lib/common-types.js +25 -0
- package/node_modules/yargs/build/lib/completion-templates.d.ts +2 -0
- package/node_modules/yargs/build/lib/completion-templates.js +50 -0
- package/node_modules/yargs/build/lib/completion.d.ts +21 -0
- package/node_modules/yargs/build/lib/completion.js +135 -0
- package/node_modules/yargs/build/lib/is-promise.d.ts +1 -0
- package/node_modules/yargs/build/lib/is-promise.js +9 -0
- package/node_modules/yargs/build/lib/levenshtein.d.ts +1 -0
- package/node_modules/yargs/build/lib/levenshtein.js +58 -0
- package/node_modules/yargs/build/lib/middleware.d.ts +10 -0
- package/node_modules/yargs/build/lib/middleware.js +57 -0
- package/node_modules/yargs/build/lib/obj-filter.d.ts +1 -0
- package/node_modules/yargs/build/lib/obj-filter.js +14 -0
- package/node_modules/yargs/build/lib/parse-command.d.ts +11 -0
- package/node_modules/yargs/build/lib/parse-command.js +36 -0
- package/node_modules/yargs/build/lib/process-argv.d.ts +2 -0
- package/node_modules/yargs/build/lib/process-argv.js +31 -0
- package/node_modules/yargs/build/lib/usage.d.ts +49 -0
- package/node_modules/yargs/build/lib/usage.js +540 -0
- package/node_modules/yargs/build/lib/validation.d.ts +34 -0
- package/node_modules/yargs/build/lib/validation.js +330 -0
- package/node_modules/yargs/build/lib/yargs.d.ts +274 -0
- package/node_modules/yargs/build/lib/yargs.js +1190 -0
- package/node_modules/yargs/build/lib/yerror.d.ts +4 -0
- package/node_modules/yargs/build/lib/yerror.js +11 -0
- package/node_modules/yargs/index.js +40 -0
- package/node_modules/yargs/locales/be.json +46 -0
- package/node_modules/yargs/locales/de.json +46 -0
- package/node_modules/yargs/locales/en.json +51 -0
- package/node_modules/yargs/locales/es.json +46 -0
- package/node_modules/yargs/locales/fi.json +49 -0
- package/node_modules/yargs/locales/fr.json +53 -0
- package/node_modules/yargs/locales/hi.json +49 -0
- package/node_modules/yargs/locales/hu.json +46 -0
- package/node_modules/yargs/locales/id.json +50 -0
- package/node_modules/yargs/locales/it.json +46 -0
- package/node_modules/yargs/locales/ja.json +51 -0
- package/node_modules/yargs/locales/ko.json +49 -0
- package/node_modules/yargs/locales/nb.json +44 -0
- package/node_modules/yargs/locales/nl.json +49 -0
- package/node_modules/yargs/locales/nn.json +44 -0
- package/node_modules/yargs/locales/pirate.json +13 -0
- package/node_modules/yargs/locales/pl.json +49 -0
- package/node_modules/yargs/locales/pt.json +45 -0
- package/node_modules/yargs/locales/pt_BR.json +48 -0
- package/node_modules/yargs/locales/ru.json +46 -0
- package/node_modules/yargs/locales/th.json +46 -0
- package/node_modules/yargs/locales/tr.json +48 -0
- package/node_modules/yargs/locales/zh_CN.json +48 -0
- package/node_modules/yargs/locales/zh_TW.json +47 -0
- package/node_modules/yargs/package.json +92 -0
- package/node_modules/yargs/yargs.js +14 -0
- package/node_modules/yargs-parser/LICENSE.txt +14 -0
- package/node_modules/yargs-parser/README.md +449 -0
- package/node_modules/yargs-parser/index.js +1032 -0
- package/node_modules/yargs-parser/lib/tokenize-arg-string.js +40 -0
- package/node_modules/yargs-parser/package.json +46 -0
- package/package.json +28 -5
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const wrapAnsi16 = (fn, offset) => (...args) => {
|
|
4
|
+
const code = fn(...args);
|
|
5
|
+
return `\u001B[${code + offset}m`;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
const wrapAnsi256 = (fn, offset) => (...args) => {
|
|
9
|
+
const code = fn(...args);
|
|
10
|
+
return `\u001B[${38 + offset};5;${code}m`;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const wrapAnsi16m = (fn, offset) => (...args) => {
|
|
14
|
+
const rgb = fn(...args);
|
|
15
|
+
return `\u001B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const ansi2ansi = n => n;
|
|
19
|
+
const rgb2rgb = (r, g, b) => [r, g, b];
|
|
20
|
+
|
|
21
|
+
const setLazyProperty = (object, property, get) => {
|
|
22
|
+
Object.defineProperty(object, property, {
|
|
23
|
+
get: () => {
|
|
24
|
+
const value = get();
|
|
25
|
+
|
|
26
|
+
Object.defineProperty(object, property, {
|
|
27
|
+
value,
|
|
28
|
+
enumerable: true,
|
|
29
|
+
configurable: true
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
return value;
|
|
33
|
+
},
|
|
34
|
+
enumerable: true,
|
|
35
|
+
configurable: true
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @type {typeof import('color-convert')} */
|
|
40
|
+
let colorConvert;
|
|
41
|
+
const makeDynamicStyles = (wrap, targetSpace, identity, isBackground) => {
|
|
42
|
+
if (colorConvert === undefined) {
|
|
43
|
+
colorConvert = require('color-convert');
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
const offset = isBackground ? 10 : 0;
|
|
47
|
+
const styles = {};
|
|
48
|
+
|
|
49
|
+
for (const [sourceSpace, suite] of Object.entries(colorConvert)) {
|
|
50
|
+
const name = sourceSpace === 'ansi16' ? 'ansi' : sourceSpace;
|
|
51
|
+
if (sourceSpace === targetSpace) {
|
|
52
|
+
styles[name] = wrap(identity, offset);
|
|
53
|
+
} else if (typeof suite === 'object') {
|
|
54
|
+
styles[name] = wrap(suite[targetSpace], offset);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
return styles;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
function assembleStyles() {
|
|
62
|
+
const codes = new Map();
|
|
63
|
+
const styles = {
|
|
64
|
+
modifier: {
|
|
65
|
+
reset: [0, 0],
|
|
66
|
+
// 21 isn't widely supported and 22 does the same thing
|
|
67
|
+
bold: [1, 22],
|
|
68
|
+
dim: [2, 22],
|
|
69
|
+
italic: [3, 23],
|
|
70
|
+
underline: [4, 24],
|
|
71
|
+
inverse: [7, 27],
|
|
72
|
+
hidden: [8, 28],
|
|
73
|
+
strikethrough: [9, 29]
|
|
74
|
+
},
|
|
75
|
+
color: {
|
|
76
|
+
black: [30, 39],
|
|
77
|
+
red: [31, 39],
|
|
78
|
+
green: [32, 39],
|
|
79
|
+
yellow: [33, 39],
|
|
80
|
+
blue: [34, 39],
|
|
81
|
+
magenta: [35, 39],
|
|
82
|
+
cyan: [36, 39],
|
|
83
|
+
white: [37, 39],
|
|
84
|
+
|
|
85
|
+
// Bright color
|
|
86
|
+
blackBright: [90, 39],
|
|
87
|
+
redBright: [91, 39],
|
|
88
|
+
greenBright: [92, 39],
|
|
89
|
+
yellowBright: [93, 39],
|
|
90
|
+
blueBright: [94, 39],
|
|
91
|
+
magentaBright: [95, 39],
|
|
92
|
+
cyanBright: [96, 39],
|
|
93
|
+
whiteBright: [97, 39]
|
|
94
|
+
},
|
|
95
|
+
bgColor: {
|
|
96
|
+
bgBlack: [40, 49],
|
|
97
|
+
bgRed: [41, 49],
|
|
98
|
+
bgGreen: [42, 49],
|
|
99
|
+
bgYellow: [43, 49],
|
|
100
|
+
bgBlue: [44, 49],
|
|
101
|
+
bgMagenta: [45, 49],
|
|
102
|
+
bgCyan: [46, 49],
|
|
103
|
+
bgWhite: [47, 49],
|
|
104
|
+
|
|
105
|
+
// Bright color
|
|
106
|
+
bgBlackBright: [100, 49],
|
|
107
|
+
bgRedBright: [101, 49],
|
|
108
|
+
bgGreenBright: [102, 49],
|
|
109
|
+
bgYellowBright: [103, 49],
|
|
110
|
+
bgBlueBright: [104, 49],
|
|
111
|
+
bgMagentaBright: [105, 49],
|
|
112
|
+
bgCyanBright: [106, 49],
|
|
113
|
+
bgWhiteBright: [107, 49]
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
// Alias bright black as gray (and grey)
|
|
118
|
+
styles.color.gray = styles.color.blackBright;
|
|
119
|
+
styles.bgColor.bgGray = styles.bgColor.bgBlackBright;
|
|
120
|
+
styles.color.grey = styles.color.blackBright;
|
|
121
|
+
styles.bgColor.bgGrey = styles.bgColor.bgBlackBright;
|
|
122
|
+
|
|
123
|
+
for (const [groupName, group] of Object.entries(styles)) {
|
|
124
|
+
for (const [styleName, style] of Object.entries(group)) {
|
|
125
|
+
styles[styleName] = {
|
|
126
|
+
open: `\u001B[${style[0]}m`,
|
|
127
|
+
close: `\u001B[${style[1]}m`
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
group[styleName] = styles[styleName];
|
|
131
|
+
|
|
132
|
+
codes.set(style[0], style[1]);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
Object.defineProperty(styles, groupName, {
|
|
136
|
+
value: group,
|
|
137
|
+
enumerable: false
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
Object.defineProperty(styles, 'codes', {
|
|
142
|
+
value: codes,
|
|
143
|
+
enumerable: false
|
|
144
|
+
});
|
|
145
|
+
|
|
146
|
+
styles.color.close = '\u001B[39m';
|
|
147
|
+
styles.bgColor.close = '\u001B[49m';
|
|
148
|
+
|
|
149
|
+
setLazyProperty(styles.color, 'ansi', () => makeDynamicStyles(wrapAnsi16, 'ansi16', ansi2ansi, false));
|
|
150
|
+
setLazyProperty(styles.color, 'ansi256', () => makeDynamicStyles(wrapAnsi256, 'ansi256', ansi2ansi, false));
|
|
151
|
+
setLazyProperty(styles.color, 'ansi16m', () => makeDynamicStyles(wrapAnsi16m, 'rgb', rgb2rgb, false));
|
|
152
|
+
setLazyProperty(styles.bgColor, 'ansi', () => makeDynamicStyles(wrapAnsi16, 'ansi16', ansi2ansi, true));
|
|
153
|
+
setLazyProperty(styles.bgColor, 'ansi256', () => makeDynamicStyles(wrapAnsi256, 'ansi256', ansi2ansi, true));
|
|
154
|
+
setLazyProperty(styles.bgColor, 'ansi16m', () => makeDynamicStyles(wrapAnsi16m, 'rgb', rgb2rgb, true));
|
|
155
|
+
|
|
156
|
+
return styles;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
// Make the export immutable
|
|
160
|
+
Object.defineProperty(module, 'exports', {
|
|
161
|
+
enumerable: true,
|
|
162
|
+
get: assembleStyles
|
|
163
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
4
|
+
|
|
5
|
+
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:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
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.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ansi-styles",
|
|
3
|
+
"version": "4.3.0",
|
|
4
|
+
"description": "ANSI escape codes for styling strings in the terminal",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "chalk/ansi-styles",
|
|
7
|
+
"funding": "https://github.com/chalk/ansi-styles?sponsor=1",
|
|
8
|
+
"author": {
|
|
9
|
+
"name": "Sindre Sorhus",
|
|
10
|
+
"email": "sindresorhus@gmail.com",
|
|
11
|
+
"url": "sindresorhus.com"
|
|
12
|
+
},
|
|
13
|
+
"engines": {
|
|
14
|
+
"node": ">=8"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"test": "xo && ava && tsd",
|
|
18
|
+
"screenshot": "svg-term --command='node screenshot' --out=screenshot.svg --padding=3 --width=55 --height=3 --at=1000 --no-cursor"
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"index.js",
|
|
22
|
+
"index.d.ts"
|
|
23
|
+
],
|
|
24
|
+
"keywords": [
|
|
25
|
+
"ansi",
|
|
26
|
+
"styles",
|
|
27
|
+
"color",
|
|
28
|
+
"colour",
|
|
29
|
+
"colors",
|
|
30
|
+
"terminal",
|
|
31
|
+
"console",
|
|
32
|
+
"cli",
|
|
33
|
+
"string",
|
|
34
|
+
"tty",
|
|
35
|
+
"escape",
|
|
36
|
+
"formatting",
|
|
37
|
+
"rgb",
|
|
38
|
+
"256",
|
|
39
|
+
"shell",
|
|
40
|
+
"xterm",
|
|
41
|
+
"log",
|
|
42
|
+
"logging",
|
|
43
|
+
"command-line",
|
|
44
|
+
"text"
|
|
45
|
+
],
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"color-convert": "^2.0.1"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@types/color-convert": "^1.9.0",
|
|
51
|
+
"ava": "^2.3.0",
|
|
52
|
+
"svg-term-cli": "^2.1.1",
|
|
53
|
+
"tsd": "^0.11.0",
|
|
54
|
+
"xo": "^0.25.3"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
# ansi-styles [](https://travis-ci.org/chalk/ansi-styles)
|
|
2
|
+
|
|
3
|
+
> [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles) for styling strings in the terminal
|
|
4
|
+
|
|
5
|
+
You probably want the higher-level [chalk](https://github.com/chalk/chalk) module for styling your strings.
|
|
6
|
+
|
|
7
|
+
<img src="screenshot.svg" width="900">
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
$ npm install ansi-styles
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
```js
|
|
18
|
+
const style = require('ansi-styles');
|
|
19
|
+
|
|
20
|
+
console.log(`${style.green.open}Hello world!${style.green.close}`);
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
// Color conversion between 16/256/truecolor
|
|
24
|
+
// NOTE: If conversion goes to 16 colors or 256 colors, the original color
|
|
25
|
+
// may be degraded to fit that color palette. This means terminals
|
|
26
|
+
// that do not support 16 million colors will best-match the
|
|
27
|
+
// original color.
|
|
28
|
+
console.log(style.bgColor.ansi.hsl(120, 80, 72) + 'Hello world!' + style.bgColor.close);
|
|
29
|
+
console.log(style.color.ansi256.rgb(199, 20, 250) + 'Hello world!' + style.color.close);
|
|
30
|
+
console.log(style.color.ansi16m.hex('#abcdef') + 'Hello world!' + style.color.close);
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## API
|
|
34
|
+
|
|
35
|
+
Each style has an `open` and `close` property.
|
|
36
|
+
|
|
37
|
+
## Styles
|
|
38
|
+
|
|
39
|
+
### Modifiers
|
|
40
|
+
|
|
41
|
+
- `reset`
|
|
42
|
+
- `bold`
|
|
43
|
+
- `dim`
|
|
44
|
+
- `italic` *(Not widely supported)*
|
|
45
|
+
- `underline`
|
|
46
|
+
- `inverse`
|
|
47
|
+
- `hidden`
|
|
48
|
+
- `strikethrough` *(Not widely supported)*
|
|
49
|
+
|
|
50
|
+
### Colors
|
|
51
|
+
|
|
52
|
+
- `black`
|
|
53
|
+
- `red`
|
|
54
|
+
- `green`
|
|
55
|
+
- `yellow`
|
|
56
|
+
- `blue`
|
|
57
|
+
- `magenta`
|
|
58
|
+
- `cyan`
|
|
59
|
+
- `white`
|
|
60
|
+
- `blackBright` (alias: `gray`, `grey`)
|
|
61
|
+
- `redBright`
|
|
62
|
+
- `greenBright`
|
|
63
|
+
- `yellowBright`
|
|
64
|
+
- `blueBright`
|
|
65
|
+
- `magentaBright`
|
|
66
|
+
- `cyanBright`
|
|
67
|
+
- `whiteBright`
|
|
68
|
+
|
|
69
|
+
### Background colors
|
|
70
|
+
|
|
71
|
+
- `bgBlack`
|
|
72
|
+
- `bgRed`
|
|
73
|
+
- `bgGreen`
|
|
74
|
+
- `bgYellow`
|
|
75
|
+
- `bgBlue`
|
|
76
|
+
- `bgMagenta`
|
|
77
|
+
- `bgCyan`
|
|
78
|
+
- `bgWhite`
|
|
79
|
+
- `bgBlackBright` (alias: `bgGray`, `bgGrey`)
|
|
80
|
+
- `bgRedBright`
|
|
81
|
+
- `bgGreenBright`
|
|
82
|
+
- `bgYellowBright`
|
|
83
|
+
- `bgBlueBright`
|
|
84
|
+
- `bgMagentaBright`
|
|
85
|
+
- `bgCyanBright`
|
|
86
|
+
- `bgWhiteBright`
|
|
87
|
+
|
|
88
|
+
## Advanced usage
|
|
89
|
+
|
|
90
|
+
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.
|
|
91
|
+
|
|
92
|
+
- `style.modifier`
|
|
93
|
+
- `style.color`
|
|
94
|
+
- `style.bgColor`
|
|
95
|
+
|
|
96
|
+
###### Example
|
|
97
|
+
|
|
98
|
+
```js
|
|
99
|
+
console.log(style.color.green.open);
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
Raw escape codes (i.e. without the CSI escape prefix `\u001B[` and render mode postfix `m`) are available under `style.codes`, which returns a `Map` with the open codes as keys and close codes as values.
|
|
103
|
+
|
|
104
|
+
###### Example
|
|
105
|
+
|
|
106
|
+
```js
|
|
107
|
+
console.log(style.codes.get(36));
|
|
108
|
+
//=> 39
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
## [256 / 16 million (TrueColor) support](https://gist.github.com/XVilka/8346728)
|
|
112
|
+
|
|
113
|
+
`ansi-styles` uses the [`color-convert`](https://github.com/Qix-/color-convert) package to allow for converting between various colors and ANSI escapes, with support for 256 and 16 million colors.
|
|
114
|
+
|
|
115
|
+
The following color spaces from `color-convert` are supported:
|
|
116
|
+
|
|
117
|
+
- `rgb`
|
|
118
|
+
- `hex`
|
|
119
|
+
- `keyword`
|
|
120
|
+
- `hsl`
|
|
121
|
+
- `hsv`
|
|
122
|
+
- `hwb`
|
|
123
|
+
- `ansi`
|
|
124
|
+
- `ansi256`
|
|
125
|
+
|
|
126
|
+
To use these, call the associated conversion function with the intended output, for example:
|
|
127
|
+
|
|
128
|
+
```js
|
|
129
|
+
style.color.ansi.rgb(100, 200, 15); // RGB to 16 color ansi foreground code
|
|
130
|
+
style.bgColor.ansi.rgb(100, 200, 15); // RGB to 16 color ansi background code
|
|
131
|
+
|
|
132
|
+
style.color.ansi256.hsl(120, 100, 60); // HSL to 256 color ansi foreground code
|
|
133
|
+
style.bgColor.ansi256.hsl(120, 100, 60); // HSL to 256 color ansi foreground code
|
|
134
|
+
|
|
135
|
+
style.color.ansi16m.hex('#C0FFEE'); // Hex (RGB) to 16 million color foreground code
|
|
136
|
+
style.bgColor.ansi16m.hex('#C0FFEE'); // Hex (RGB) to 16 million color background code
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
## Related
|
|
140
|
+
|
|
141
|
+
- [ansi-escapes](https://github.com/sindresorhus/ansi-escapes) - ANSI escape codes for manipulating the terminal
|
|
142
|
+
|
|
143
|
+
## Maintainers
|
|
144
|
+
|
|
145
|
+
- [Sindre Sorhus](https://github.com/sindresorhus)
|
|
146
|
+
- [Josh Junon](https://github.com/qix-)
|
|
147
|
+
|
|
148
|
+
## For enterprise
|
|
149
|
+
|
|
150
|
+
Available as part of the Tidelift Subscription.
|
|
151
|
+
|
|
152
|
+
The maintainers of `ansi-styles` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-ansi-styles?utm_source=npm-ansi-styles&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "wrap-ansi",
|
|
3
|
+
"version": "6.2.0",
|
|
4
|
+
"description": "Wordwrap a string with ANSI escape codes",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "chalk/wrap-ansi",
|
|
7
|
+
"author": {
|
|
8
|
+
"name": "Sindre Sorhus",
|
|
9
|
+
"email": "sindresorhus@gmail.com",
|
|
10
|
+
"url": "sindresorhus.com"
|
|
11
|
+
},
|
|
12
|
+
"engines": {
|
|
13
|
+
"node": ">=8"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"test": "xo && nyc ava"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"index.js"
|
|
20
|
+
],
|
|
21
|
+
"keywords": [
|
|
22
|
+
"wrap",
|
|
23
|
+
"break",
|
|
24
|
+
"wordwrap",
|
|
25
|
+
"wordbreak",
|
|
26
|
+
"linewrap",
|
|
27
|
+
"ansi",
|
|
28
|
+
"styles",
|
|
29
|
+
"color",
|
|
30
|
+
"colour",
|
|
31
|
+
"colors",
|
|
32
|
+
"terminal",
|
|
33
|
+
"console",
|
|
34
|
+
"cli",
|
|
35
|
+
"string",
|
|
36
|
+
"tty",
|
|
37
|
+
"escape",
|
|
38
|
+
"formatting",
|
|
39
|
+
"rgb",
|
|
40
|
+
"256",
|
|
41
|
+
"shell",
|
|
42
|
+
"xterm",
|
|
43
|
+
"log",
|
|
44
|
+
"logging",
|
|
45
|
+
"command-line",
|
|
46
|
+
"text"
|
|
47
|
+
],
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"ansi-styles": "^4.0.0",
|
|
50
|
+
"string-width": "^4.1.0",
|
|
51
|
+
"strip-ansi": "^6.0.0"
|
|
52
|
+
},
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"ava": "^2.1.0",
|
|
55
|
+
"chalk": "^2.4.2",
|
|
56
|
+
"coveralls": "^3.0.3",
|
|
57
|
+
"has-ansi": "^3.0.0",
|
|
58
|
+
"nyc": "^14.1.1",
|
|
59
|
+
"xo": "^0.24.0"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# wrap-ansi [](https://travis-ci.org/chalk/wrap-ansi) [](https://coveralls.io/github/chalk/wrap-ansi?branch=master)
|
|
2
|
+
|
|
3
|
+
> Wordwrap a string with [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Install
|
|
7
|
+
|
|
8
|
+
```
|
|
9
|
+
$ npm install wrap-ansi
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
const chalk = require('chalk');
|
|
17
|
+
const wrapAnsi = require('wrap-ansi');
|
|
18
|
+
|
|
19
|
+
const input = 'The quick brown ' + chalk.red('fox jumped over ') +
|
|
20
|
+
'the lazy ' + chalk.green('dog and then ran away with the unicorn.');
|
|
21
|
+
|
|
22
|
+
console.log(wrapAnsi(input, 20));
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
<img width="331" src="screenshot.png">
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
## API
|
|
29
|
+
|
|
30
|
+
### wrapAnsi(string, columns, options?)
|
|
31
|
+
|
|
32
|
+
Wrap words to the specified column width.
|
|
33
|
+
|
|
34
|
+
#### string
|
|
35
|
+
|
|
36
|
+
Type: `string`
|
|
37
|
+
|
|
38
|
+
String with ANSI escape codes. Like one styled by [`chalk`](https://github.com/chalk/chalk). Newline characters will be normalized to `\n`.
|
|
39
|
+
|
|
40
|
+
#### columns
|
|
41
|
+
|
|
42
|
+
Type: `number`
|
|
43
|
+
|
|
44
|
+
Number of columns to wrap the text to.
|
|
45
|
+
|
|
46
|
+
#### options
|
|
47
|
+
|
|
48
|
+
Type: `object`
|
|
49
|
+
|
|
50
|
+
##### hard
|
|
51
|
+
|
|
52
|
+
Type: `boolean`<br>
|
|
53
|
+
Default: `false`
|
|
54
|
+
|
|
55
|
+
By default the wrap is soft, meaning long words may extend past the column width. Setting this to `true` will make it hard wrap at the column width.
|
|
56
|
+
|
|
57
|
+
##### wordWrap
|
|
58
|
+
|
|
59
|
+
Type: `boolean`<br>
|
|
60
|
+
Default: `true`
|
|
61
|
+
|
|
62
|
+
By default, an attempt is made to split words at spaces, ensuring that they don't extend past the configured columns. If wordWrap is `false`, each column will instead be completely filled splitting words as necessary.
|
|
63
|
+
|
|
64
|
+
##### trim
|
|
65
|
+
|
|
66
|
+
Type: `boolean`<br>
|
|
67
|
+
Default: `true`
|
|
68
|
+
|
|
69
|
+
Whitespace on all lines is removed by default. Set this option to `false` if you don't want to trim.
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
## Related
|
|
73
|
+
|
|
74
|
+
- [slice-ansi](https://github.com/chalk/slice-ansi) - Slice a string with ANSI escape codes
|
|
75
|
+
- [cli-truncate](https://github.com/sindresorhus/cli-truncate) - Truncate a string to a specific width in the terminal
|
|
76
|
+
- [chalk](https://github.com/chalk/chalk) - Terminal string styling done right
|
|
77
|
+
- [jsesc](https://github.com/mathiasbynens/jsesc) - Generate ASCII-only output from Unicode strings. Useful for creating test fixtures.
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
## Maintainers
|
|
81
|
+
|
|
82
|
+
- [Sindre Sorhus](https://github.com/sindresorhus)
|
|
83
|
+
- [Josh Junon](https://github.com/qix-)
|
|
84
|
+
- [Benjamin Coe](https://github.com/bcoe)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
<div align="center">
|
|
90
|
+
<b>
|
|
91
|
+
<a href="https://tidelift.com/subscription/pkg/npm-wrap_ansi?utm_source=npm-wrap-ansi&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
|
|
92
|
+
</b>
|
|
93
|
+
<br>
|
|
94
|
+
<sub>
|
|
95
|
+
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
|
|
96
|
+
</sub>
|
|
97
|
+
</div>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Copyright (c) 2015, Contributors
|
|
2
|
+
|
|
3
|
+
Permission to use, copy, modify, and/or distribute this software for any purpose
|
|
4
|
+
with or without fee is hereby granted, provided that the above copyright notice
|
|
5
|
+
and this permission notice appear in all copies.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
9
|
+
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
|
11
|
+
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
|
12
|
+
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
|
13
|
+
THIS SOFTWARE.
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
# y18n
|
|
2
|
+
|
|
3
|
+
[![Build Status][travis-image]][travis-url]
|
|
4
|
+
[![Coverage Status][coveralls-image]][coveralls-url]
|
|
5
|
+
[![NPM version][npm-image]][npm-url]
|
|
6
|
+
[![js-standard-style][standard-image]][standard-url]
|
|
7
|
+
[](https://conventionalcommits.org)
|
|
8
|
+
|
|
9
|
+
The bare-bones internationalization library used by yargs.
|
|
10
|
+
|
|
11
|
+
Inspired by [i18n](https://www.npmjs.com/package/i18n).
|
|
12
|
+
|
|
13
|
+
## Examples
|
|
14
|
+
|
|
15
|
+
_simple string translation:_
|
|
16
|
+
|
|
17
|
+
```js
|
|
18
|
+
var __ = require('y18n').__
|
|
19
|
+
|
|
20
|
+
console.log(__('my awesome string %s', 'foo'))
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
output:
|
|
24
|
+
|
|
25
|
+
`my awesome string foo`
|
|
26
|
+
|
|
27
|
+
_using tagged template literals_
|
|
28
|
+
|
|
29
|
+
```js
|
|
30
|
+
var __ = require('y18n').__
|
|
31
|
+
var str = 'foo'
|
|
32
|
+
|
|
33
|
+
console.log(__`my awesome string ${str}`)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
output:
|
|
37
|
+
|
|
38
|
+
`my awesome string foo`
|
|
39
|
+
|
|
40
|
+
_pluralization support:_
|
|
41
|
+
|
|
42
|
+
```js
|
|
43
|
+
var __n = require('y18n').__n
|
|
44
|
+
|
|
45
|
+
console.log(__n('one fish %s', '%d fishes %s', 2, 'foo'))
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
output:
|
|
49
|
+
|
|
50
|
+
`2 fishes foo`
|
|
51
|
+
|
|
52
|
+
## JSON Language Files
|
|
53
|
+
|
|
54
|
+
The JSON language files should be stored in a `./locales` folder.
|
|
55
|
+
File names correspond to locales, e.g., `en.json`, `pirate.json`.
|
|
56
|
+
|
|
57
|
+
When strings are observed for the first time they will be
|
|
58
|
+
added to the JSON file corresponding to the current locale.
|
|
59
|
+
|
|
60
|
+
## Methods
|
|
61
|
+
|
|
62
|
+
### require('y18n')(config)
|
|
63
|
+
|
|
64
|
+
Create an instance of y18n with the config provided, options include:
|
|
65
|
+
|
|
66
|
+
* `directory`: the locale directory, default `./locales`.
|
|
67
|
+
* `updateFiles`: should newly observed strings be updated in file, default `true`.
|
|
68
|
+
* `locale`: what locale should be used.
|
|
69
|
+
* `fallbackToLanguage`: should fallback to a language-only file (e.g. `en.json`)
|
|
70
|
+
be allowed if a file matching the locale does not exist (e.g. `en_US.json`),
|
|
71
|
+
default `true`.
|
|
72
|
+
|
|
73
|
+
### y18n.\_\_(str, arg, arg, arg)
|
|
74
|
+
|
|
75
|
+
Print a localized string, `%s` will be replaced with `arg`s.
|
|
76
|
+
|
|
77
|
+
This function can also be used as a tag for a template literal. You can use it
|
|
78
|
+
like this: <code>__`hello ${'world'}`</code>. This will be equivalent to
|
|
79
|
+
`__('hello %s', 'world')`.
|
|
80
|
+
|
|
81
|
+
### y18n.\_\_n(singularString, pluralString, count, arg, arg, arg)
|
|
82
|
+
|
|
83
|
+
Print a localized string with appropriate pluralization. If `%d` is provided
|
|
84
|
+
in the string, the `count` will replace this placeholder.
|
|
85
|
+
|
|
86
|
+
### y18n.setLocale(str)
|
|
87
|
+
|
|
88
|
+
Set the current locale being used.
|
|
89
|
+
|
|
90
|
+
### y18n.getLocale()
|
|
91
|
+
|
|
92
|
+
What locale is currently being used?
|
|
93
|
+
|
|
94
|
+
### y18n.updateLocale(obj)
|
|
95
|
+
|
|
96
|
+
Update the current locale with the key value pairs in `obj`.
|
|
97
|
+
|
|
98
|
+
## License
|
|
99
|
+
|
|
100
|
+
ISC
|
|
101
|
+
|
|
102
|
+
[travis-url]: https://travis-ci.org/yargs/y18n
|
|
103
|
+
[travis-image]: https://img.shields.io/travis/yargs/y18n.svg
|
|
104
|
+
[coveralls-url]: https://coveralls.io/github/yargs/y18n
|
|
105
|
+
[coveralls-image]: https://img.shields.io/coveralls/yargs/y18n.svg
|
|
106
|
+
[npm-url]: https://npmjs.org/package/y18n
|
|
107
|
+
[npm-image]: https://img.shields.io/npm/v/y18n.svg
|
|
108
|
+
[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg
|
|
109
|
+
[standard-url]: https://github.com/feross/standard
|