@aws-solutions-constructs/core 2.51.0 → 2.52.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.
Files changed (200) hide show
  1. package/.eslintignore +2 -0
  2. package/.jsii +49 -4
  3. package/node_modules/ansi-regex/index.js +8 -2
  4. package/node_modules/ansi-regex/license +4 -16
  5. package/node_modules/ansi-regex/package.json +53 -62
  6. package/node_modules/ansi-regex/readme.md +48 -9
  7. package/node_modules/aproba/index.js +33 -33
  8. package/node_modules/aproba/package.json +5 -4
  9. package/node_modules/are-we-there-yet/LICENSE.md +18 -0
  10. package/node_modules/are-we-there-yet/README.md +16 -3
  11. package/node_modules/are-we-there-yet/lib/tracker-base.js +13 -0
  12. package/node_modules/are-we-there-yet/lib/tracker-group.js +112 -0
  13. package/node_modules/are-we-there-yet/lib/tracker-stream.js +42 -0
  14. package/node_modules/are-we-there-yet/lib/tracker.js +34 -0
  15. package/node_modules/are-we-there-yet/package.json +38 -20
  16. package/node_modules/color-support/README.md +129 -0
  17. package/node_modules/color-support/bin.js +3 -0
  18. package/node_modules/color-support/browser.js +14 -0
  19. package/node_modules/color-support/index.js +134 -0
  20. package/node_modules/color-support/package.json +36 -0
  21. package/node_modules/gauge/LICENSE.md +20 -0
  22. package/node_modules/gauge/README.md +19 -16
  23. package/node_modules/gauge/{base-theme.js → lib/base-theme.js} +7 -3
  24. package/node_modules/gauge/lib/has-color.js +4 -0
  25. package/node_modules/gauge/{index.js → lib/index.js} +90 -34
  26. package/node_modules/gauge/{plumbing.js → lib/plumbing.js} +3 -1
  27. package/node_modules/gauge/{progress-bar.js → lib/progress-bar.js} +12 -6
  28. package/node_modules/gauge/{render-template.js → lib/render-template.js} +69 -28
  29. package/node_modules/gauge/{template-item.js → lib/template-item.js} +21 -7
  30. package/node_modules/gauge/{theme-set.js → lib/theme-set.js} +31 -24
  31. package/node_modules/gauge/lib/themes.js +56 -0
  32. package/node_modules/gauge/{wide-truncate.js → lib/wide-truncate.js} +9 -3
  33. package/node_modules/gauge/package.json +47 -42
  34. package/node_modules/is-fullwidth-code-point/index.js +40 -36
  35. package/node_modules/is-fullwidth-code-point/license +4 -16
  36. package/node_modules/is-fullwidth-code-point/package.json +40 -43
  37. package/node_modules/is-fullwidth-code-point/readme.md +8 -8
  38. package/node_modules/npmlog/LICENSE.md +20 -0
  39. package/node_modules/npmlog/{log.js → lib/log.js} +149 -58
  40. package/node_modules/npmlog/package.json +36 -12
  41. package/node_modules/signal-exit/LICENSE.txt +1 -1
  42. package/node_modules/signal-exit/README.md +56 -21
  43. package/node_modules/signal-exit/dist/cjs/browser.d.ts +12 -0
  44. package/node_modules/signal-exit/dist/cjs/browser.d.ts.map +1 -0
  45. package/node_modules/signal-exit/dist/cjs/browser.js +10 -0
  46. package/node_modules/signal-exit/dist/cjs/browser.js.map +1 -0
  47. package/node_modules/signal-exit/dist/cjs/index.d.ts +48 -0
  48. package/node_modules/signal-exit/dist/cjs/index.d.ts.map +1 -0
  49. package/node_modules/signal-exit/dist/cjs/index.js +279 -0
  50. package/node_modules/signal-exit/dist/cjs/index.js.map +1 -0
  51. package/node_modules/signal-exit/dist/cjs/package.json +3 -0
  52. package/node_modules/signal-exit/dist/cjs/signals.d.ts +29 -0
  53. package/node_modules/signal-exit/dist/cjs/signals.d.ts.map +1 -0
  54. package/node_modules/signal-exit/dist/cjs/signals.js +42 -0
  55. package/node_modules/signal-exit/dist/cjs/signals.js.map +1 -0
  56. package/node_modules/signal-exit/dist/mjs/browser.d.ts +12 -0
  57. package/node_modules/signal-exit/dist/mjs/browser.d.ts.map +1 -0
  58. package/node_modules/signal-exit/dist/mjs/browser.js +4 -0
  59. package/node_modules/signal-exit/dist/mjs/browser.js.map +1 -0
  60. package/node_modules/signal-exit/dist/mjs/index.d.ts +48 -0
  61. package/node_modules/signal-exit/dist/mjs/index.d.ts.map +1 -0
  62. package/node_modules/signal-exit/dist/mjs/index.js +275 -0
  63. package/node_modules/signal-exit/dist/mjs/index.js.map +1 -0
  64. package/node_modules/signal-exit/dist/mjs/package.json +3 -0
  65. package/node_modules/signal-exit/dist/mjs/signals.d.ts +29 -0
  66. package/node_modules/signal-exit/dist/mjs/signals.d.ts.map +1 -0
  67. package/node_modules/signal-exit/dist/mjs/signals.js +39 -0
  68. package/node_modules/signal-exit/dist/mjs/signals.js.map +1 -0
  69. package/node_modules/signal-exit/package.json +87 -19
  70. package/node_modules/string-width/index.js +29 -19
  71. package/node_modules/string-width/license +4 -16
  72. package/node_modules/string-width/package.json +54 -54
  73. package/node_modules/string-width/readme.md +17 -9
  74. package/node_modules/strip-ansi/index.js +2 -4
  75. package/node_modules/strip-ansi/license +4 -16
  76. package/node_modules/strip-ansi/package.json +52 -55
  77. package/node_modules/strip-ansi/readme.md +20 -7
  78. package/package.json +8 -7
  79. package/test/test-helper.d.ts +1 -1
  80. package/test/test-helper.js +5 -5
  81. package/node_modules/are-we-there-yet/CHANGES.md +0 -37
  82. package/node_modules/are-we-there-yet/LICENSE +0 -5
  83. package/node_modules/are-we-there-yet/tracker-base.js +0 -11
  84. package/node_modules/are-we-there-yet/tracker-group.js +0 -107
  85. package/node_modules/are-we-there-yet/tracker-stream.js +0 -36
  86. package/node_modules/are-we-there-yet/tracker.js +0 -30
  87. package/node_modules/code-point-at/index.js +0 -32
  88. package/node_modules/code-point-at/license +0 -21
  89. package/node_modules/code-point-at/package.json +0 -38
  90. package/node_modules/code-point-at/readme.md +0 -32
  91. package/node_modules/core-util-is/LICENSE +0 -19
  92. package/node_modules/core-util-is/README.md +0 -3
  93. package/node_modules/core-util-is/lib/util.js +0 -107
  94. package/node_modules/core-util-is/package.json +0 -38
  95. package/node_modules/delegates/.npmignore +0 -1
  96. package/node_modules/delegates/History.md +0 -22
  97. package/node_modules/delegates/License +0 -20
  98. package/node_modules/delegates/Makefile +0 -8
  99. package/node_modules/delegates/Readme.md +0 -94
  100. package/node_modules/delegates/index.js +0 -121
  101. package/node_modules/delegates/package.json +0 -13
  102. package/node_modules/delegates/test/index.js +0 -94
  103. package/node_modules/gauge/CHANGELOG.md +0 -160
  104. package/node_modules/gauge/LICENSE +0 -13
  105. package/node_modules/gauge/has-color.js +0 -12
  106. package/node_modules/gauge/themes.js +0 -54
  107. package/node_modules/inherits/LICENSE +0 -16
  108. package/node_modules/inherits/README.md +0 -42
  109. package/node_modules/inherits/inherits.js +0 -9
  110. package/node_modules/inherits/inherits_browser.js +0 -27
  111. package/node_modules/inherits/package.json +0 -29
  112. package/node_modules/isarray/.npmignore +0 -1
  113. package/node_modules/isarray/.travis.yml +0 -4
  114. package/node_modules/isarray/Makefile +0 -6
  115. package/node_modules/isarray/README.md +0 -60
  116. package/node_modules/isarray/component.json +0 -19
  117. package/node_modules/isarray/index.js +0 -5
  118. package/node_modules/isarray/package.json +0 -45
  119. package/node_modules/isarray/test.js +0 -20
  120. package/node_modules/number-is-nan/index.js +0 -4
  121. package/node_modules/number-is-nan/license +0 -21
  122. package/node_modules/number-is-nan/package.json +0 -35
  123. package/node_modules/number-is-nan/readme.md +0 -28
  124. package/node_modules/object-assign/index.js +0 -90
  125. package/node_modules/object-assign/license +0 -21
  126. package/node_modules/object-assign/package.json +0 -42
  127. package/node_modules/object-assign/readme.md +0 -61
  128. package/node_modules/process-nextick-args/index.js +0 -45
  129. package/node_modules/process-nextick-args/license.md +0 -19
  130. package/node_modules/process-nextick-args/package.json +0 -25
  131. package/node_modules/process-nextick-args/readme.md +0 -18
  132. package/node_modules/readable-stream/.travis.yml +0 -34
  133. package/node_modules/readable-stream/CONTRIBUTING.md +0 -38
  134. package/node_modules/readable-stream/GOVERNANCE.md +0 -136
  135. package/node_modules/readable-stream/LICENSE +0 -47
  136. package/node_modules/readable-stream/README.md +0 -58
  137. package/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +0 -60
  138. package/node_modules/readable-stream/duplex-browser.js +0 -1
  139. package/node_modules/readable-stream/duplex.js +0 -1
  140. package/node_modules/readable-stream/lib/_stream_duplex.js +0 -131
  141. package/node_modules/readable-stream/lib/_stream_passthrough.js +0 -47
  142. package/node_modules/readable-stream/lib/_stream_readable.js +0 -1019
  143. package/node_modules/readable-stream/lib/_stream_transform.js +0 -214
  144. package/node_modules/readable-stream/lib/_stream_writable.js +0 -685
  145. package/node_modules/readable-stream/lib/internal/streams/BufferList.js +0 -78
  146. package/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -84
  147. package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
  148. package/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
  149. package/node_modules/readable-stream/package.json +0 -52
  150. package/node_modules/readable-stream/passthrough.js +0 -1
  151. package/node_modules/readable-stream/readable-browser.js +0 -7
  152. package/node_modules/readable-stream/readable.js +0 -19
  153. package/node_modules/readable-stream/transform.js +0 -1
  154. package/node_modules/readable-stream/writable-browser.js +0 -1
  155. package/node_modules/readable-stream/writable.js +0 -8
  156. package/node_modules/safe-buffer/LICENSE +0 -21
  157. package/node_modules/safe-buffer/README.md +0 -584
  158. package/node_modules/safe-buffer/index.d.ts +0 -187
  159. package/node_modules/safe-buffer/index.js +0 -62
  160. package/node_modules/safe-buffer/package.json +0 -37
  161. package/node_modules/signal-exit/index.js +0 -202
  162. package/node_modules/signal-exit/signals.js +0 -53
  163. package/node_modules/string_decoder/.travis.yml +0 -50
  164. package/node_modules/string_decoder/LICENSE +0 -48
  165. package/node_modules/string_decoder/README.md +0 -47
  166. package/node_modules/string_decoder/lib/string_decoder.js +0 -296
  167. package/node_modules/string_decoder/package.json +0 -31
  168. package/node_modules/util-deprecate/History.md +0 -16
  169. package/node_modules/util-deprecate/LICENSE +0 -24
  170. package/node_modules/util-deprecate/README.md +0 -53
  171. package/node_modules/util-deprecate/browser.js +0 -67
  172. package/node_modules/util-deprecate/node.js +0 -6
  173. package/node_modules/util-deprecate/package.json +0 -27
  174. package/node_modules/wide-align/node_modules/ansi-regex/index.js +0 -10
  175. package/node_modules/wide-align/node_modules/ansi-regex/license +0 -9
  176. package/node_modules/wide-align/node_modules/ansi-regex/package.json +0 -55
  177. package/node_modules/wide-align/node_modules/ansi-regex/readme.md +0 -78
  178. package/node_modules/wide-align/node_modules/is-fullwidth-code-point/index.js +0 -50
  179. package/node_modules/wide-align/node_modules/is-fullwidth-code-point/license +0 -9
  180. package/node_modules/wide-align/node_modules/is-fullwidth-code-point/package.json +0 -42
  181. package/node_modules/wide-align/node_modules/is-fullwidth-code-point/readme.md +0 -39
  182. package/node_modules/wide-align/node_modules/string-width/index.js +0 -47
  183. package/node_modules/wide-align/node_modules/string-width/license +0 -9
  184. package/node_modules/wide-align/node_modules/string-width/package.json +0 -56
  185. package/node_modules/wide-align/node_modules/string-width/readme.md +0 -50
  186. package/node_modules/wide-align/node_modules/strip-ansi/index.js +0 -4
  187. package/node_modules/wide-align/node_modules/strip-ansi/license +0 -9
  188. package/node_modules/wide-align/node_modules/strip-ansi/package.json +0 -54
  189. package/node_modules/wide-align/node_modules/strip-ansi/readme.md +0 -46
  190. /package/node_modules/{wide-align/node_modules/ansi-regex → ansi-regex}/index.d.ts +0 -0
  191. /package/node_modules/are-we-there-yet/{index.js → lib/index.js} +0 -0
  192. /package/node_modules/{npmlog → color-support}/LICENSE +0 -0
  193. /package/node_modules/gauge/{error.js → lib/error.js} +0 -0
  194. /package/node_modules/gauge/{process.js → lib/process.js} +0 -0
  195. /package/node_modules/gauge/{set-immediate.js → lib/set-immediate.js} +0 -0
  196. /package/node_modules/gauge/{set-interval.js → lib/set-interval.js} +0 -0
  197. /package/node_modules/gauge/{spin.js → lib/spin.js} +0 -0
  198. /package/node_modules/{wide-align/node_modules/is-fullwidth-code-point → is-fullwidth-code-point}/index.d.ts +0 -0
  199. /package/node_modules/{wide-align/node_modules/string-width → string-width}/index.d.ts +0 -0
  200. /package/node_modules/{wide-align/node_modules/strip-ansi → strip-ansi}/index.d.ts +0 -0
@@ -1,50 +0,0 @@
1
- /* eslint-disable yoda */
2
- 'use strict';
3
-
4
- const isFullwidthCodePoint = codePoint => {
5
- if (Number.isNaN(codePoint)) {
6
- return false;
7
- }
8
-
9
- // Code points are derived from:
10
- // http://www.unix.org/Public/UNIDATA/EastAsianWidth.txt
11
- if (
12
- codePoint >= 0x1100 && (
13
- codePoint <= 0x115F || // Hangul Jamo
14
- codePoint === 0x2329 || // LEFT-POINTING ANGLE BRACKET
15
- codePoint === 0x232A || // RIGHT-POINTING ANGLE BRACKET
16
- // CJK Radicals Supplement .. Enclosed CJK Letters and Months
17
- (0x2E80 <= codePoint && codePoint <= 0x3247 && codePoint !== 0x303F) ||
18
- // Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A
19
- (0x3250 <= codePoint && codePoint <= 0x4DBF) ||
20
- // CJK Unified Ideographs .. Yi Radicals
21
- (0x4E00 <= codePoint && codePoint <= 0xA4C6) ||
22
- // Hangul Jamo Extended-A
23
- (0xA960 <= codePoint && codePoint <= 0xA97C) ||
24
- // Hangul Syllables
25
- (0xAC00 <= codePoint && codePoint <= 0xD7A3) ||
26
- // CJK Compatibility Ideographs
27
- (0xF900 <= codePoint && codePoint <= 0xFAFF) ||
28
- // Vertical Forms
29
- (0xFE10 <= codePoint && codePoint <= 0xFE19) ||
30
- // CJK Compatibility Forms .. Small Form Variants
31
- (0xFE30 <= codePoint && codePoint <= 0xFE6B) ||
32
- // Halfwidth and Fullwidth Forms
33
- (0xFF01 <= codePoint && codePoint <= 0xFF60) ||
34
- (0xFFE0 <= codePoint && codePoint <= 0xFFE6) ||
35
- // Kana Supplement
36
- (0x1B000 <= codePoint && codePoint <= 0x1B001) ||
37
- // Enclosed Ideographic Supplement
38
- (0x1F200 <= codePoint && codePoint <= 0x1F251) ||
39
- // CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane
40
- (0x20000 <= codePoint && codePoint <= 0x3FFFD)
41
- )
42
- ) {
43
- return true;
44
- }
45
-
46
- return false;
47
- };
48
-
49
- module.exports = isFullwidthCodePoint;
50
- module.exports.default = isFullwidthCodePoint;
@@ -1,9 +0,0 @@
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.
@@ -1,42 +0,0 @@
1
- {
2
- "name": "is-fullwidth-code-point",
3
- "version": "3.0.0",
4
- "description": "Check if the character represented by a given Unicode code point is fullwidth",
5
- "license": "MIT",
6
- "repository": "sindresorhus/is-fullwidth-code-point",
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 && tsd-check"
17
- },
18
- "files": [
19
- "index.js",
20
- "index.d.ts"
21
- ],
22
- "keywords": [
23
- "fullwidth",
24
- "full-width",
25
- "full",
26
- "width",
27
- "unicode",
28
- "character",
29
- "string",
30
- "codepoint",
31
- "code",
32
- "point",
33
- "is",
34
- "detect",
35
- "check"
36
- ],
37
- "devDependencies": {
38
- "ava": "^1.3.1",
39
- "tsd-check": "^0.5.0",
40
- "xo": "^0.24.0"
41
- }
42
- }
@@ -1,39 +0,0 @@
1
- # is-fullwidth-code-point [![Build Status](https://travis-ci.org/sindresorhus/is-fullwidth-code-point.svg?branch=master)](https://travis-ci.org/sindresorhus/is-fullwidth-code-point)
2
-
3
- > Check if the character represented by a given [Unicode code point](https://en.wikipedia.org/wiki/Code_point) is [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms)
4
-
5
-
6
- ## Install
7
-
8
- ```
9
- $ npm install is-fullwidth-code-point
10
- ```
11
-
12
-
13
- ## Usage
14
-
15
- ```js
16
- const isFullwidthCodePoint = require('is-fullwidth-code-point');
17
-
18
- isFullwidthCodePoint('谢'.codePointAt(0));
19
- //=> true
20
-
21
- isFullwidthCodePoint('a'.codePointAt(0));
22
- //=> false
23
- ```
24
-
25
-
26
- ## API
27
-
28
- ### isFullwidthCodePoint(codePoint)
29
-
30
- #### codePoint
31
-
32
- Type: `number`
33
-
34
- The [code point](https://en.wikipedia.org/wiki/Code_point) of a character.
35
-
36
-
37
- ## License
38
-
39
- MIT © [Sindre Sorhus](https://sindresorhus.com)
@@ -1,47 +0,0 @@
1
- 'use strict';
2
- const stripAnsi = require('strip-ansi');
3
- const isFullwidthCodePoint = require('is-fullwidth-code-point');
4
- const emojiRegex = require('emoji-regex');
5
-
6
- const stringWidth = string => {
7
- if (typeof string !== 'string' || string.length === 0) {
8
- return 0;
9
- }
10
-
11
- string = stripAnsi(string);
12
-
13
- if (string.length === 0) {
14
- return 0;
15
- }
16
-
17
- string = string.replace(emojiRegex(), ' ');
18
-
19
- let width = 0;
20
-
21
- for (let i = 0; i < string.length; i++) {
22
- const code = string.codePointAt(i);
23
-
24
- // Ignore control characters
25
- if (code <= 0x1F || (code >= 0x7F && code <= 0x9F)) {
26
- continue;
27
- }
28
-
29
- // Ignore combining characters
30
- if (code >= 0x300 && code <= 0x36F) {
31
- continue;
32
- }
33
-
34
- // Surrogates
35
- if (code > 0xFFFF) {
36
- i++;
37
- }
38
-
39
- width += isFullwidthCodePoint(code) ? 2 : 1;
40
- }
41
-
42
- return width;
43
- };
44
-
45
- module.exports = stringWidth;
46
- // TODO: remove this in the next major version
47
- module.exports.default = stringWidth;
@@ -1,9 +0,0 @@
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.
@@ -1,56 +0,0 @@
1
- {
2
- "name": "string-width",
3
- "version": "4.2.3",
4
- "description": "Get the visual width of a string - the number of columns required to display it",
5
- "license": "MIT",
6
- "repository": "sindresorhus/string-width",
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 && tsd"
17
- },
18
- "files": [
19
- "index.js",
20
- "index.d.ts"
21
- ],
22
- "keywords": [
23
- "string",
24
- "character",
25
- "unicode",
26
- "width",
27
- "visual",
28
- "column",
29
- "columns",
30
- "fullwidth",
31
- "full-width",
32
- "full",
33
- "ansi",
34
- "escape",
35
- "codes",
36
- "cli",
37
- "command-line",
38
- "terminal",
39
- "console",
40
- "cjk",
41
- "chinese",
42
- "japanese",
43
- "korean",
44
- "fixed-width"
45
- ],
46
- "dependencies": {
47
- "emoji-regex": "^8.0.0",
48
- "is-fullwidth-code-point": "^3.0.0",
49
- "strip-ansi": "^6.0.1"
50
- },
51
- "devDependencies": {
52
- "ava": "^1.4.1",
53
- "tsd": "^0.7.1",
54
- "xo": "^0.24.0"
55
- }
56
- }
@@ -1,50 +0,0 @@
1
- # string-width
2
-
3
- > Get the visual width of a string - the number of columns required to display it
4
-
5
- Some Unicode characters are [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms) and use double the normal width. [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) are stripped and doesn't affect the width.
6
-
7
- Useful to be able to measure the actual width of command-line output.
8
-
9
-
10
- ## Install
11
-
12
- ```
13
- $ npm install string-width
14
- ```
15
-
16
-
17
- ## Usage
18
-
19
- ```js
20
- const stringWidth = require('string-width');
21
-
22
- stringWidth('a');
23
- //=> 1
24
-
25
- stringWidth('古');
26
- //=> 2
27
-
28
- stringWidth('\u001B[1m古\u001B[22m');
29
- //=> 2
30
- ```
31
-
32
-
33
- ## Related
34
-
35
- - [string-width-cli](https://github.com/sindresorhus/string-width-cli) - CLI for this module
36
- - [string-length](https://github.com/sindresorhus/string-length) - Get the real length of a string
37
- - [widest-line](https://github.com/sindresorhus/widest-line) - Get the visual width of the widest line in a string
38
-
39
-
40
- ---
41
-
42
- <div align="center">
43
- <b>
44
- <a href="https://tidelift.com/subscription/pkg/npm-string-width?utm_source=npm-string-width&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
45
- </b>
46
- <br>
47
- <sub>
48
- Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
49
- </sub>
50
- </div>
@@ -1,4 +0,0 @@
1
- 'use strict';
2
- const ansiRegex = require('ansi-regex');
3
-
4
- module.exports = string => typeof string === 'string' ? string.replace(ansiRegex(), '') : string;
@@ -1,9 +0,0 @@
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.
@@ -1,54 +0,0 @@
1
- {
2
- "name": "strip-ansi",
3
- "version": "6.0.1",
4
- "description": "Strip ANSI escape codes from a string",
5
- "license": "MIT",
6
- "repository": "chalk/strip-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 && ava && tsd"
17
- },
18
- "files": [
19
- "index.js",
20
- "index.d.ts"
21
- ],
22
- "keywords": [
23
- "strip",
24
- "trim",
25
- "remove",
26
- "ansi",
27
- "styles",
28
- "color",
29
- "colour",
30
- "colors",
31
- "terminal",
32
- "console",
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
- "ansi-regex": "^5.0.1"
48
- },
49
- "devDependencies": {
50
- "ava": "^2.4.0",
51
- "tsd": "^0.10.0",
52
- "xo": "^0.25.3"
53
- }
54
- }
@@ -1,46 +0,0 @@
1
- # strip-ansi [![Build Status](https://travis-ci.org/chalk/strip-ansi.svg?branch=master)](https://travis-ci.org/chalk/strip-ansi)
2
-
3
- > Strip [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) from a string
4
-
5
-
6
- ## Install
7
-
8
- ```
9
- $ npm install strip-ansi
10
- ```
11
-
12
-
13
- ## Usage
14
-
15
- ```js
16
- const stripAnsi = require('strip-ansi');
17
-
18
- stripAnsi('\u001B[4mUnicorn\u001B[0m');
19
- //=> 'Unicorn'
20
-
21
- stripAnsi('\u001B]8;;https://github.com\u0007Click\u001B]8;;\u0007');
22
- //=> 'Click'
23
- ```
24
-
25
-
26
- ## strip-ansi for enterprise
27
-
28
- Available as part of the Tidelift Subscription.
29
-
30
- The maintainers of strip-ansi 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-strip-ansi?utm_source=npm-strip-ansi&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
31
-
32
-
33
- ## Related
34
-
35
- - [strip-ansi-cli](https://github.com/chalk/strip-ansi-cli) - CLI for this module
36
- - [strip-ansi-stream](https://github.com/chalk/strip-ansi-stream) - Streaming version of this module
37
- - [has-ansi](https://github.com/chalk/has-ansi) - Check if a string has ANSI escape codes
38
- - [ansi-regex](https://github.com/chalk/ansi-regex) - Regular expression for matching ANSI escape codes
39
- - [chalk](https://github.com/chalk/chalk) - Terminal string styling done right
40
-
41
-
42
- ## Maintainers
43
-
44
- - [Sindre Sorhus](https://github.com/sindresorhus)
45
- - [Josh Junon](https://github.com/qix-)
46
-
File without changes
File without changes
File without changes