korext 0.1.0
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/bin/korext.js +278 -0
- package/korext-cli-0.1.0.tgz +0 -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/ansi-styles/index.d.ts +345 -0
- package/node_modules/ansi-styles/index.js +163 -0
- package/node_modules/ansi-styles/license +9 -0
- package/node_modules/ansi-styles/package.json +56 -0
- package/node_modules/ansi-styles/readme.md +152 -0
- package/node_modules/balanced-match/LICENSE.md +23 -0
- package/node_modules/balanced-match/README.md +57 -0
- package/node_modules/balanced-match/dist/commonjs/index.d.ts +9 -0
- package/node_modules/balanced-match/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/balanced-match/dist/commonjs/index.js +59 -0
- package/node_modules/balanced-match/dist/commonjs/index.js.map +1 -0
- package/node_modules/balanced-match/dist/commonjs/package.json +3 -0
- package/node_modules/balanced-match/dist/esm/index.d.ts +9 -0
- package/node_modules/balanced-match/dist/esm/index.d.ts.map +1 -0
- package/node_modules/balanced-match/dist/esm/index.js +54 -0
- package/node_modules/balanced-match/dist/esm/index.js.map +1 -0
- package/node_modules/balanced-match/dist/esm/package.json +3 -0
- package/node_modules/balanced-match/package.json +68 -0
- package/node_modules/base64-js/LICENSE +21 -0
- package/node_modules/base64-js/README.md +34 -0
- package/node_modules/base64-js/base64js.min.js +1 -0
- package/node_modules/base64-js/index.d.ts +3 -0
- package/node_modules/base64-js/index.js +150 -0
- package/node_modules/base64-js/package.json +47 -0
- package/node_modules/bl/.travis.yml +17 -0
- package/node_modules/bl/BufferList.js +396 -0
- package/node_modules/bl/LICENSE.md +13 -0
- package/node_modules/bl/README.md +247 -0
- package/node_modules/bl/bl.js +84 -0
- package/node_modules/bl/package.json +37 -0
- package/node_modules/bl/test/convert.js +21 -0
- package/node_modules/bl/test/indexOf.js +492 -0
- package/node_modules/bl/test/isBufferList.js +32 -0
- package/node_modules/bl/test/test.js +869 -0
- package/node_modules/brace-expansion/LICENSE +23 -0
- package/node_modules/brace-expansion/README.md +94 -0
- package/node_modules/brace-expansion/dist/commonjs/index.d.ts +6 -0
- package/node_modules/brace-expansion/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/brace-expansion/dist/commonjs/index.js +199 -0
- package/node_modules/brace-expansion/dist/commonjs/index.js.map +1 -0
- package/node_modules/brace-expansion/dist/commonjs/package.json +3 -0
- package/node_modules/brace-expansion/dist/esm/index.d.ts +6 -0
- package/node_modules/brace-expansion/dist/esm/index.d.ts.map +1 -0
- package/node_modules/brace-expansion/dist/esm/index.js +195 -0
- package/node_modules/brace-expansion/dist/esm/index.js.map +1 -0
- package/node_modules/brace-expansion/dist/esm/package.json +3 -0
- package/node_modules/brace-expansion/package.json +64 -0
- package/node_modules/buffer/AUTHORS.md +70 -0
- package/node_modules/buffer/LICENSE +21 -0
- package/node_modules/buffer/README.md +410 -0
- package/node_modules/buffer/index.d.ts +186 -0
- package/node_modules/buffer/index.js +1817 -0
- package/node_modules/buffer/package.json +96 -0
- package/node_modules/chalk/index.d.ts +415 -0
- package/node_modules/chalk/license +9 -0
- package/node_modules/chalk/package.json +68 -0
- package/node_modules/chalk/readme.md +341 -0
- package/node_modules/chalk/source/index.js +229 -0
- package/node_modules/chalk/source/templates.js +134 -0
- package/node_modules/chalk/source/util.js +39 -0
- package/node_modules/cli-cursor/index.d.ts +45 -0
- package/node_modules/cli-cursor/index.js +35 -0
- package/node_modules/cli-cursor/license +9 -0
- package/node_modules/cli-cursor/package.json +46 -0
- package/node_modules/cli-cursor/readme.md +55 -0
- package/node_modules/cli-spinners/index.d.ts +128 -0
- package/node_modules/cli-spinners/index.js +15 -0
- package/node_modules/cli-spinners/license +9 -0
- package/node_modules/cli-spinners/package.json +50 -0
- package/node_modules/cli-spinners/readme.md +54 -0
- package/node_modules/cli-spinners/spinners.json +1622 -0
- package/node_modules/clone/.npmignore +4 -0
- package/node_modules/clone/LICENSE +18 -0
- package/node_modules/clone/README.md +126 -0
- package/node_modules/clone/clone.iml +10 -0
- package/node_modules/clone/clone.js +166 -0
- package/node_modules/clone/package.json +51 -0
- package/node_modules/color-convert/CHANGELOG.md +54 -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 +1176 -0
- package/node_modules/commander/esm.mjs +16 -0
- package/node_modules/commander/index.js +24 -0
- package/node_modules/commander/lib/argument.js +150 -0
- package/node_modules/commander/lib/command.js +2777 -0
- package/node_modules/commander/lib/error.js +39 -0
- package/node_modules/commander/lib/help.js +747 -0
- package/node_modules/commander/lib/option.js +380 -0
- package/node_modules/commander/lib/suggestSimilar.js +101 -0
- package/node_modules/commander/package-support.json +19 -0
- package/node_modules/commander/package.json +82 -0
- package/node_modules/commander/typings/esm.d.mts +3 -0
- package/node_modules/commander/typings/index.d.ts +1113 -0
- package/node_modules/data-uri-to-buffer/README.md +88 -0
- package/node_modules/data-uri-to-buffer/dist/index.d.ts +15 -0
- package/node_modules/data-uri-to-buffer/dist/index.js +53 -0
- package/node_modules/data-uri-to-buffer/dist/index.js.map +1 -0
- package/node_modules/data-uri-to-buffer/package.json +62 -0
- package/node_modules/data-uri-to-buffer/src/index.ts +68 -0
- package/node_modules/defaults/LICENSE +22 -0
- package/node_modules/defaults/README.md +39 -0
- package/node_modules/defaults/index.js +13 -0
- package/node_modules/defaults/package.json +33 -0
- package/node_modules/defaults/test.js +34 -0
- package/node_modules/fetch-blob/LICENSE +21 -0
- package/node_modules/fetch-blob/README.md +106 -0
- package/node_modules/fetch-blob/file.d.ts +2 -0
- package/node_modules/fetch-blob/file.js +49 -0
- package/node_modules/fetch-blob/from.d.ts +26 -0
- package/node_modules/fetch-blob/from.js +100 -0
- package/node_modules/fetch-blob/index.d.ts +3 -0
- package/node_modules/fetch-blob/index.js +250 -0
- package/node_modules/fetch-blob/package.json +56 -0
- package/node_modules/fetch-blob/streams.cjs +51 -0
- package/node_modules/formdata-polyfill/FormData.js +441 -0
- package/node_modules/formdata-polyfill/LICENSE +21 -0
- package/node_modules/formdata-polyfill/README.md +145 -0
- package/node_modules/formdata-polyfill/esm.min.d.ts +5 -0
- package/node_modules/formdata-polyfill/esm.min.js +40 -0
- package/node_modules/formdata-polyfill/formdata-to-blob.js +39 -0
- package/node_modules/formdata-polyfill/formdata.min.js +21 -0
- package/node_modules/formdata-polyfill/package.json +50 -0
- package/node_modules/glob/LICENSE.md +63 -0
- package/node_modules/glob/README.md +1203 -0
- package/node_modules/glob/dist/commonjs/glob.d.ts +396 -0
- package/node_modules/glob/dist/commonjs/glob.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/glob.js +248 -0
- package/node_modules/glob/dist/commonjs/glob.js.map +1 -0
- package/node_modules/glob/dist/commonjs/has-magic.d.ts +14 -0
- package/node_modules/glob/dist/commonjs/has-magic.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/has-magic.js +27 -0
- package/node_modules/glob/dist/commonjs/has-magic.js.map +1 -0
- package/node_modules/glob/dist/commonjs/ignore.d.ts +24 -0
- package/node_modules/glob/dist/commonjs/ignore.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/ignore.js +119 -0
- package/node_modules/glob/dist/commonjs/ignore.js.map +1 -0
- package/node_modules/glob/dist/commonjs/index.d.ts +97 -0
- package/node_modules/glob/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/index.js +68 -0
- package/node_modules/glob/dist/commonjs/index.js.map +1 -0
- package/node_modules/glob/dist/commonjs/index.min.js +4 -0
- package/node_modules/glob/dist/commonjs/index.min.js.map +7 -0
- package/node_modules/glob/dist/commonjs/package.json +3 -0
- package/node_modules/glob/dist/commonjs/pattern.d.ts +79 -0
- package/node_modules/glob/dist/commonjs/pattern.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/pattern.js +223 -0
- package/node_modules/glob/dist/commonjs/pattern.js.map +1 -0
- package/node_modules/glob/dist/commonjs/processor.d.ts +59 -0
- package/node_modules/glob/dist/commonjs/processor.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/processor.js +301 -0
- package/node_modules/glob/dist/commonjs/processor.js.map +1 -0
- package/node_modules/glob/dist/commonjs/walker.d.ts +97 -0
- package/node_modules/glob/dist/commonjs/walker.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/walker.js +387 -0
- package/node_modules/glob/dist/commonjs/walker.js.map +1 -0
- package/node_modules/glob/dist/esm/glob.d.ts +396 -0
- package/node_modules/glob/dist/esm/glob.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/glob.js +244 -0
- package/node_modules/glob/dist/esm/glob.js.map +1 -0
- package/node_modules/glob/dist/esm/has-magic.d.ts +14 -0
- package/node_modules/glob/dist/esm/has-magic.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/has-magic.js +23 -0
- package/node_modules/glob/dist/esm/has-magic.js.map +1 -0
- package/node_modules/glob/dist/esm/ignore.d.ts +24 -0
- package/node_modules/glob/dist/esm/ignore.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/ignore.js +115 -0
- package/node_modules/glob/dist/esm/ignore.js.map +1 -0
- package/node_modules/glob/dist/esm/index.d.ts +97 -0
- package/node_modules/glob/dist/esm/index.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/index.js +55 -0
- package/node_modules/glob/dist/esm/index.js.map +1 -0
- package/node_modules/glob/dist/esm/index.min.js +4 -0
- package/node_modules/glob/dist/esm/index.min.js.map +7 -0
- package/node_modules/glob/dist/esm/package.json +3 -0
- package/node_modules/glob/dist/esm/pattern.d.ts +79 -0
- package/node_modules/glob/dist/esm/pattern.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/pattern.js +219 -0
- package/node_modules/glob/dist/esm/pattern.js.map +1 -0
- package/node_modules/glob/dist/esm/processor.d.ts +59 -0
- package/node_modules/glob/dist/esm/processor.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/processor.js +294 -0
- package/node_modules/glob/dist/esm/processor.js.map +1 -0
- package/node_modules/glob/dist/esm/walker.d.ts +97 -0
- package/node_modules/glob/dist/esm/walker.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/walker.js +381 -0
- package/node_modules/glob/dist/esm/walker.js.map +1 -0
- package/node_modules/glob/package.json +98 -0
- package/node_modules/has-flag/index.d.ts +39 -0
- package/node_modules/has-flag/index.js +8 -0
- package/node_modules/has-flag/license +9 -0
- package/node_modules/has-flag/package.json +46 -0
- package/node_modules/has-flag/readme.md +89 -0
- package/node_modules/ieee754/LICENSE +11 -0
- package/node_modules/ieee754/README.md +51 -0
- package/node_modules/ieee754/index.d.ts +10 -0
- package/node_modules/ieee754/index.js +85 -0
- package/node_modules/ieee754/package.json +52 -0
- package/node_modules/inherits/LICENSE +16 -0
- package/node_modules/inherits/README.md +42 -0
- package/node_modules/inherits/inherits.js +9 -0
- package/node_modules/inherits/inherits_browser.js +27 -0
- package/node_modules/inherits/package.json +29 -0
- package/node_modules/is-interactive/index.d.ts +31 -0
- package/node_modules/is-interactive/index.js +9 -0
- package/node_modules/is-interactive/license +9 -0
- package/node_modules/is-interactive/package.json +38 -0
- package/node_modules/is-interactive/readme.md +51 -0
- package/node_modules/is-unicode-supported/index.d.ts +14 -0
- package/node_modules/is-unicode-supported/index.js +13 -0
- package/node_modules/is-unicode-supported/license +9 -0
- package/node_modules/is-unicode-supported/package.json +41 -0
- package/node_modules/is-unicode-supported/readme.md +35 -0
- package/node_modules/log-symbols/browser.js +8 -0
- package/node_modules/log-symbols/index.d.ts +25 -0
- package/node_modules/log-symbols/index.js +19 -0
- package/node_modules/log-symbols/license +9 -0
- package/node_modules/log-symbols/package.json +52 -0
- package/node_modules/log-symbols/readme.md +51 -0
- package/node_modules/lru-cache/LICENSE.md +55 -0
- package/node_modules/lru-cache/README.md +383 -0
- package/node_modules/lru-cache/dist/commonjs/index.d.ts +1323 -0
- package/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/index.js +1595 -0
- package/node_modules/lru-cache/dist/commonjs/index.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
- package/node_modules/lru-cache/dist/commonjs/index.min.js.map +7 -0
- package/node_modules/lru-cache/dist/commonjs/package.json +3 -0
- package/node_modules/lru-cache/dist/esm/index.d.ts +1323 -0
- package/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/index.js +1591 -0
- package/node_modules/lru-cache/dist/esm/index.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/index.min.js +2 -0
- package/node_modules/lru-cache/dist/esm/index.min.js.map +7 -0
- package/node_modules/lru-cache/dist/esm/package.json +3 -0
- package/node_modules/lru-cache/package.json +93 -0
- package/node_modules/mimic-fn/index.d.ts +54 -0
- package/node_modules/mimic-fn/index.js +13 -0
- package/node_modules/mimic-fn/license +9 -0
- package/node_modules/mimic-fn/package.json +42 -0
- package/node_modules/mimic-fn/readme.md +69 -0
- package/node_modules/minimatch/LICENSE.md +55 -0
- package/node_modules/minimatch/README.md +528 -0
- package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts +2 -0
- package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts.map +1 -0
- package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +14 -0
- package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +1 -0
- package/node_modules/minimatch/dist/commonjs/ast.d.ts +22 -0
- package/node_modules/minimatch/dist/commonjs/ast.d.ts.map +1 -0
- package/node_modules/minimatch/dist/commonjs/ast.js +846 -0
- package/node_modules/minimatch/dist/commonjs/ast.js.map +1 -0
- package/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts +8 -0
- package/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +1 -0
- package/node_modules/minimatch/dist/commonjs/brace-expressions.js +150 -0
- package/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +1 -0
- package/node_modules/minimatch/dist/commonjs/escape.d.ts +15 -0
- package/node_modules/minimatch/dist/commonjs/escape.d.ts.map +1 -0
- package/node_modules/minimatch/dist/commonjs/escape.js +30 -0
- package/node_modules/minimatch/dist/commonjs/escape.js.map +1 -0
- package/node_modules/minimatch/dist/commonjs/index.d.ts +174 -0
- package/node_modules/minimatch/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/minimatch/dist/commonjs/index.js +1121 -0
- package/node_modules/minimatch/dist/commonjs/index.js.map +1 -0
- package/node_modules/minimatch/dist/commonjs/package.json +3 -0
- package/node_modules/minimatch/dist/commonjs/unescape.d.ts +22 -0
- package/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +1 -0
- package/node_modules/minimatch/dist/commonjs/unescape.js +38 -0
- package/node_modules/minimatch/dist/commonjs/unescape.js.map +1 -0
- package/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts +2 -0
- package/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts.map +1 -0
- package/node_modules/minimatch/dist/esm/assert-valid-pattern.js +10 -0
- package/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +1 -0
- package/node_modules/minimatch/dist/esm/ast.d.ts +22 -0
- package/node_modules/minimatch/dist/esm/ast.d.ts.map +1 -0
- package/node_modules/minimatch/dist/esm/ast.js +842 -0
- package/node_modules/minimatch/dist/esm/ast.js.map +1 -0
- package/node_modules/minimatch/dist/esm/brace-expressions.d.ts +8 -0
- package/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +1 -0
- package/node_modules/minimatch/dist/esm/brace-expressions.js +146 -0
- package/node_modules/minimatch/dist/esm/brace-expressions.js.map +1 -0
- package/node_modules/minimatch/dist/esm/escape.d.ts +15 -0
- package/node_modules/minimatch/dist/esm/escape.d.ts.map +1 -0
- package/node_modules/minimatch/dist/esm/escape.js +26 -0
- package/node_modules/minimatch/dist/esm/escape.js.map +1 -0
- package/node_modules/minimatch/dist/esm/index.d.ts +174 -0
- package/node_modules/minimatch/dist/esm/index.d.ts.map +1 -0
- package/node_modules/minimatch/dist/esm/index.js +1108 -0
- package/node_modules/minimatch/dist/esm/index.js.map +1 -0
- package/node_modules/minimatch/dist/esm/package.json +3 -0
- package/node_modules/minimatch/dist/esm/unescape.d.ts +22 -0
- package/node_modules/minimatch/dist/esm/unescape.d.ts.map +1 -0
- package/node_modules/minimatch/dist/esm/unescape.js +34 -0
- package/node_modules/minimatch/dist/esm/unescape.js.map +1 -0
- package/node_modules/minimatch/package.json +67 -0
- package/node_modules/minipass/LICENSE.md +55 -0
- package/node_modules/minipass/README.md +825 -0
- package/node_modules/minipass/dist/commonjs/index.d.ts +545 -0
- package/node_modules/minipass/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/minipass/dist/commonjs/index.js +1038 -0
- package/node_modules/minipass/dist/commonjs/index.js.map +1 -0
- package/node_modules/minipass/dist/commonjs/package.json +3 -0
- package/node_modules/minipass/dist/esm/index.d.ts +545 -0
- package/node_modules/minipass/dist/esm/index.d.ts.map +1 -0
- package/node_modules/minipass/dist/esm/index.js +1020 -0
- package/node_modules/minipass/dist/esm/index.js.map +1 -0
- package/node_modules/minipass/dist/esm/package.json +3 -0
- package/node_modules/minipass/package.json +77 -0
- package/node_modules/node-domexception/.history/README_20210527203617.md +2 -0
- package/node_modules/node-domexception/.history/README_20210527212714.md +41 -0
- package/node_modules/node-domexception/.history/README_20210527213345.md +36 -0
- package/node_modules/node-domexception/.history/README_20210527213411.md +36 -0
- package/node_modules/node-domexception/.history/README_20210527213803.md +36 -0
- package/node_modules/node-domexception/.history/README_20210527214323.md +38 -0
- package/node_modules/node-domexception/.history/README_20210527214408.md +38 -0
- package/node_modules/node-domexception/.history/index_20210527203842.js +0 -0
- package/node_modules/node-domexception/.history/index_20210527203947.js +8 -0
- package/node_modules/node-domexception/.history/index_20210527204259.js +9 -0
- package/node_modules/node-domexception/.history/index_20210527204418.js +9 -0
- package/node_modules/node-domexception/.history/index_20210527204756.js +11 -0
- package/node_modules/node-domexception/.history/index_20210527204833.js +11 -0
- package/node_modules/node-domexception/.history/index_20210527211208.js +15 -0
- package/node_modules/node-domexception/.history/index_20210527211248.js +15 -0
- package/node_modules/node-domexception/.history/index_20210527212722.js +23 -0
- package/node_modules/node-domexception/.history/index_20210527212731.js +23 -0
- package/node_modules/node-domexception/.history/index_20210527212746.js +15 -0
- package/node_modules/node-domexception/.history/index_20210527212900.js +16 -0
- package/node_modules/node-domexception/.history/index_20210527213022.js +16 -0
- package/node_modules/node-domexception/.history/index_20210527213822.js +16 -0
- package/node_modules/node-domexception/.history/index_20210527213843.js +17 -0
- package/node_modules/node-domexception/.history/index_20210527213852.js +17 -0
- package/node_modules/node-domexception/.history/index_20210527213910.js +16 -0
- package/node_modules/node-domexception/.history/index_20210527214034.js +16 -0
- package/node_modules/node-domexception/.history/index_20210527214643.js +41 -0
- package/node_modules/node-domexception/.history/index_20210527214654.js +41 -0
- package/node_modules/node-domexception/.history/index_20210527214700.js +16 -0
- package/node_modules/node-domexception/.history/package_20210527203733.json +19 -0
- package/node_modules/node-domexception/.history/package_20210527203825.json +16 -0
- package/node_modules/node-domexception/.history/package_20210527204621.json +19 -0
- package/node_modules/node-domexception/.history/package_20210527204913.json +25 -0
- package/node_modules/node-domexception/.history/package_20210527204925.json +25 -0
- package/node_modules/node-domexception/.history/package_20210527205145.json +29 -0
- package/node_modules/node-domexception/.history/package_20210527205156.json +29 -0
- package/node_modules/node-domexception/.history/test_20210527205603.js +0 -0
- package/node_modules/node-domexception/.history/test_20210527205957.js +3 -0
- package/node_modules/node-domexception/.history/test_20210527210021.js +3 -0
- package/node_modules/node-domexception/LICENSE +21 -0
- package/node_modules/node-domexception/README.md +46 -0
- package/node_modules/node-domexception/index.js +16 -0
- package/node_modules/node-domexception/package.json +29 -0
- package/node_modules/node-fetch/@types/index.d.ts +219 -0
- package/node_modules/node-fetch/LICENSE.md +22 -0
- package/node_modules/node-fetch/README.md +872 -0
- package/node_modules/node-fetch/package.json +131 -0
- package/node_modules/node-fetch/src/body.js +397 -0
- package/node_modules/node-fetch/src/errors/abort-error.js +10 -0
- package/node_modules/node-fetch/src/errors/base.js +17 -0
- package/node_modules/node-fetch/src/errors/fetch-error.js +26 -0
- package/node_modules/node-fetch/src/headers.js +267 -0
- package/node_modules/node-fetch/src/index.js +417 -0
- package/node_modules/node-fetch/src/request.js +313 -0
- package/node_modules/node-fetch/src/response.js +160 -0
- package/node_modules/node-fetch/src/utils/get-search.js +9 -0
- package/node_modules/node-fetch/src/utils/is-redirect.js +11 -0
- package/node_modules/node-fetch/src/utils/is.js +87 -0
- package/node_modules/node-fetch/src/utils/multipart-parser.js +432 -0
- package/node_modules/node-fetch/src/utils/referrer.js +340 -0
- package/node_modules/onetime/index.d.ts +64 -0
- package/node_modules/onetime/index.js +44 -0
- package/node_modules/onetime/license +9 -0
- package/node_modules/onetime/package.json +43 -0
- package/node_modules/onetime/readme.md +94 -0
- package/node_modules/ora/index.d.ts +277 -0
- package/node_modules/ora/index.js +407 -0
- package/node_modules/ora/license +9 -0
- package/node_modules/ora/package.json +57 -0
- package/node_modules/ora/readme.md +264 -0
- package/node_modules/path-scurry/LICENSE.md +55 -0
- package/node_modules/path-scurry/README.md +636 -0
- package/node_modules/path-scurry/dist/commonjs/index.d.ts +1115 -0
- package/node_modules/path-scurry/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/path-scurry/dist/commonjs/index.js +2018 -0
- package/node_modules/path-scurry/dist/commonjs/index.js.map +1 -0
- package/node_modules/path-scurry/dist/commonjs/package.json +3 -0
- package/node_modules/path-scurry/dist/esm/index.d.ts +1115 -0
- package/node_modules/path-scurry/dist/esm/index.d.ts.map +1 -0
- package/node_modules/path-scurry/dist/esm/index.js +1983 -0
- package/node_modules/path-scurry/dist/esm/index.js.map +1 -0
- package/node_modules/path-scurry/dist/esm/package.json +3 -0
- package/node_modules/path-scurry/package.json +72 -0
- package/node_modules/readable-stream/CONTRIBUTING.md +38 -0
- package/node_modules/readable-stream/GOVERNANCE.md +136 -0
- package/node_modules/readable-stream/LICENSE +47 -0
- package/node_modules/readable-stream/README.md +106 -0
- package/node_modules/readable-stream/errors-browser.js +127 -0
- package/node_modules/readable-stream/errors.js +116 -0
- package/node_modules/readable-stream/experimentalWarning.js +17 -0
- package/node_modules/readable-stream/lib/_stream_duplex.js +126 -0
- package/node_modules/readable-stream/lib/_stream_passthrough.js +37 -0
- package/node_modules/readable-stream/lib/_stream_readable.js +1027 -0
- package/node_modules/readable-stream/lib/_stream_transform.js +190 -0
- package/node_modules/readable-stream/lib/_stream_writable.js +641 -0
- package/node_modules/readable-stream/lib/internal/streams/async_iterator.js +180 -0
- package/node_modules/readable-stream/lib/internal/streams/buffer_list.js +183 -0
- package/node_modules/readable-stream/lib/internal/streams/destroy.js +96 -0
- package/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +86 -0
- package/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
- package/node_modules/readable-stream/lib/internal/streams/from.js +52 -0
- package/node_modules/readable-stream/lib/internal/streams/pipeline.js +86 -0
- package/node_modules/readable-stream/lib/internal/streams/state.js +22 -0
- package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
- package/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
- package/node_modules/readable-stream/package.json +68 -0
- package/node_modules/readable-stream/readable-browser.js +9 -0
- package/node_modules/readable-stream/readable.js +16 -0
- package/node_modules/restore-cursor/index.d.ts +13 -0
- package/node_modules/restore-cursor/index.js +9 -0
- package/node_modules/restore-cursor/license +9 -0
- package/node_modules/restore-cursor/package.json +52 -0
- package/node_modules/restore-cursor/readme.md +26 -0
- package/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/safe-buffer/index.js +65 -0
- package/node_modules/safe-buffer/package.json +51 -0
- package/node_modules/signal-exit/LICENSE.txt +16 -0
- package/node_modules/signal-exit/README.md +39 -0
- package/node_modules/signal-exit/index.js +202 -0
- package/node_modules/signal-exit/package.json +38 -0
- package/node_modules/signal-exit/signals.js +53 -0
- package/node_modules/string_decoder/LICENSE +48 -0
- package/node_modules/string_decoder/README.md +47 -0
- package/node_modules/string_decoder/lib/string_decoder.js +296 -0
- package/node_modules/string_decoder/package.json +34 -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/supports-color/browser.js +5 -0
- package/node_modules/supports-color/index.js +135 -0
- package/node_modules/supports-color/license +9 -0
- package/node_modules/supports-color/package.json +53 -0
- package/node_modules/supports-color/readme.md +76 -0
- package/node_modules/util-deprecate/History.md +16 -0
- package/node_modules/util-deprecate/LICENSE +24 -0
- package/node_modules/util-deprecate/README.md +53 -0
- package/node_modules/util-deprecate/browser.js +67 -0
- package/node_modules/util-deprecate/node.js +6 -0
- package/node_modules/util-deprecate/package.json +27 -0
- package/node_modules/wcwidth/.npmignore +1 -0
- package/node_modules/wcwidth/LICENSE +30 -0
- package/node_modules/wcwidth/Readme.md +33 -0
- package/node_modules/wcwidth/combining.js +50 -0
- package/node_modules/wcwidth/docs/index.md +65 -0
- package/node_modules/wcwidth/index.js +99 -0
- package/node_modules/wcwidth/package.json +42 -0
- package/node_modules/wcwidth/test/index.js +64 -0
- package/node_modules/web-streams-polyfill/LICENSE +22 -0
- package/node_modules/web-streams-polyfill/README.md +110 -0
- package/node_modules/web-streams-polyfill/dist/polyfill.es2018.js +4765 -0
- package/node_modules/web-streams-polyfill/dist/polyfill.es2018.js.map +1 -0
- package/node_modules/web-streams-polyfill/dist/polyfill.es2018.min.js +9 -0
- package/node_modules/web-streams-polyfill/dist/polyfill.es2018.min.js.map +1 -0
- package/node_modules/web-streams-polyfill/dist/polyfill.es2018.mjs +4745 -0
- package/node_modules/web-streams-polyfill/dist/polyfill.es2018.mjs.map +1 -0
- package/node_modules/web-streams-polyfill/dist/polyfill.es6.js +4838 -0
- package/node_modules/web-streams-polyfill/dist/polyfill.es6.js.map +1 -0
- package/node_modules/web-streams-polyfill/dist/polyfill.es6.min.js +9 -0
- package/node_modules/web-streams-polyfill/dist/polyfill.es6.min.js.map +1 -0
- package/node_modules/web-streams-polyfill/dist/polyfill.es6.mjs +4818 -0
- package/node_modules/web-streams-polyfill/dist/polyfill.es6.mjs.map +1 -0
- package/node_modules/web-streams-polyfill/dist/polyfill.js +5011 -0
- package/node_modules/web-streams-polyfill/dist/polyfill.js.map +1 -0
- package/node_modules/web-streams-polyfill/dist/polyfill.min.js +9 -0
- package/node_modules/web-streams-polyfill/dist/polyfill.min.js.map +1 -0
- package/node_modules/web-streams-polyfill/dist/polyfill.mjs +4991 -0
- package/node_modules/web-streams-polyfill/dist/polyfill.mjs.map +1 -0
- package/node_modules/web-streams-polyfill/dist/ponyfill.es2018.js +4737 -0
- package/node_modules/web-streams-polyfill/dist/ponyfill.es2018.js.map +1 -0
- package/node_modules/web-streams-polyfill/dist/ponyfill.es2018.mjs +4717 -0
- package/node_modules/web-streams-polyfill/dist/ponyfill.es2018.mjs.map +1 -0
- package/node_modules/web-streams-polyfill/dist/ponyfill.es6.js +4810 -0
- package/node_modules/web-streams-polyfill/dist/ponyfill.es6.js.map +1 -0
- package/node_modules/web-streams-polyfill/dist/ponyfill.es6.mjs +4790 -0
- package/node_modules/web-streams-polyfill/dist/ponyfill.es6.mjs.map +1 -0
- package/node_modules/web-streams-polyfill/dist/ponyfill.js +4983 -0
- package/node_modules/web-streams-polyfill/dist/ponyfill.js.map +1 -0
- package/node_modules/web-streams-polyfill/dist/ponyfill.mjs +4963 -0
- package/node_modules/web-streams-polyfill/dist/ponyfill.mjs.map +1 -0
- package/node_modules/web-streams-polyfill/dist/types/polyfill.d.ts +24 -0
- package/node_modules/web-streams-polyfill/dist/types/ponyfill.d.ts +780 -0
- package/node_modules/web-streams-polyfill/dist/types/ts3.6/polyfill.d.ts +28 -0
- package/node_modules/web-streams-polyfill/dist/types/ts3.6/ponyfill.d.ts +821 -0
- package/node_modules/web-streams-polyfill/dist/types/tsdoc-metadata.json +11 -0
- package/node_modules/web-streams-polyfill/es2018/package.json +14 -0
- package/node_modules/web-streams-polyfill/es6/package.json +14 -0
- package/node_modules/web-streams-polyfill/package.json +83 -0
- package/node_modules/web-streams-polyfill/ponyfill/es2018/package.json +13 -0
- package/node_modules/web-streams-polyfill/ponyfill/es6/package.json +13 -0
- package/node_modules/web-streams-polyfill/ponyfill/package.json +13 -0
- package/package.json +26 -0
- package/version.json +18 -0
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const os = require('os');
|
|
3
|
+
const tty = require('tty');
|
|
4
|
+
const hasFlag = require('has-flag');
|
|
5
|
+
|
|
6
|
+
const {env} = process;
|
|
7
|
+
|
|
8
|
+
let forceColor;
|
|
9
|
+
if (hasFlag('no-color') ||
|
|
10
|
+
hasFlag('no-colors') ||
|
|
11
|
+
hasFlag('color=false') ||
|
|
12
|
+
hasFlag('color=never')) {
|
|
13
|
+
forceColor = 0;
|
|
14
|
+
} else if (hasFlag('color') ||
|
|
15
|
+
hasFlag('colors') ||
|
|
16
|
+
hasFlag('color=true') ||
|
|
17
|
+
hasFlag('color=always')) {
|
|
18
|
+
forceColor = 1;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
if ('FORCE_COLOR' in env) {
|
|
22
|
+
if (env.FORCE_COLOR === 'true') {
|
|
23
|
+
forceColor = 1;
|
|
24
|
+
} else if (env.FORCE_COLOR === 'false') {
|
|
25
|
+
forceColor = 0;
|
|
26
|
+
} else {
|
|
27
|
+
forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function translateLevel(level) {
|
|
32
|
+
if (level === 0) {
|
|
33
|
+
return false;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
return {
|
|
37
|
+
level,
|
|
38
|
+
hasBasic: true,
|
|
39
|
+
has256: level >= 2,
|
|
40
|
+
has16m: level >= 3
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function supportsColor(haveStream, streamIsTTY) {
|
|
45
|
+
if (forceColor === 0) {
|
|
46
|
+
return 0;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
if (hasFlag('color=16m') ||
|
|
50
|
+
hasFlag('color=full') ||
|
|
51
|
+
hasFlag('color=truecolor')) {
|
|
52
|
+
return 3;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
if (hasFlag('color=256')) {
|
|
56
|
+
return 2;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
if (haveStream && !streamIsTTY && forceColor === undefined) {
|
|
60
|
+
return 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const min = forceColor || 0;
|
|
64
|
+
|
|
65
|
+
if (env.TERM === 'dumb') {
|
|
66
|
+
return min;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if (process.platform === 'win32') {
|
|
70
|
+
// Windows 10 build 10586 is the first Windows release that supports 256 colors.
|
|
71
|
+
// Windows 10 build 14931 is the first release that supports 16m/TrueColor.
|
|
72
|
+
const osRelease = os.release().split('.');
|
|
73
|
+
if (
|
|
74
|
+
Number(osRelease[0]) >= 10 &&
|
|
75
|
+
Number(osRelease[2]) >= 10586
|
|
76
|
+
) {
|
|
77
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
return 1;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
if ('CI' in env) {
|
|
84
|
+
if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
|
|
85
|
+
return 1;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return min;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
if ('TEAMCITY_VERSION' in env) {
|
|
92
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
if (env.COLORTERM === 'truecolor') {
|
|
96
|
+
return 3;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
if ('TERM_PROGRAM' in env) {
|
|
100
|
+
const version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
|
|
101
|
+
|
|
102
|
+
switch (env.TERM_PROGRAM) {
|
|
103
|
+
case 'iTerm.app':
|
|
104
|
+
return version >= 3 ? 3 : 2;
|
|
105
|
+
case 'Apple_Terminal':
|
|
106
|
+
return 2;
|
|
107
|
+
// No default
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
if (/-256(color)?$/i.test(env.TERM)) {
|
|
112
|
+
return 2;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
116
|
+
return 1;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
if ('COLORTERM' in env) {
|
|
120
|
+
return 1;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
return min;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
function getSupportLevel(stream) {
|
|
127
|
+
const level = supportsColor(stream, stream && stream.isTTY);
|
|
128
|
+
return translateLevel(level);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
module.exports = {
|
|
132
|
+
supportsColor: getSupportLevel,
|
|
133
|
+
stdout: translateLevel(supportsColor(true, tty.isatty(1))),
|
|
134
|
+
stderr: translateLevel(supportsColor(true, tty.isatty(2)))
|
|
135
|
+
};
|
|
@@ -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,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "supports-color",
|
|
3
|
+
"version": "7.2.0",
|
|
4
|
+
"description": "Detect whether a terminal supports color",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "chalk/supports-color",
|
|
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 && ava"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"index.js",
|
|
20
|
+
"browser.js"
|
|
21
|
+
],
|
|
22
|
+
"keywords": [
|
|
23
|
+
"color",
|
|
24
|
+
"colour",
|
|
25
|
+
"colors",
|
|
26
|
+
"terminal",
|
|
27
|
+
"console",
|
|
28
|
+
"cli",
|
|
29
|
+
"ansi",
|
|
30
|
+
"styles",
|
|
31
|
+
"tty",
|
|
32
|
+
"rgb",
|
|
33
|
+
"256",
|
|
34
|
+
"shell",
|
|
35
|
+
"xterm",
|
|
36
|
+
"command-line",
|
|
37
|
+
"support",
|
|
38
|
+
"supports",
|
|
39
|
+
"capability",
|
|
40
|
+
"detect",
|
|
41
|
+
"truecolor",
|
|
42
|
+
"16m"
|
|
43
|
+
],
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"has-flag": "^4.0.0"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"ava": "^1.4.1",
|
|
49
|
+
"import-fresh": "^3.0.0",
|
|
50
|
+
"xo": "^0.24.0"
|
|
51
|
+
},
|
|
52
|
+
"browser": "browser.js"
|
|
53
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# supports-color [](https://travis-ci.org/chalk/supports-color)
|
|
2
|
+
|
|
3
|
+
> Detect whether a terminal supports color
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Install
|
|
7
|
+
|
|
8
|
+
```
|
|
9
|
+
$ npm install supports-color
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
const supportsColor = require('supports-color');
|
|
17
|
+
|
|
18
|
+
if (supportsColor.stdout) {
|
|
19
|
+
console.log('Terminal stdout supports color');
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
if (supportsColor.stdout.has256) {
|
|
23
|
+
console.log('Terminal stdout supports 256 colors');
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
if (supportsColor.stderr.has16m) {
|
|
27
|
+
console.log('Terminal stderr supports 16 million colors (truecolor)');
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
## API
|
|
33
|
+
|
|
34
|
+
Returns an `Object` with a `stdout` and `stderr` property for testing either streams. Each property is an `Object`, or `false` if color is not supported.
|
|
35
|
+
|
|
36
|
+
The `stdout`/`stderr` objects specifies a level of support for color through a `.level` property and a corresponding flag:
|
|
37
|
+
|
|
38
|
+
- `.level = 1` and `.hasBasic = true`: Basic color support (16 colors)
|
|
39
|
+
- `.level = 2` and `.has256 = true`: 256 color support
|
|
40
|
+
- `.level = 3` and `.has16m = true`: Truecolor support (16 million colors)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
## Info
|
|
44
|
+
|
|
45
|
+
It obeys the `--color` and `--no-color` CLI flags.
|
|
46
|
+
|
|
47
|
+
For situations where using `--color` is not possible, use the environment variable `FORCE_COLOR=1` (level 1), `FORCE_COLOR=2` (level 2), or `FORCE_COLOR=3` (level 3) to forcefully enable color, or `FORCE_COLOR=0` to forcefully disable. The use of `FORCE_COLOR` overrides all other color support checks.
|
|
48
|
+
|
|
49
|
+
Explicit 256/Truecolor mode can be enabled using the `--color=256` and `--color=16m` flags, respectively.
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
## Related
|
|
53
|
+
|
|
54
|
+
- [supports-color-cli](https://github.com/chalk/supports-color-cli) - CLI for this module
|
|
55
|
+
- [chalk](https://github.com/chalk/chalk) - Terminal string styling done right
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
## Maintainers
|
|
59
|
+
|
|
60
|
+
- [Sindre Sorhus](https://github.com/sindresorhus)
|
|
61
|
+
- [Josh Junon](https://github.com/qix-)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
<div align="center">
|
|
67
|
+
<b>
|
|
68
|
+
<a href="https://tidelift.com/subscription/pkg/npm-supports-color?utm_source=npm-supports-color&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
|
|
69
|
+
</b>
|
|
70
|
+
<br>
|
|
71
|
+
<sub>
|
|
72
|
+
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
|
|
73
|
+
</sub>
|
|
74
|
+
</div>
|
|
75
|
+
|
|
76
|
+
---
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
|
|
2
|
+
1.0.2 / 2015-10-07
|
|
3
|
+
==================
|
|
4
|
+
|
|
5
|
+
* use try/catch when checking `localStorage` (#3, @kumavis)
|
|
6
|
+
|
|
7
|
+
1.0.1 / 2014-11-25
|
|
8
|
+
==================
|
|
9
|
+
|
|
10
|
+
* browser: use `console.warn()` for deprecation calls
|
|
11
|
+
* browser: more jsdocs
|
|
12
|
+
|
|
13
|
+
1.0.0 / 2014-04-30
|
|
14
|
+
==================
|
|
15
|
+
|
|
16
|
+
* initial commit
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
(The MIT License)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2014 Nathan Rajlich <nathan@tootallnate.net>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person
|
|
6
|
+
obtaining a copy of this software and associated documentation
|
|
7
|
+
files (the "Software"), to deal in the Software without
|
|
8
|
+
restriction, including without limitation the rights to use,
|
|
9
|
+
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the
|
|
11
|
+
Software is furnished to do so, subject to the following
|
|
12
|
+
conditions:
|
|
13
|
+
|
|
14
|
+
The above copyright notice and this permission notice shall be
|
|
15
|
+
included in all copies or substantial portions of the Software.
|
|
16
|
+
|
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
18
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
19
|
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
20
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
21
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
22
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
23
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
24
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
util-deprecate
|
|
2
|
+
==============
|
|
3
|
+
### The Node.js `util.deprecate()` function with browser support
|
|
4
|
+
|
|
5
|
+
In Node.js, this module simply re-exports the `util.deprecate()` function.
|
|
6
|
+
|
|
7
|
+
In the web browser (i.e. via browserify), a browser-specific implementation
|
|
8
|
+
of the `util.deprecate()` function is used.
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## API
|
|
12
|
+
|
|
13
|
+
A `deprecate()` function is the only thing exposed by this module.
|
|
14
|
+
|
|
15
|
+
``` javascript
|
|
16
|
+
// setup:
|
|
17
|
+
exports.foo = deprecate(foo, 'foo() is deprecated, use bar() instead');
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
// users see:
|
|
21
|
+
foo();
|
|
22
|
+
// foo() is deprecated, use bar() instead
|
|
23
|
+
foo();
|
|
24
|
+
foo();
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
## License
|
|
29
|
+
|
|
30
|
+
(The MIT License)
|
|
31
|
+
|
|
32
|
+
Copyright (c) 2014 Nathan Rajlich <nathan@tootallnate.net>
|
|
33
|
+
|
|
34
|
+
Permission is hereby granted, free of charge, to any person
|
|
35
|
+
obtaining a copy of this software and associated documentation
|
|
36
|
+
files (the "Software"), to deal in the Software without
|
|
37
|
+
restriction, including without limitation the rights to use,
|
|
38
|
+
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
39
|
+
copies of the Software, and to permit persons to whom the
|
|
40
|
+
Software is furnished to do so, subject to the following
|
|
41
|
+
conditions:
|
|
42
|
+
|
|
43
|
+
The above copyright notice and this permission notice shall be
|
|
44
|
+
included in all copies or substantial portions of the Software.
|
|
45
|
+
|
|
46
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
47
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
48
|
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
49
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
50
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
51
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
52
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
53
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* Module exports.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
module.exports = deprecate;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Mark that a method should not be used.
|
|
10
|
+
* Returns a modified function which warns once by default.
|
|
11
|
+
*
|
|
12
|
+
* If `localStorage.noDeprecation = true` is set, then it is a no-op.
|
|
13
|
+
*
|
|
14
|
+
* If `localStorage.throwDeprecation = true` is set, then deprecated functions
|
|
15
|
+
* will throw an Error when invoked.
|
|
16
|
+
*
|
|
17
|
+
* If `localStorage.traceDeprecation = true` is set, then deprecated functions
|
|
18
|
+
* will invoke `console.trace()` instead of `console.error()`.
|
|
19
|
+
*
|
|
20
|
+
* @param {Function} fn - the function to deprecate
|
|
21
|
+
* @param {String} msg - the string to print to the console when `fn` is invoked
|
|
22
|
+
* @returns {Function} a new "deprecated" version of `fn`
|
|
23
|
+
* @api public
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
function deprecate (fn, msg) {
|
|
27
|
+
if (config('noDeprecation')) {
|
|
28
|
+
return fn;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
var warned = false;
|
|
32
|
+
function deprecated() {
|
|
33
|
+
if (!warned) {
|
|
34
|
+
if (config('throwDeprecation')) {
|
|
35
|
+
throw new Error(msg);
|
|
36
|
+
} else if (config('traceDeprecation')) {
|
|
37
|
+
console.trace(msg);
|
|
38
|
+
} else {
|
|
39
|
+
console.warn(msg);
|
|
40
|
+
}
|
|
41
|
+
warned = true;
|
|
42
|
+
}
|
|
43
|
+
return fn.apply(this, arguments);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
return deprecated;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Checks `localStorage` for boolean values for the given `name`.
|
|
51
|
+
*
|
|
52
|
+
* @param {String} name
|
|
53
|
+
* @returns {Boolean}
|
|
54
|
+
* @api private
|
|
55
|
+
*/
|
|
56
|
+
|
|
57
|
+
function config (name) {
|
|
58
|
+
// accessing global.localStorage can trigger a DOMException in sandboxed iframes
|
|
59
|
+
try {
|
|
60
|
+
if (!global.localStorage) return false;
|
|
61
|
+
} catch (_) {
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
var val = global.localStorage[name];
|
|
65
|
+
if (null == val) return false;
|
|
66
|
+
return String(val).toLowerCase() === 'true';
|
|
67
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "util-deprecate",
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "The Node.js `util.deprecate()` function with browser support",
|
|
5
|
+
"main": "node.js",
|
|
6
|
+
"browser": "browser.js",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git://github.com/TooTallNate/util-deprecate.git"
|
|
13
|
+
},
|
|
14
|
+
"keywords": [
|
|
15
|
+
"util",
|
|
16
|
+
"deprecate",
|
|
17
|
+
"browserify",
|
|
18
|
+
"browser",
|
|
19
|
+
"node"
|
|
20
|
+
],
|
|
21
|
+
"author": "Nathan Rajlich <nathan@tootallnate.net> (http://n8.io/)",
|
|
22
|
+
"license": "MIT",
|
|
23
|
+
"bugs": {
|
|
24
|
+
"url": "https://github.com/TooTallNate/util-deprecate/issues"
|
|
25
|
+
},
|
|
26
|
+
"homepage": "https://github.com/TooTallNate/util-deprecate"
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
node_modules
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
wcwidth.js: JavaScript Portng of Markus Kuhn's wcwidth() Implementation
|
|
2
|
+
=======================================================================
|
|
3
|
+
|
|
4
|
+
Copyright (C) 2012 by Jun Woong.
|
|
5
|
+
|
|
6
|
+
This package is a JavaScript porting of `wcwidth()` implementation
|
|
7
|
+
[by Markus Kuhn](http://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c).
|
|
8
|
+
|
|
9
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
10
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
11
|
+
the Software without restriction, including without limitation the rights to
|
|
12
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
13
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
|
14
|
+
so, subject to the following conditions:
|
|
15
|
+
|
|
16
|
+
The above copyright notice and this permission notice shall be included in all
|
|
17
|
+
copies or substantial portions of the Software.
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
|
21
|
+
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
22
|
+
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR
|
|
23
|
+
OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
24
|
+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
25
|
+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
|
26
|
+
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
|
|
27
|
+
IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
28
|
+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
29
|
+
POSSIBILITY OF SUCH DAMAGE.
|
|
30
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# wcwidth
|
|
2
|
+
|
|
3
|
+
Determine columns needed for a fixed-size wide-character string
|
|
4
|
+
|
|
5
|
+
----
|
|
6
|
+
|
|
7
|
+
wcwidth is a simple JavaScript port of [wcwidth](http://man7.org/linux/man-pages/man3/wcswidth.3.html) implemented in C by Markus Kuhn.
|
|
8
|
+
|
|
9
|
+
JavaScript port [originally](https://github.com/mycoboco/wcwidth.js) written by Woong Jun <woong.jun@gmail.com> (http://code.woong.org/)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
'한'.length // => 1
|
|
15
|
+
wcwidth('한'); // => 2
|
|
16
|
+
|
|
17
|
+
'한글'.length // => 2
|
|
18
|
+
wcwidth('한글'); // => 4
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
`wcwidth()` and its string version, `wcswidth()` are defined by IEEE Std
|
|
22
|
+
1002.1-2001, a.k.a. POSIX.1-2001, and return the number of columns used
|
|
23
|
+
to represent the given wide character and string.
|
|
24
|
+
|
|
25
|
+
Markus's implementation assumes the wide character given to those
|
|
26
|
+
functions to be encoded in ISO 10646, which is almost true for
|
|
27
|
+
JavaScript's characters.
|
|
28
|
+
|
|
29
|
+
[Further explaination here](docs)
|
|
30
|
+
|
|
31
|
+
## License
|
|
32
|
+
|
|
33
|
+
MIT
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
module.exports = [
|
|
2
|
+
[ 0x0300, 0x036F ], [ 0x0483, 0x0486 ], [ 0x0488, 0x0489 ],
|
|
3
|
+
[ 0x0591, 0x05BD ], [ 0x05BF, 0x05BF ], [ 0x05C1, 0x05C2 ],
|
|
4
|
+
[ 0x05C4, 0x05C5 ], [ 0x05C7, 0x05C7 ], [ 0x0600, 0x0603 ],
|
|
5
|
+
[ 0x0610, 0x0615 ], [ 0x064B, 0x065E ], [ 0x0670, 0x0670 ],
|
|
6
|
+
[ 0x06D6, 0x06E4 ], [ 0x06E7, 0x06E8 ], [ 0x06EA, 0x06ED ],
|
|
7
|
+
[ 0x070F, 0x070F ], [ 0x0711, 0x0711 ], [ 0x0730, 0x074A ],
|
|
8
|
+
[ 0x07A6, 0x07B0 ], [ 0x07EB, 0x07F3 ], [ 0x0901, 0x0902 ],
|
|
9
|
+
[ 0x093C, 0x093C ], [ 0x0941, 0x0948 ], [ 0x094D, 0x094D ],
|
|
10
|
+
[ 0x0951, 0x0954 ], [ 0x0962, 0x0963 ], [ 0x0981, 0x0981 ],
|
|
11
|
+
[ 0x09BC, 0x09BC ], [ 0x09C1, 0x09C4 ], [ 0x09CD, 0x09CD ],
|
|
12
|
+
[ 0x09E2, 0x09E3 ], [ 0x0A01, 0x0A02 ], [ 0x0A3C, 0x0A3C ],
|
|
13
|
+
[ 0x0A41, 0x0A42 ], [ 0x0A47, 0x0A48 ], [ 0x0A4B, 0x0A4D ],
|
|
14
|
+
[ 0x0A70, 0x0A71 ], [ 0x0A81, 0x0A82 ], [ 0x0ABC, 0x0ABC ],
|
|
15
|
+
[ 0x0AC1, 0x0AC5 ], [ 0x0AC7, 0x0AC8 ], [ 0x0ACD, 0x0ACD ],
|
|
16
|
+
[ 0x0AE2, 0x0AE3 ], [ 0x0B01, 0x0B01 ], [ 0x0B3C, 0x0B3C ],
|
|
17
|
+
[ 0x0B3F, 0x0B3F ], [ 0x0B41, 0x0B43 ], [ 0x0B4D, 0x0B4D ],
|
|
18
|
+
[ 0x0B56, 0x0B56 ], [ 0x0B82, 0x0B82 ], [ 0x0BC0, 0x0BC0 ],
|
|
19
|
+
[ 0x0BCD, 0x0BCD ], [ 0x0C3E, 0x0C40 ], [ 0x0C46, 0x0C48 ],
|
|
20
|
+
[ 0x0C4A, 0x0C4D ], [ 0x0C55, 0x0C56 ], [ 0x0CBC, 0x0CBC ],
|
|
21
|
+
[ 0x0CBF, 0x0CBF ], [ 0x0CC6, 0x0CC6 ], [ 0x0CCC, 0x0CCD ],
|
|
22
|
+
[ 0x0CE2, 0x0CE3 ], [ 0x0D41, 0x0D43 ], [ 0x0D4D, 0x0D4D ],
|
|
23
|
+
[ 0x0DCA, 0x0DCA ], [ 0x0DD2, 0x0DD4 ], [ 0x0DD6, 0x0DD6 ],
|
|
24
|
+
[ 0x0E31, 0x0E31 ], [ 0x0E34, 0x0E3A ], [ 0x0E47, 0x0E4E ],
|
|
25
|
+
[ 0x0EB1, 0x0EB1 ], [ 0x0EB4, 0x0EB9 ], [ 0x0EBB, 0x0EBC ],
|
|
26
|
+
[ 0x0EC8, 0x0ECD ], [ 0x0F18, 0x0F19 ], [ 0x0F35, 0x0F35 ],
|
|
27
|
+
[ 0x0F37, 0x0F37 ], [ 0x0F39, 0x0F39 ], [ 0x0F71, 0x0F7E ],
|
|
28
|
+
[ 0x0F80, 0x0F84 ], [ 0x0F86, 0x0F87 ], [ 0x0F90, 0x0F97 ],
|
|
29
|
+
[ 0x0F99, 0x0FBC ], [ 0x0FC6, 0x0FC6 ], [ 0x102D, 0x1030 ],
|
|
30
|
+
[ 0x1032, 0x1032 ], [ 0x1036, 0x1037 ], [ 0x1039, 0x1039 ],
|
|
31
|
+
[ 0x1058, 0x1059 ], [ 0x1160, 0x11FF ], [ 0x135F, 0x135F ],
|
|
32
|
+
[ 0x1712, 0x1714 ], [ 0x1732, 0x1734 ], [ 0x1752, 0x1753 ],
|
|
33
|
+
[ 0x1772, 0x1773 ], [ 0x17B4, 0x17B5 ], [ 0x17B7, 0x17BD ],
|
|
34
|
+
[ 0x17C6, 0x17C6 ], [ 0x17C9, 0x17D3 ], [ 0x17DD, 0x17DD ],
|
|
35
|
+
[ 0x180B, 0x180D ], [ 0x18A9, 0x18A9 ], [ 0x1920, 0x1922 ],
|
|
36
|
+
[ 0x1927, 0x1928 ], [ 0x1932, 0x1932 ], [ 0x1939, 0x193B ],
|
|
37
|
+
[ 0x1A17, 0x1A18 ], [ 0x1B00, 0x1B03 ], [ 0x1B34, 0x1B34 ],
|
|
38
|
+
[ 0x1B36, 0x1B3A ], [ 0x1B3C, 0x1B3C ], [ 0x1B42, 0x1B42 ],
|
|
39
|
+
[ 0x1B6B, 0x1B73 ], [ 0x1DC0, 0x1DCA ], [ 0x1DFE, 0x1DFF ],
|
|
40
|
+
[ 0x200B, 0x200F ], [ 0x202A, 0x202E ], [ 0x2060, 0x2063 ],
|
|
41
|
+
[ 0x206A, 0x206F ], [ 0x20D0, 0x20EF ], [ 0x302A, 0x302F ],
|
|
42
|
+
[ 0x3099, 0x309A ], [ 0xA806, 0xA806 ], [ 0xA80B, 0xA80B ],
|
|
43
|
+
[ 0xA825, 0xA826 ], [ 0xFB1E, 0xFB1E ], [ 0xFE00, 0xFE0F ],
|
|
44
|
+
[ 0xFE20, 0xFE23 ], [ 0xFEFF, 0xFEFF ], [ 0xFFF9, 0xFFFB ],
|
|
45
|
+
[ 0x10A01, 0x10A03 ], [ 0x10A05, 0x10A06 ], [ 0x10A0C, 0x10A0F ],
|
|
46
|
+
[ 0x10A38, 0x10A3A ], [ 0x10A3F, 0x10A3F ], [ 0x1D167, 0x1D169 ],
|
|
47
|
+
[ 0x1D173, 0x1D182 ], [ 0x1D185, 0x1D18B ], [ 0x1D1AA, 0x1D1AD ],
|
|
48
|
+
[ 0x1D242, 0x1D244 ], [ 0xE0001, 0xE0001 ], [ 0xE0020, 0xE007F ],
|
|
49
|
+
[ 0xE0100, 0xE01EF ]
|
|
50
|
+
]
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
### Javascript porting of Markus Kuhn's wcwidth() implementation
|
|
2
|
+
|
|
3
|
+
The following explanation comes from the original C implementation:
|
|
4
|
+
|
|
5
|
+
This is an implementation of wcwidth() and wcswidth() (defined in
|
|
6
|
+
IEEE Std 1002.1-2001) for Unicode.
|
|
7
|
+
|
|
8
|
+
http://www.opengroup.org/onlinepubs/007904975/functions/wcwidth.html
|
|
9
|
+
http://www.opengroup.org/onlinepubs/007904975/functions/wcswidth.html
|
|
10
|
+
|
|
11
|
+
In fixed-width output devices, Latin characters all occupy a single
|
|
12
|
+
"cell" position of equal width, whereas ideographic CJK characters
|
|
13
|
+
occupy two such cells. Interoperability between terminal-line
|
|
14
|
+
applications and (teletype-style) character terminals using the
|
|
15
|
+
UTF-8 encoding requires agreement on which character should advance
|
|
16
|
+
the cursor by how many cell positions. No established formal
|
|
17
|
+
standards exist at present on which Unicode character shall occupy
|
|
18
|
+
how many cell positions on character terminals. These routines are
|
|
19
|
+
a first attempt of defining such behavior based on simple rules
|
|
20
|
+
applied to data provided by the Unicode Consortium.
|
|
21
|
+
|
|
22
|
+
For some graphical characters, the Unicode standard explicitly
|
|
23
|
+
defines a character-cell width via the definition of the East Asian
|
|
24
|
+
FullWidth (F), Wide (W), Half-width (H), and Narrow (Na) classes.
|
|
25
|
+
In all these cases, there is no ambiguity about which width a
|
|
26
|
+
terminal shall use. For characters in the East Asian Ambiguous (A)
|
|
27
|
+
class, the width choice depends purely on a preference of backward
|
|
28
|
+
compatibility with either historic CJK or Western practice.
|
|
29
|
+
Choosing single-width for these characters is easy to justify as
|
|
30
|
+
the appropriate long-term solution, as the CJK practice of
|
|
31
|
+
displaying these characters as double-width comes from historic
|
|
32
|
+
implementation simplicity (8-bit encoded characters were displayed
|
|
33
|
+
single-width and 16-bit ones double-width, even for Greek,
|
|
34
|
+
Cyrillic, etc.) and not any typographic considerations.
|
|
35
|
+
|
|
36
|
+
Much less clear is the choice of width for the Not East Asian
|
|
37
|
+
(Neutral) class. Existing practice does not dictate a width for any
|
|
38
|
+
of these characters. It would nevertheless make sense
|
|
39
|
+
typographically to allocate two character cells to characters such
|
|
40
|
+
as for instance EM SPACE or VOLUME INTEGRAL, which cannot be
|
|
41
|
+
represented adequately with a single-width glyph. The following
|
|
42
|
+
routines at present merely assign a single-cell width to all
|
|
43
|
+
neutral characters, in the interest of simplicity. This is not
|
|
44
|
+
entirely satisfactory and should be reconsidered before
|
|
45
|
+
establishing a formal standard in this area. At the moment, the
|
|
46
|
+
decision which Not East Asian (Neutral) characters should be
|
|
47
|
+
represented by double-width glyphs cannot yet be answered by
|
|
48
|
+
applying a simple rule from the Unicode database content. Setting
|
|
49
|
+
up a proper standard for the behavior of UTF-8 character terminals
|
|
50
|
+
will require a careful analysis not only of each Unicode character,
|
|
51
|
+
but also of each presentation form, something the author of these
|
|
52
|
+
routines has avoided to do so far.
|
|
53
|
+
|
|
54
|
+
http://www.unicode.org/unicode/reports/tr11/
|
|
55
|
+
|
|
56
|
+
Markus Kuhn -- 2007-05-26 (Unicode 5.0)
|
|
57
|
+
|
|
58
|
+
Permission to use, copy, modify, and distribute this software
|
|
59
|
+
for any purpose and without fee is hereby granted. The author
|
|
60
|
+
disclaims all warranties with regard to this software.
|
|
61
|
+
|
|
62
|
+
Latest version: http://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|