angular-slickgrid 4.2.1 → 4.2.2

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 (205) hide show
  1. package/LICENSE +20 -20
  2. package/app/modules/angular-slickgrid/components/angular-slickgrid.component.d.ts +2 -2
  3. package/app/modules/angular-slickgrid/extensions/slickRowDetailView.d.ts +0 -2
  4. package/docs/assets/lib/multiple-select/README.md +17 -17
  5. package/esm2020/app/modules/angular-slickgrid/components/angular-slickgrid.component.mjs +14 -14
  6. package/esm2020/app/modules/angular-slickgrid/constants.mjs +1 -1
  7. package/esm2020/app/modules/angular-slickgrid/extensions/index.mjs +1 -1
  8. package/esm2020/app/modules/angular-slickgrid/extensions/slickRowDetailView.mjs +2 -4
  9. package/esm2020/app/modules/angular-slickgrid/global-grid-options.mjs +1 -1
  10. package/esm2020/app/modules/angular-slickgrid/index.mjs +1 -1
  11. package/esm2020/app/modules/angular-slickgrid/models/angularComponentOutput.interface.mjs +1 -1
  12. package/esm2020/app/modules/angular-slickgrid/models/angularGridInstance.interface.mjs +1 -1
  13. package/esm2020/app/modules/angular-slickgrid/models/externalTestingDependencies.interface.mjs +1 -1
  14. package/esm2020/app/modules/angular-slickgrid/models/gridOption.interface.mjs +1 -1
  15. package/esm2020/app/modules/angular-slickgrid/models/index.mjs +1 -1
  16. package/esm2020/app/modules/angular-slickgrid/models/rowDetailView.interface.mjs +1 -1
  17. package/esm2020/app/modules/angular-slickgrid/models/slickGrid.interface.mjs +1 -1
  18. package/esm2020/app/modules/angular-slickgrid/modules/angular-slickgrid.module.mjs +7 -10
  19. package/esm2020/app/modules/angular-slickgrid/services/angularUtil.service.mjs +4 -4
  20. package/esm2020/app/modules/angular-slickgrid/services/bsDropdown.service.mjs +4 -4
  21. package/esm2020/app/modules/angular-slickgrid/services/container.service.mjs +4 -4
  22. package/esm2020/app/modules/angular-slickgrid/services/index.mjs +1 -1
  23. package/esm2020/app/modules/angular-slickgrid/services/translater.service.mjs +4 -4
  24. package/esm2020/app/modules/angular-slickgrid/services/utilities.mjs +1 -1
  25. package/esm2020/app/modules/angular-slickgrid/slickgrid-config.mjs +1 -1
  26. package/esm2020/public_api.mjs +1 -1
  27. package/fesm2015/angular-slickgrid.mjs +32 -37
  28. package/fesm2015/angular-slickgrid.mjs.map +1 -1
  29. package/fesm2020/angular-slickgrid.mjs +32 -37
  30. package/fesm2020/angular-slickgrid.mjs.map +1 -1
  31. package/i18n/en.json +89 -89
  32. package/i18n/fr.json +90 -90
  33. package/{angular-slickgrid.d.ts → index.d.ts} +0 -0
  34. package/package.json +11 -11
  35. package/test/cypress/node_modules/@cypress/request/README.md +1038 -0
  36. package/test/cypress/node_modules/@cypress/xvfb/README.md +48 -0
  37. package/test/cypress/node_modules/@cypress/xvfb/node_modules/debug/README.md +437 -0
  38. package/test/cypress/node_modules/@types/node/README.md +16 -0
  39. package/test/cypress/node_modules/@types/sinonjs__fake-timers/README.md +16 -0
  40. package/test/cypress/node_modules/@types/sizzle/README.md +16 -0
  41. package/test/cypress/node_modules/@types/yauzl/README.md +16 -0
  42. package/test/cypress/node_modules/@types/yauzl/node_modules/@types/node/README.md +16 -0
  43. package/test/cypress/node_modules/aggregate-error/README.md +61 -0
  44. package/test/cypress/node_modules/ansi-colors/README.md +315 -0
  45. package/test/cypress/node_modules/ansi-escapes/README.md +245 -0
  46. package/test/cypress/node_modules/ansi-regex/README.md +78 -0
  47. package/test/cypress/node_modules/ansi-styles/README.md +152 -0
  48. package/test/cypress/node_modules/arch/README.md +71 -0
  49. package/test/cypress/node_modules/asn1/README.md +50 -0
  50. package/test/cypress/node_modules/assert-plus/README.md +162 -0
  51. package/test/cypress/node_modules/astral-regex/README.md +46 -0
  52. package/test/cypress/node_modules/async/README.md +60 -0
  53. package/test/cypress/node_modules/asynckit/README.md +233 -0
  54. package/test/cypress/node_modules/at-least-node/README.md +25 -0
  55. package/test/cypress/node_modules/aws-sign2/README.md +4 -0
  56. package/test/cypress/node_modules/aws4/README.md +183 -0
  57. package/test/cypress/node_modules/balanced-match/README.md +91 -0
  58. package/test/cypress/node_modules/base64-js/README.md +34 -0
  59. package/test/cypress/node_modules/bcrypt-pbkdf/README.md +45 -0
  60. package/test/cypress/node_modules/blob-util/README.md +623 -0
  61. package/test/cypress/node_modules/bluebird/README.md +57 -0
  62. package/test/cypress/node_modules/brace-expansion/README.md +129 -0
  63. package/test/cypress/node_modules/buffer/README.md +410 -0
  64. package/test/cypress/node_modules/buffer-crc32/README.md +47 -0
  65. package/test/cypress/node_modules/cachedir/README.md +27 -0
  66. package/test/cypress/node_modules/caseless/README.md +45 -0
  67. package/test/cypress/node_modules/chalk/README.md +293 -0
  68. package/test/cypress/node_modules/chalk/node_modules/supports-color/README.md +76 -0
  69. package/test/cypress/node_modules/check-more-types/README.md +952 -0
  70. package/test/cypress/node_modules/ci-info/README.md +114 -0
  71. package/test/cypress/node_modules/clean-stack/README.md +76 -0
  72. package/test/cypress/node_modules/cli-cursor/README.md +55 -0
  73. package/test/cypress/node_modules/cli-table3/README.md +218 -0
  74. package/test/cypress/node_modules/cli-truncate/README.md +139 -0
  75. package/test/cypress/node_modules/color-convert/README.md +68 -0
  76. package/test/cypress/node_modules/color-name/README.md +11 -0
  77. package/test/cypress/node_modules/colorette/README.md +102 -0
  78. package/test/cypress/node_modules/colors/README.md +221 -0
  79. package/test/cypress/node_modules/combined-stream/README.md +138 -0
  80. package/test/cypress/node_modules/commander/README.md +737 -0
  81. package/test/cypress/node_modules/common-tags/README.md +687 -0
  82. package/test/cypress/node_modules/core-util-is/README.md +3 -0
  83. package/test/cypress/node_modules/cross-spawn/README.md +96 -0
  84. package/test/cypress/node_modules/cypress/README.md +25 -0
  85. package/test/cypress/node_modules/cypress/mount-utils/README.md +14 -0
  86. package/test/cypress/node_modules/cypress/react/README.md +414 -0
  87. package/test/cypress/node_modules/cypress/vue/README.md +678 -0
  88. package/test/cypress/node_modules/cypress/vue2/README.md +693 -0
  89. package/test/cypress/node_modules/dashdash/README.md +574 -0
  90. package/test/cypress/node_modules/dayjs/README.md +128 -0
  91. package/test/cypress/node_modules/debug/README.md +455 -0
  92. package/test/cypress/node_modules/delayed-stream/README.md +141 -0
  93. package/test/cypress/node_modules/ecc-jsbn/README.md +8 -0
  94. package/test/cypress/node_modules/emoji-regex/README.md +73 -0
  95. package/test/cypress/node_modules/end-of-stream/README.md +54 -0
  96. package/test/cypress/node_modules/enquirer/README.md +1752 -0
  97. package/test/cypress/node_modules/escape-string-regexp/README.md +27 -0
  98. package/test/cypress/node_modules/eventemitter2/README.md +809 -0
  99. package/test/cypress/node_modules/execa/README.md +656 -0
  100. package/test/cypress/node_modules/executable/README.md +64 -0
  101. package/test/cypress/node_modules/extend/README.md +81 -0
  102. package/test/cypress/node_modules/extract-zip/README.md +57 -0
  103. package/test/cypress/node_modules/extract-zip/node_modules/debug/README.md +455 -0
  104. package/test/cypress/node_modules/extsprintf/README.md +46 -0
  105. package/test/cypress/node_modules/fd-slicer/README.md +199 -0
  106. package/test/cypress/node_modules/figures/README.md +139 -0
  107. package/test/cypress/node_modules/forever-agent/README.md +4 -0
  108. package/test/cypress/node_modules/form-data/README.md +234 -0
  109. package/test/cypress/node_modules/fs-extra/README.md +264 -0
  110. package/test/cypress/node_modules/fs.realpath/README.md +33 -0
  111. package/test/cypress/node_modules/get-stream/README.md +124 -0
  112. package/test/cypress/node_modules/getos/README.md +79 -0
  113. package/test/cypress/node_modules/getpass/README.md +32 -0
  114. package/test/cypress/node_modules/glob/README.md +375 -0
  115. package/test/cypress/node_modules/global-dirs/README.md +72 -0
  116. package/test/cypress/node_modules/graceful-fs/README.md +133 -0
  117. package/test/cypress/node_modules/has-flag/README.md +89 -0
  118. package/test/cypress/node_modules/http-signature/README.md +80 -0
  119. package/test/cypress/node_modules/human-signals/README.md +155 -0
  120. package/test/cypress/node_modules/ieee754/README.md +51 -0
  121. package/test/cypress/node_modules/indent-string/README.md +70 -0
  122. package/test/cypress/node_modules/inflight/README.md +37 -0
  123. package/test/cypress/node_modules/inherits/README.md +42 -0
  124. package/test/cypress/node_modules/ini/README.md +102 -0
  125. package/test/cypress/node_modules/is-ci/README.md +50 -0
  126. package/test/cypress/node_modules/is-fullwidth-code-point/README.md +39 -0
  127. package/test/cypress/node_modules/is-installed-globally/README.md +31 -0
  128. package/test/cypress/node_modules/is-path-inside/README.md +63 -0
  129. package/test/cypress/node_modules/is-stream/README.md +57 -0
  130. package/test/cypress/node_modules/is-typedarray/README.md +16 -0
  131. package/test/cypress/node_modules/isexe/README.md +51 -0
  132. package/test/cypress/node_modules/isstream/README.md +66 -0
  133. package/test/cypress/node_modules/jsbn/README.md +175 -0
  134. package/test/cypress/node_modules/json-schema/README.md +3 -0
  135. package/test/cypress/node_modules/json-stringify-safe/README.md +52 -0
  136. package/test/cypress/node_modules/jsonfile/README.md +205 -0
  137. package/test/cypress/node_modules/jsonfile/node_modules/universalify/README.md +76 -0
  138. package/test/cypress/node_modules/jsprim/README.md +287 -0
  139. package/test/cypress/node_modules/lazy-ass/README.md +269 -0
  140. package/test/cypress/node_modules/listr2/README.md +17 -0
  141. package/test/cypress/node_modules/lodash/README.md +39 -0
  142. package/test/cypress/node_modules/lodash.once/README.md +18 -0
  143. package/test/cypress/node_modules/log-symbols/README.md +51 -0
  144. package/test/cypress/node_modules/log-update/README.md +97 -0
  145. package/test/cypress/node_modules/log-update/node_modules/slice-ansi/README.md +66 -0
  146. package/test/cypress/node_modules/log-update/node_modules/wrap-ansi/README.md +97 -0
  147. package/test/cypress/node_modules/lru-cache/README.md +166 -0
  148. package/test/cypress/node_modules/merge-stream/README.md +78 -0
  149. package/test/cypress/node_modules/mime-db/README.md +102 -0
  150. package/test/cypress/node_modules/mime-types/README.md +123 -0
  151. package/test/cypress/node_modules/mimic-fn/README.md +69 -0
  152. package/test/cypress/node_modules/minimatch/README.md +209 -0
  153. package/test/cypress/node_modules/ms/README.md +60 -0
  154. package/test/cypress/node_modules/npm-run-path/README.md +115 -0
  155. package/test/cypress/node_modules/once/README.md +79 -0
  156. package/test/cypress/node_modules/onetime/README.md +94 -0
  157. package/test/cypress/node_modules/ospath/README.md +53 -0
  158. package/test/cypress/node_modules/p-map/README.md +89 -0
  159. package/test/cypress/node_modules/path-is-absolute/README.md +59 -0
  160. package/test/cypress/node_modules/path-key/README.md +61 -0
  161. package/test/cypress/node_modules/pend/README.md +41 -0
  162. package/test/cypress/node_modules/performance-now/README.md +30 -0
  163. package/test/cypress/node_modules/pify/README.md +119 -0
  164. package/test/cypress/node_modules/pretty-bytes/README.md +131 -0
  165. package/test/cypress/node_modules/proxy-from-env/README.md +131 -0
  166. package/test/cypress/node_modules/psl/README.md +215 -0
  167. package/test/cypress/node_modules/pump/README.md +65 -0
  168. package/test/cypress/node_modules/punycode/README.md +122 -0
  169. package/test/cypress/node_modules/qs/README.md +475 -0
  170. package/test/cypress/node_modules/request-progress/README.md +78 -0
  171. package/test/cypress/node_modules/restore-cursor/README.md +26 -0
  172. package/test/cypress/node_modules/rimraf/README.md +101 -0
  173. package/test/cypress/node_modules/rxjs/README.md +147 -0
  174. package/test/cypress/node_modules/rxjs/_esm2015/README.md +147 -0
  175. package/test/cypress/node_modules/rxjs/_esm5/README.md +147 -0
  176. package/test/cypress/node_modules/rxjs/src/README.md +147 -0
  177. package/test/cypress/node_modules/safe-buffer/README.md +584 -0
  178. package/test/cypress/node_modules/safer-buffer/README.md +156 -0
  179. package/test/cypress/node_modules/semver/README.md +566 -0
  180. package/test/cypress/node_modules/shebang-command/README.md +34 -0
  181. package/test/cypress/node_modules/shebang-regex/README.md +33 -0
  182. package/test/cypress/node_modules/signal-exit/README.md +39 -0
  183. package/test/cypress/node_modules/slice-ansi/README.md +72 -0
  184. package/test/cypress/node_modules/sshpk/README.md +804 -0
  185. package/test/cypress/node_modules/string-width/README.md +50 -0
  186. package/test/cypress/node_modules/strip-ansi/README.md +46 -0
  187. package/test/cypress/node_modules/strip-final-newline/README.md +30 -0
  188. package/test/cypress/node_modules/supports-color/README.md +77 -0
  189. package/test/cypress/node_modules/throttleit/README.md +32 -0
  190. package/test/cypress/node_modules/tmp/README.md +365 -0
  191. package/test/cypress/node_modules/tough-cookie/README.md +527 -0
  192. package/test/cypress/node_modules/tslib/README.md +142 -0
  193. package/test/cypress/node_modules/tunnel-agent/README.md +4 -0
  194. package/test/cypress/node_modules/tweetnacl/README.md +459 -0
  195. package/test/cypress/node_modules/type-fest/README.md +760 -0
  196. package/test/cypress/node_modules/universalify/README.md +76 -0
  197. package/test/cypress/node_modules/untildify/README.md +30 -0
  198. package/test/cypress/node_modules/uuid/README.md +505 -0
  199. package/test/cypress/node_modules/verror/README.md +528 -0
  200. package/test/cypress/node_modules/verror/node_modules/extsprintf/README.md +46 -0
  201. package/test/cypress/node_modules/which/README.md +54 -0
  202. package/test/cypress/node_modules/wrap-ansi/README.md +91 -0
  203. package/test/cypress/node_modules/wrappy/README.md +36 -0
  204. package/test/cypress/node_modules/yallist/README.md +204 -0
  205. package/test/cypress/node_modules/yauzl/README.md +658 -0
@@ -0,0 +1,315 @@
1
+ # ansi-colors [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=W8YFZ425KND68) [![NPM version](https://img.shields.io/npm/v/ansi-colors.svg?style=flat)](https://www.npmjs.com/package/ansi-colors) [![NPM monthly downloads](https://img.shields.io/npm/dm/ansi-colors.svg?style=flat)](https://npmjs.org/package/ansi-colors) [![NPM total downloads](https://img.shields.io/npm/dt/ansi-colors.svg?style=flat)](https://npmjs.org/package/ansi-colors) [![Linux Build Status](https://img.shields.io/travis/doowb/ansi-colors.svg?style=flat&label=Travis)](https://travis-ci.org/doowb/ansi-colors)
2
+
3
+ > Easily add ANSI colors to your text and symbols in the terminal. A faster drop-in replacement for chalk, kleur and turbocolor (without the dependencies and rendering bugs).
4
+
5
+ Please consider following this project's author, [Brian Woodward](https://github.com/doowb), and consider starring the project to show your :heart: and support.
6
+
7
+ ## Install
8
+
9
+ Install with [npm](https://www.npmjs.com/):
10
+
11
+ ```sh
12
+ $ npm install --save ansi-colors
13
+ ```
14
+
15
+ ![image](https://user-images.githubusercontent.com/383994/39635445-8a98a3a6-4f8b-11e8-89c1-068c45d4fff8.png)
16
+
17
+ ## Why use this?
18
+
19
+ ansi-colors is _the fastest Node.js library for terminal styling_. A more performant drop-in replacement for chalk, with no dependencies.
20
+
21
+ * _Blazing fast_ - Fastest terminal styling library in node.js, 10-20x faster than chalk!
22
+
23
+ * _Drop-in replacement_ for [chalk](https://github.com/chalk/chalk).
24
+ * _No dependencies_ (Chalk has 7 dependencies in its tree!)
25
+
26
+ * _Safe_ - Does not modify the `String.prototype` like [colors](https://github.com/Marak/colors.js).
27
+ * Supports [nested colors](#nested-colors), **and does not have the [nested styling bug](#nested-styling-bug) that is present in [colorette](https://github.com/jorgebucaran/colorette), [chalk](https://github.com/chalk/chalk), and [kleur](https://github.com/lukeed/kleur)**.
28
+ * Supports [chained colors](#chained-colors).
29
+ * [Toggle color support](#toggle-color-support) on or off.
30
+
31
+ ## Usage
32
+
33
+ ```js
34
+ const c = require('ansi-colors');
35
+
36
+ console.log(c.red('This is a red string!'));
37
+ console.log(c.green('This is a red string!'));
38
+ console.log(c.cyan('This is a cyan string!'));
39
+ console.log(c.yellow('This is a yellow string!'));
40
+ ```
41
+
42
+ ![image](https://user-images.githubusercontent.com/383994/39653848-a38e67da-4fc0-11e8-89ae-98c65ebe9dcf.png)
43
+
44
+ ## Chained colors
45
+
46
+ ```js
47
+ console.log(c.bold.red('this is a bold red message'));
48
+ console.log(c.bold.yellow.italic('this is a bold yellow italicized message'));
49
+ console.log(c.green.bold.underline('this is a bold green underlined message'));
50
+ ```
51
+
52
+ ![image](https://user-images.githubusercontent.com/383994/39635780-7617246a-4f8c-11e8-89e9-05216cc54e38.png)
53
+
54
+ ## Nested colors
55
+
56
+ ```js
57
+ console.log(c.yellow(`foo ${c.red.bold('red')} bar ${c.cyan('cyan')} baz`));
58
+ ```
59
+
60
+ ![image](https://user-images.githubusercontent.com/383994/39635817-8ed93d44-4f8c-11e8-8afd-8c3ea35f5fbe.png)
61
+
62
+ ### Nested styling bug
63
+
64
+ `ansi-colors` does not have the nested styling bug found in [colorette](https://github.com/jorgebucaran/colorette), [chalk](https://github.com/chalk/chalk), and [kleur](https://github.com/lukeed/kleur).
65
+
66
+ ```js
67
+ const { bold, red } = require('ansi-styles');
68
+ console.log(bold(`foo ${red.dim('bar')} baz`));
69
+
70
+ const colorette = require('colorette');
71
+ console.log(colorette.bold(`foo ${colorette.red(colorette.dim('bar'))} baz`));
72
+
73
+ const kleur = require('kleur');
74
+ console.log(kleur.bold(`foo ${kleur.red.dim('bar')} baz`));
75
+
76
+ const chalk = require('chalk');
77
+ console.log(chalk.bold(`foo ${chalk.red.dim('bar')} baz`));
78
+ ```
79
+
80
+ **Results in the following**
81
+
82
+ (sans icons and labels)
83
+
84
+ ![image](https://user-images.githubusercontent.com/383994/47280326-d2ee0580-d5a3-11e8-9611-ea6010f0a253.png)
85
+
86
+ ## Toggle color support
87
+
88
+ Easily enable/disable colors.
89
+
90
+ ```js
91
+ const c = require('ansi-colors');
92
+
93
+ // disable colors manually
94
+ c.enabled = false;
95
+
96
+ // or use a library to automatically detect support
97
+ c.enabled = require('color-support').hasBasic;
98
+
99
+ console.log(c.red('I will only be colored red if the terminal supports colors'));
100
+ ```
101
+
102
+ ## Strip ANSI codes
103
+
104
+ Use the `.unstyle` method to strip ANSI codes from a string.
105
+
106
+ ```js
107
+ console.log(c.unstyle(c.blue.bold('foo bar baz')));
108
+ //=> 'foo bar baz'
109
+ ```
110
+
111
+ ## Available styles
112
+
113
+ **Note** that bright and bright-background colors are not always supported.
114
+
115
+ | Colors | Background Colors | Bright Colors | Bright Background Colors |
116
+ | ------- | ----------------- | ------------- | ------------------------ |
117
+ | black | bgBlack | blackBright | bgBlackBright |
118
+ | red | bgRed | redBright | bgRedBright |
119
+ | green | bgGreen | greenBright | bgGreenBright |
120
+ | yellow | bgYellow | yellowBright | bgYellowBright |
121
+ | blue | bgBlue | blueBright | bgBlueBright |
122
+ | magenta | bgMagenta | magentaBright | bgMagentaBright |
123
+ | cyan | bgCyan | cyanBright | bgCyanBright |
124
+ | white | bgWhite | whiteBright | bgWhiteBright |
125
+ | gray | | | |
126
+ | grey | | | |
127
+
128
+ _(`gray` is the U.S. spelling, `grey` is more commonly used in the Canada and U.K.)_
129
+
130
+ ### Style modifiers
131
+
132
+ * dim
133
+ * **bold**
134
+
135
+ * hidden
136
+ * _italic_
137
+
138
+ * underline
139
+ * inverse
140
+ * ~~strikethrough~~
141
+
142
+ * reset
143
+
144
+ ## Aliases
145
+
146
+ Create custom aliases for styles.
147
+
148
+ ```js
149
+ const colors = require('ansi-colors');
150
+
151
+ colors.alias('primary', colors.yellow);
152
+ colors.alias('secondary', colors.bold);
153
+
154
+ console.log(colors.primary.secondary('Foo'));
155
+ ```
156
+
157
+ ## Themes
158
+
159
+ A theme is an object of custom aliases.
160
+
161
+ ```js
162
+ const colors = require('ansi-colors');
163
+
164
+ colors.theme({
165
+ danger: colors.red,
166
+ dark: colors.dim.gray,
167
+ disabled: colors.gray,
168
+ em: colors.italic,
169
+ heading: colors.bold.underline,
170
+ info: colors.cyan,
171
+ muted: colors.dim,
172
+ primary: colors.blue,
173
+ strong: colors.bold,
174
+ success: colors.green,
175
+ underline: colors.underline,
176
+ warning: colors.yellow
177
+ });
178
+
179
+ // Now, we can use our custom styles alongside the built-in styles!
180
+ console.log(colors.danger.strong.em('Error!'));
181
+ console.log(colors.warning('Heads up!'));
182
+ console.log(colors.info('Did you know...'));
183
+ console.log(colors.success.bold('It worked!'));
184
+ ```
185
+
186
+ ## Performance
187
+
188
+ **Libraries tested**
189
+
190
+ * ansi-colors v3.0.4
191
+ * chalk v2.4.1
192
+
193
+ ### Mac
194
+
195
+ > MacBook Pro, Intel Core i7, 2.3 GHz, 16 GB.
196
+
197
+ **Load time**
198
+
199
+ Time it takes to load the first time `require()` is called:
200
+
201
+ * ansi-colors - `1.915ms`
202
+ * chalk - `12.437ms`
203
+
204
+ **Benchmarks**
205
+
206
+ ```
207
+ # All Colors
208
+ ansi-colors x 173,851 ops/sec ±0.42% (91 runs sampled)
209
+ chalk x 9,944 ops/sec ±2.53% (81 runs sampled)))
210
+
211
+ # Chained colors
212
+ ansi-colors x 20,791 ops/sec ±0.60% (88 runs sampled)
213
+ chalk x 2,111 ops/sec ±2.34% (83 runs sampled)
214
+
215
+ # Nested colors
216
+ ansi-colors x 59,304 ops/sec ±0.98% (92 runs sampled)
217
+ chalk x 4,590 ops/sec ±2.08% (82 runs sampled)
218
+ ```
219
+
220
+ ### Windows
221
+
222
+ > Windows 10, Intel Core i7-7700k CPU @ 4.2 GHz, 32 GB
223
+
224
+ **Load time**
225
+
226
+ Time it takes to load the first time `require()` is called:
227
+
228
+ * ansi-colors - `1.494ms`
229
+ * chalk - `11.523ms`
230
+
231
+ **Benchmarks**
232
+
233
+ ```
234
+ # All Colors
235
+ ansi-colors x 193,088 ops/sec ±0.51% (95 runs sampled))
236
+ chalk x 9,612 ops/sec ±3.31% (77 runs sampled)))
237
+
238
+ # Chained colors
239
+ ansi-colors x 26,093 ops/sec ±1.13% (94 runs sampled)
240
+ chalk x 2,267 ops/sec ±2.88% (80 runs sampled))
241
+
242
+ # Nested colors
243
+ ansi-colors x 67,747 ops/sec ±0.49% (93 runs sampled)
244
+ chalk x 4,446 ops/sec ±3.01% (82 runs sampled))
245
+ ```
246
+
247
+ ## About
248
+
249
+ <details>
250
+ <summary><strong>Contributing</strong></summary>
251
+
252
+ Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
253
+
254
+ </details>
255
+
256
+ <details>
257
+ <summary><strong>Running Tests</strong></summary>
258
+
259
+ Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
260
+
261
+ ```sh
262
+ $ npm install && npm test
263
+ ```
264
+
265
+ </details>
266
+
267
+ <details>
268
+ <summary><strong>Building docs</strong></summary>
269
+
270
+ _(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_
271
+
272
+ To generate the readme, run the following command:
273
+
274
+ ```sh
275
+ $ npm install -g verbose/verb#dev verb-generate-readme && verb
276
+ ```
277
+
278
+ </details>
279
+
280
+ ### Related projects
281
+
282
+ You might also be interested in these projects:
283
+
284
+ * [ansi-wrap](https://www.npmjs.com/package/ansi-wrap): Create ansi colors by passing the open and close codes. | [homepage](https://github.com/jonschlinkert/ansi-wrap "Create ansi colors by passing the open and close codes.")
285
+ * [strip-color](https://www.npmjs.com/package/strip-color): Strip ANSI color codes from a string. No dependencies. | [homepage](https://github.com/jonschlinkert/strip-color "Strip ANSI color codes from a string. No dependencies.")
286
+
287
+ ### Contributors
288
+
289
+ | **Commits** | **Contributor** |
290
+ | --- | --- |
291
+ | 48 | [jonschlinkert](https://github.com/jonschlinkert) |
292
+ | 42 | [doowb](https://github.com/doowb) |
293
+ | 6 | [lukeed](https://github.com/lukeed) |
294
+ | 2 | [Silic0nS0ldier](https://github.com/Silic0nS0ldier) |
295
+ | 1 | [dwieeb](https://github.com/dwieeb) |
296
+ | 1 | [jorgebucaran](https://github.com/jorgebucaran) |
297
+ | 1 | [madhavarshney](https://github.com/madhavarshney) |
298
+ | 1 | [chapterjason](https://github.com/chapterjason) |
299
+
300
+ ### Author
301
+
302
+ **Brian Woodward**
303
+
304
+ * [GitHub Profile](https://github.com/doowb)
305
+ * [Twitter Profile](https://twitter.com/doowb)
306
+ * [LinkedIn Profile](https://linkedin.com/in/woodwardbrian)
307
+
308
+ ### License
309
+
310
+ Copyright © 2019, [Brian Woodward](https://github.com/doowb).
311
+ Released under the [MIT License](LICENSE).
312
+
313
+ ***
314
+
315
+ _This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on July 01, 2019._
@@ -0,0 +1,245 @@
1
+ # ansi-escapes
2
+
3
+ > [ANSI escape codes](http://www.termsys.demon.co.uk/vtansi.htm) for manipulating the terminal
4
+
5
+ ## Install
6
+
7
+ ```
8
+ $ npm install ansi-escapes
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```js
14
+ const ansiEscapes = require('ansi-escapes');
15
+
16
+ // Moves the cursor two rows up and to the left
17
+ process.stdout.write(ansiEscapes.cursorUp(2) + ansiEscapes.cursorLeft);
18
+ //=> '\u001B[2A\u001B[1000D'
19
+ ```
20
+
21
+ ## API
22
+
23
+ ### cursorTo(x, y?)
24
+
25
+ Set the absolute position of the cursor. `x0` `y0` is the top left of the screen.
26
+
27
+ ### cursorMove(x, y?)
28
+
29
+ Set the position of the cursor relative to its current position.
30
+
31
+ ### cursorUp(count)
32
+
33
+ Move cursor up a specific amount of rows. Default is `1`.
34
+
35
+ ### cursorDown(count)
36
+
37
+ Move cursor down a specific amount of rows. Default is `1`.
38
+
39
+ ### cursorForward(count)
40
+
41
+ Move cursor forward a specific amount of columns. Default is `1`.
42
+
43
+ ### cursorBackward(count)
44
+
45
+ Move cursor backward a specific amount of columns. Default is `1`.
46
+
47
+ ### cursorLeft
48
+
49
+ Move cursor to the left side.
50
+
51
+ ### cursorSavePosition
52
+
53
+ Save cursor position.
54
+
55
+ ### cursorRestorePosition
56
+
57
+ Restore saved cursor position.
58
+
59
+ ### cursorGetPosition
60
+
61
+ Get cursor position.
62
+
63
+ ### cursorNextLine
64
+
65
+ Move cursor to the next line.
66
+
67
+ ### cursorPrevLine
68
+
69
+ Move cursor to the previous line.
70
+
71
+ ### cursorHide
72
+
73
+ Hide cursor.
74
+
75
+ ### cursorShow
76
+
77
+ Show cursor.
78
+
79
+ ### eraseLines(count)
80
+
81
+ Erase from the current cursor position up the specified amount of rows.
82
+
83
+ ### eraseEndLine
84
+
85
+ Erase from the current cursor position to the end of the current line.
86
+
87
+ ### eraseStartLine
88
+
89
+ Erase from the current cursor position to the start of the current line.
90
+
91
+ ### eraseLine
92
+
93
+ Erase the entire current line.
94
+
95
+ ### eraseDown
96
+
97
+ Erase the screen from the current line down to the bottom of the screen.
98
+
99
+ ### eraseUp
100
+
101
+ Erase the screen from the current line up to the top of the screen.
102
+
103
+ ### eraseScreen
104
+
105
+ Erase the screen and move the cursor the top left position.
106
+
107
+ ### scrollUp
108
+
109
+ Scroll display up one line.
110
+
111
+ ### scrollDown
112
+
113
+ Scroll display down one line.
114
+
115
+ ### clearScreen
116
+
117
+ Clear the terminal screen. (Viewport)
118
+
119
+ ### clearTerminal
120
+
121
+ Clear the whole terminal, including scrollback buffer. (Not just the visible part of it)
122
+
123
+ ### beep
124
+
125
+ Output a beeping sound.
126
+
127
+ ### link(text, url)
128
+
129
+ Create a clickable link.
130
+
131
+ [Supported terminals.](https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda) Use [`supports-hyperlinks`](https://github.com/jamestalmage/supports-hyperlinks) to detect link support.
132
+
133
+ ### image(filePath, options?)
134
+
135
+ Display an image.
136
+
137
+ *Currently only supported on iTerm2 >=3*
138
+
139
+ See [term-img](https://github.com/sindresorhus/term-img) for a higher-level module.
140
+
141
+ #### input
142
+
143
+ Type: `Buffer`
144
+
145
+ Buffer of an image. Usually read in with `fs.readFile()`.
146
+
147
+ #### options
148
+
149
+ Type: `object`
150
+
151
+ ##### width
152
+ ##### height
153
+
154
+ Type: `string | number`
155
+
156
+ The width and height are given as a number followed by a unit, or the word "auto".
157
+
158
+ - `N`: N character cells.
159
+ - `Npx`: N pixels.
160
+ - `N%`: N percent of the session's width or height.
161
+ - `auto`: The image's inherent size will be used to determine an appropriate dimension.
162
+
163
+ ##### preserveAspectRatio
164
+
165
+ Type: `boolean`\
166
+ Default: `true`
167
+
168
+ ### iTerm.setCwd(path?)
169
+
170
+ Type: `string`\
171
+ Default: `process.cwd()`
172
+
173
+ [Inform iTerm2](https://www.iterm2.com/documentation-escape-codes.html) of the current directory to help semantic history and enable [Cmd-clicking relative paths](https://coderwall.com/p/b7e82q/quickly-open-files-in-iterm-with-cmd-click).
174
+
175
+ ### iTerm.annotation(message, options?)
176
+
177
+ Creates an escape code to display an "annotation" in iTerm2.
178
+
179
+ An annotation looks like this when shown:
180
+
181
+ <img src="https://user-images.githubusercontent.com/924465/64382136-b60ac700-cfe9-11e9-8a35-9682e8dc4b72.png" width="500">
182
+
183
+ See the [iTerm Proprietary Escape Codes documentation](https://iterm2.com/documentation-escape-codes.html) for more information.
184
+
185
+ #### message
186
+
187
+ Type: `string`
188
+
189
+ The message to display within the annotation.
190
+
191
+ The `|` character is disallowed and will be stripped.
192
+
193
+ #### options
194
+
195
+ Type: `object`
196
+
197
+ ##### length
198
+
199
+ Type: `number`\
200
+ Default: The remainder of the line
201
+
202
+ Nonzero number of columns to annotate.
203
+
204
+ ##### x
205
+
206
+ Type: `number`\
207
+ Default: Cursor position
208
+
209
+ Starting X coordinate.
210
+
211
+ Must be used with `y` and `length`.
212
+
213
+ ##### y
214
+
215
+ Type: `number`\
216
+ Default: Cursor position
217
+
218
+ Starting Y coordinate.
219
+
220
+ Must be used with `x` and `length`.
221
+
222
+ ##### isHidden
223
+
224
+ Type: `boolean`\
225
+ Default: `false`
226
+
227
+ Create a "hidden" annotation.
228
+
229
+ Annotations created this way can be shown using the "Show Annotations" iTerm command.
230
+
231
+ ## Related
232
+
233
+ - [ansi-styles](https://github.com/chalk/ansi-styles) - ANSI escape codes for styling strings in the terminal
234
+
235
+ ---
236
+
237
+ <div align="center">
238
+ <b>
239
+ <a href="https://tidelift.com/subscription/pkg/npm-ansi-escapes?utm_source=npm-ansi-escapes&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
240
+ </b>
241
+ <br>
242
+ <sub>
243
+ Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
244
+ </sub>
245
+ </div>
@@ -0,0 +1,78 @@
1
+ # ansi-regex
2
+
3
+ > Regular expression for matching [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code)
4
+
5
+
6
+ ## Install
7
+
8
+ ```
9
+ $ npm install ansi-regex
10
+ ```
11
+
12
+
13
+ ## Usage
14
+
15
+ ```js
16
+ const ansiRegex = require('ansi-regex');
17
+
18
+ ansiRegex().test('\u001B[4mcake\u001B[0m');
19
+ //=> true
20
+
21
+ ansiRegex().test('cake');
22
+ //=> false
23
+
24
+ '\u001B[4mcake\u001B[0m'.match(ansiRegex());
25
+ //=> ['\u001B[4m', '\u001B[0m']
26
+
27
+ '\u001B[4mcake\u001B[0m'.match(ansiRegex({onlyFirst: true}));
28
+ //=> ['\u001B[4m']
29
+
30
+ '\u001B]8;;https://github.com\u0007click\u001B]8;;\u0007'.match(ansiRegex());
31
+ //=> ['\u001B]8;;https://github.com\u0007', '\u001B]8;;\u0007']
32
+ ```
33
+
34
+
35
+ ## API
36
+
37
+ ### ansiRegex(options?)
38
+
39
+ Returns a regex for matching ANSI escape codes.
40
+
41
+ #### options
42
+
43
+ Type: `object`
44
+
45
+ ##### onlyFirst
46
+
47
+ Type: `boolean`<br>
48
+ Default: `false` *(Matches any ANSI escape codes in a string)*
49
+
50
+ Match only the first ANSI escape.
51
+
52
+
53
+ ## FAQ
54
+
55
+ ### Why do you test for codes not in the ECMA 48 standard?
56
+
57
+ Some of the codes we run as a test are codes that we acquired finding various lists of non-standard or manufacturer specific codes. We test for both standard and non-standard codes, as most of them follow the same or similar format and can be safely matched in strings without the risk of removing actual string content. There are a few non-standard control codes that do not follow the traditional format (i.e. they end in numbers) thus forcing us to exclude them from the test because we cannot reliably match them.
58
+
59
+ On the historical side, those ECMA standards were established in the early 90's whereas the VT100, for example, was designed in the mid/late 70's. At that point in time, control codes were still pretty ungoverned and engineers used them for a multitude of things, namely to activate hardware ports that may have been proprietary. Somewhere else you see a similar 'anarchy' of codes is in the x86 architecture for processors; there are a ton of "interrupts" that can mean different things on certain brands of processors, most of which have been phased out.
60
+
61
+
62
+ ## Maintainers
63
+
64
+ - [Sindre Sorhus](https://github.com/sindresorhus)
65
+ - [Josh Junon](https://github.com/qix-)
66
+
67
+
68
+ ---
69
+
70
+ <div align="center">
71
+ <b>
72
+ <a href="https://tidelift.com/subscription/pkg/npm-ansi-regex?utm_source=npm-ansi-regex&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
73
+ </b>
74
+ <br>
75
+ <sub>
76
+ Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
77
+ </sub>
78
+ </div>