angular-slickgrid 4.2.7 → 4.3.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 (203) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +181 -181
  3. package/docs/assets/lib/multiple-select/README.md +17 -17
  4. package/esm2020/app/modules/angular-slickgrid/components/angular-slickgrid.component.mjs +5 -6
  5. package/esm2020/app/modules/angular-slickgrid/constants.mjs +1 -1
  6. package/esm2020/app/modules/angular-slickgrid/extensions/index.mjs +1 -1
  7. package/esm2020/app/modules/angular-slickgrid/extensions/slickRowDetailView.mjs +2 -2
  8. package/esm2020/app/modules/angular-slickgrid/global-grid-options.mjs +1 -1
  9. package/esm2020/app/modules/angular-slickgrid/index.mjs +1 -1
  10. package/esm2020/app/modules/angular-slickgrid/models/angularComponentOutput.interface.mjs +1 -1
  11. package/esm2020/app/modules/angular-slickgrid/models/angularGridInstance.interface.mjs +1 -1
  12. package/esm2020/app/modules/angular-slickgrid/models/externalTestingDependencies.interface.mjs +1 -1
  13. package/esm2020/app/modules/angular-slickgrid/models/gridOption.interface.mjs +1 -1
  14. package/esm2020/app/modules/angular-slickgrid/models/index.mjs +1 -1
  15. package/esm2020/app/modules/angular-slickgrid/models/rowDetailView.interface.mjs +1 -1
  16. package/esm2020/app/modules/angular-slickgrid/models/slickGrid.interface.mjs +1 -1
  17. package/esm2020/app/modules/angular-slickgrid/modules/angular-slickgrid.module.mjs +1 -1
  18. package/esm2020/app/modules/angular-slickgrid/services/angularUtil.service.mjs +1 -1
  19. package/esm2020/app/modules/angular-slickgrid/services/bsDropdown.service.mjs +1 -1
  20. package/esm2020/app/modules/angular-slickgrid/services/container.service.mjs +1 -1
  21. package/esm2020/app/modules/angular-slickgrid/services/index.mjs +1 -1
  22. package/esm2020/app/modules/angular-slickgrid/services/translater.service.mjs +1 -1
  23. package/esm2020/app/modules/angular-slickgrid/services/utilities.mjs +1 -1
  24. package/esm2020/app/modules/angular-slickgrid/slickgrid-config.mjs +1 -1
  25. package/esm2020/public_api.mjs +1 -1
  26. package/fesm2015/angular-slickgrid.mjs +5 -6
  27. package/fesm2015/angular-slickgrid.mjs.map +1 -1
  28. package/fesm2020/angular-slickgrid.mjs +5 -6
  29. package/fesm2020/angular-slickgrid.mjs.map +1 -1
  30. package/i18n/en.json +89 -89
  31. package/i18n/fr.json +90 -90
  32. package/package.json +12 -12
  33. package/test/cypress/node_modules/@cypress/request/README.md +0 -1038
  34. package/test/cypress/node_modules/@cypress/xvfb/README.md +0 -48
  35. package/test/cypress/node_modules/@cypress/xvfb/node_modules/debug/README.md +0 -437
  36. package/test/cypress/node_modules/@types/node/README.md +0 -16
  37. package/test/cypress/node_modules/@types/sinonjs__fake-timers/README.md +0 -16
  38. package/test/cypress/node_modules/@types/sizzle/README.md +0 -16
  39. package/test/cypress/node_modules/@types/yauzl/README.md +0 -16
  40. package/test/cypress/node_modules/@types/yauzl/node_modules/@types/node/README.md +0 -16
  41. package/test/cypress/node_modules/aggregate-error/README.md +0 -61
  42. package/test/cypress/node_modules/ansi-colors/README.md +0 -315
  43. package/test/cypress/node_modules/ansi-escapes/README.md +0 -245
  44. package/test/cypress/node_modules/ansi-regex/README.md +0 -78
  45. package/test/cypress/node_modules/ansi-styles/README.md +0 -152
  46. package/test/cypress/node_modules/arch/README.md +0 -71
  47. package/test/cypress/node_modules/asn1/README.md +0 -50
  48. package/test/cypress/node_modules/assert-plus/README.md +0 -162
  49. package/test/cypress/node_modules/astral-regex/README.md +0 -46
  50. package/test/cypress/node_modules/async/README.md +0 -60
  51. package/test/cypress/node_modules/asynckit/README.md +0 -233
  52. package/test/cypress/node_modules/at-least-node/README.md +0 -25
  53. package/test/cypress/node_modules/aws-sign2/README.md +0 -4
  54. package/test/cypress/node_modules/aws4/README.md +0 -183
  55. package/test/cypress/node_modules/balanced-match/README.md +0 -91
  56. package/test/cypress/node_modules/base64-js/README.md +0 -34
  57. package/test/cypress/node_modules/bcrypt-pbkdf/README.md +0 -45
  58. package/test/cypress/node_modules/blob-util/README.md +0 -623
  59. package/test/cypress/node_modules/bluebird/README.md +0 -57
  60. package/test/cypress/node_modules/brace-expansion/README.md +0 -129
  61. package/test/cypress/node_modules/buffer/README.md +0 -410
  62. package/test/cypress/node_modules/buffer-crc32/README.md +0 -47
  63. package/test/cypress/node_modules/cachedir/README.md +0 -27
  64. package/test/cypress/node_modules/caseless/README.md +0 -45
  65. package/test/cypress/node_modules/chalk/README.md +0 -293
  66. package/test/cypress/node_modules/chalk/node_modules/supports-color/README.md +0 -76
  67. package/test/cypress/node_modules/check-more-types/README.md +0 -952
  68. package/test/cypress/node_modules/ci-info/README.md +0 -114
  69. package/test/cypress/node_modules/clean-stack/README.md +0 -76
  70. package/test/cypress/node_modules/cli-cursor/README.md +0 -55
  71. package/test/cypress/node_modules/cli-table3/README.md +0 -218
  72. package/test/cypress/node_modules/cli-truncate/README.md +0 -139
  73. package/test/cypress/node_modules/color-convert/README.md +0 -68
  74. package/test/cypress/node_modules/color-name/README.md +0 -11
  75. package/test/cypress/node_modules/colorette/README.md +0 -102
  76. package/test/cypress/node_modules/colors/README.md +0 -221
  77. package/test/cypress/node_modules/combined-stream/README.md +0 -138
  78. package/test/cypress/node_modules/commander/README.md +0 -737
  79. package/test/cypress/node_modules/common-tags/README.md +0 -687
  80. package/test/cypress/node_modules/core-util-is/README.md +0 -3
  81. package/test/cypress/node_modules/cross-spawn/README.md +0 -96
  82. package/test/cypress/node_modules/cypress/README.md +0 -25
  83. package/test/cypress/node_modules/cypress/mount-utils/README.md +0 -14
  84. package/test/cypress/node_modules/cypress/react/README.md +0 -414
  85. package/test/cypress/node_modules/cypress/vue/README.md +0 -678
  86. package/test/cypress/node_modules/cypress/vue2/README.md +0 -693
  87. package/test/cypress/node_modules/dashdash/README.md +0 -574
  88. package/test/cypress/node_modules/dayjs/README.md +0 -128
  89. package/test/cypress/node_modules/debug/README.md +0 -455
  90. package/test/cypress/node_modules/delayed-stream/README.md +0 -141
  91. package/test/cypress/node_modules/ecc-jsbn/README.md +0 -8
  92. package/test/cypress/node_modules/emoji-regex/README.md +0 -73
  93. package/test/cypress/node_modules/end-of-stream/README.md +0 -54
  94. package/test/cypress/node_modules/enquirer/README.md +0 -1752
  95. package/test/cypress/node_modules/escape-string-regexp/README.md +0 -27
  96. package/test/cypress/node_modules/eventemitter2/README.md +0 -809
  97. package/test/cypress/node_modules/execa/README.md +0 -656
  98. package/test/cypress/node_modules/executable/README.md +0 -64
  99. package/test/cypress/node_modules/extend/README.md +0 -81
  100. package/test/cypress/node_modules/extract-zip/README.md +0 -57
  101. package/test/cypress/node_modules/extract-zip/node_modules/debug/README.md +0 -455
  102. package/test/cypress/node_modules/extsprintf/README.md +0 -46
  103. package/test/cypress/node_modules/fd-slicer/README.md +0 -199
  104. package/test/cypress/node_modules/figures/README.md +0 -139
  105. package/test/cypress/node_modules/forever-agent/README.md +0 -4
  106. package/test/cypress/node_modules/form-data/README.md +0 -234
  107. package/test/cypress/node_modules/fs-extra/README.md +0 -264
  108. package/test/cypress/node_modules/fs.realpath/README.md +0 -33
  109. package/test/cypress/node_modules/get-stream/README.md +0 -124
  110. package/test/cypress/node_modules/getos/README.md +0 -79
  111. package/test/cypress/node_modules/getpass/README.md +0 -32
  112. package/test/cypress/node_modules/glob/README.md +0 -375
  113. package/test/cypress/node_modules/global-dirs/README.md +0 -72
  114. package/test/cypress/node_modules/graceful-fs/README.md +0 -133
  115. package/test/cypress/node_modules/has-flag/README.md +0 -89
  116. package/test/cypress/node_modules/http-signature/README.md +0 -80
  117. package/test/cypress/node_modules/human-signals/README.md +0 -155
  118. package/test/cypress/node_modules/ieee754/README.md +0 -51
  119. package/test/cypress/node_modules/indent-string/README.md +0 -70
  120. package/test/cypress/node_modules/inflight/README.md +0 -37
  121. package/test/cypress/node_modules/inherits/README.md +0 -42
  122. package/test/cypress/node_modules/ini/README.md +0 -102
  123. package/test/cypress/node_modules/is-ci/README.md +0 -50
  124. package/test/cypress/node_modules/is-fullwidth-code-point/README.md +0 -39
  125. package/test/cypress/node_modules/is-installed-globally/README.md +0 -31
  126. package/test/cypress/node_modules/is-path-inside/README.md +0 -63
  127. package/test/cypress/node_modules/is-stream/README.md +0 -57
  128. package/test/cypress/node_modules/is-typedarray/README.md +0 -16
  129. package/test/cypress/node_modules/isexe/README.md +0 -51
  130. package/test/cypress/node_modules/isstream/README.md +0 -66
  131. package/test/cypress/node_modules/jsbn/README.md +0 -175
  132. package/test/cypress/node_modules/json-schema/README.md +0 -3
  133. package/test/cypress/node_modules/json-stringify-safe/README.md +0 -52
  134. package/test/cypress/node_modules/jsonfile/README.md +0 -205
  135. package/test/cypress/node_modules/jsonfile/node_modules/universalify/README.md +0 -76
  136. package/test/cypress/node_modules/jsprim/README.md +0 -287
  137. package/test/cypress/node_modules/lazy-ass/README.md +0 -269
  138. package/test/cypress/node_modules/listr2/README.md +0 -17
  139. package/test/cypress/node_modules/lodash/README.md +0 -39
  140. package/test/cypress/node_modules/lodash.once/README.md +0 -18
  141. package/test/cypress/node_modules/log-symbols/README.md +0 -51
  142. package/test/cypress/node_modules/log-update/README.md +0 -97
  143. package/test/cypress/node_modules/log-update/node_modules/slice-ansi/README.md +0 -66
  144. package/test/cypress/node_modules/log-update/node_modules/wrap-ansi/README.md +0 -97
  145. package/test/cypress/node_modules/lru-cache/README.md +0 -166
  146. package/test/cypress/node_modules/merge-stream/README.md +0 -78
  147. package/test/cypress/node_modules/mime-db/README.md +0 -102
  148. package/test/cypress/node_modules/mime-types/README.md +0 -123
  149. package/test/cypress/node_modules/mimic-fn/README.md +0 -69
  150. package/test/cypress/node_modules/minimatch/README.md +0 -209
  151. package/test/cypress/node_modules/ms/README.md +0 -60
  152. package/test/cypress/node_modules/npm-run-path/README.md +0 -115
  153. package/test/cypress/node_modules/once/README.md +0 -79
  154. package/test/cypress/node_modules/onetime/README.md +0 -94
  155. package/test/cypress/node_modules/ospath/README.md +0 -53
  156. package/test/cypress/node_modules/p-map/README.md +0 -89
  157. package/test/cypress/node_modules/path-is-absolute/README.md +0 -59
  158. package/test/cypress/node_modules/path-key/README.md +0 -61
  159. package/test/cypress/node_modules/pend/README.md +0 -41
  160. package/test/cypress/node_modules/performance-now/README.md +0 -30
  161. package/test/cypress/node_modules/pify/README.md +0 -119
  162. package/test/cypress/node_modules/pretty-bytes/README.md +0 -131
  163. package/test/cypress/node_modules/proxy-from-env/README.md +0 -131
  164. package/test/cypress/node_modules/psl/README.md +0 -215
  165. package/test/cypress/node_modules/pump/README.md +0 -65
  166. package/test/cypress/node_modules/punycode/README.md +0 -122
  167. package/test/cypress/node_modules/qs/README.md +0 -475
  168. package/test/cypress/node_modules/request-progress/README.md +0 -78
  169. package/test/cypress/node_modules/restore-cursor/README.md +0 -26
  170. package/test/cypress/node_modules/rimraf/README.md +0 -101
  171. package/test/cypress/node_modules/rxjs/README.md +0 -147
  172. package/test/cypress/node_modules/rxjs/_esm2015/README.md +0 -147
  173. package/test/cypress/node_modules/rxjs/_esm5/README.md +0 -147
  174. package/test/cypress/node_modules/rxjs/src/README.md +0 -147
  175. package/test/cypress/node_modules/safe-buffer/README.md +0 -584
  176. package/test/cypress/node_modules/safer-buffer/README.md +0 -156
  177. package/test/cypress/node_modules/semver/README.md +0 -566
  178. package/test/cypress/node_modules/shebang-command/README.md +0 -34
  179. package/test/cypress/node_modules/shebang-regex/README.md +0 -33
  180. package/test/cypress/node_modules/signal-exit/README.md +0 -39
  181. package/test/cypress/node_modules/slice-ansi/README.md +0 -72
  182. package/test/cypress/node_modules/sshpk/README.md +0 -804
  183. package/test/cypress/node_modules/string-width/README.md +0 -50
  184. package/test/cypress/node_modules/strip-ansi/README.md +0 -46
  185. package/test/cypress/node_modules/strip-final-newline/README.md +0 -30
  186. package/test/cypress/node_modules/supports-color/README.md +0 -77
  187. package/test/cypress/node_modules/throttleit/README.md +0 -32
  188. package/test/cypress/node_modules/tmp/README.md +0 -365
  189. package/test/cypress/node_modules/tough-cookie/README.md +0 -527
  190. package/test/cypress/node_modules/tslib/README.md +0 -142
  191. package/test/cypress/node_modules/tunnel-agent/README.md +0 -4
  192. package/test/cypress/node_modules/tweetnacl/README.md +0 -459
  193. package/test/cypress/node_modules/type-fest/README.md +0 -760
  194. package/test/cypress/node_modules/universalify/README.md +0 -76
  195. package/test/cypress/node_modules/untildify/README.md +0 -30
  196. package/test/cypress/node_modules/uuid/README.md +0 -505
  197. package/test/cypress/node_modules/verror/README.md +0 -528
  198. package/test/cypress/node_modules/verror/node_modules/extsprintf/README.md +0 -46
  199. package/test/cypress/node_modules/which/README.md +0 -54
  200. package/test/cypress/node_modules/wrap-ansi/README.md +0 -91
  201. package/test/cypress/node_modules/wrappy/README.md +0 -36
  202. package/test/cypress/node_modules/yallist/README.md +0 -204
  203. package/test/cypress/node_modules/yauzl/README.md +0 -658
@@ -1,18 +0,0 @@
1
- # lodash.once v4.1.1
2
-
3
- The [lodash](https://lodash.com/) method `_.once` exported as a [Node.js](https://nodejs.org/) module.
4
-
5
- ## Installation
6
-
7
- Using npm:
8
- ```bash
9
- $ {sudo -H} npm i -g npm
10
- $ npm i --save lodash.once
11
- ```
12
-
13
- In Node.js:
14
- ```js
15
- var once = require('lodash.once');
16
- ```
17
-
18
- See the [documentation](https://lodash.com/docs#once) or [package source](https://github.com/lodash/lodash/blob/4.1.1-npm-packages/lodash.once) for more details.
@@ -1,51 +0,0 @@
1
- # log-symbols [![Build Status](https://travis-ci.com/sindresorhus/log-symbols.svg?branch=master)](https://travis-ci.com/sindresorhus/log-symbols)
2
-
3
- <img src="screenshot.png" width="226" height="192" align="right">
4
-
5
- > Colored symbols for various log levels
6
-
7
- Includes fallbacks for Windows CMD which only supports a [limited character set](https://en.wikipedia.org/wiki/Code_page_437).
8
-
9
- ## Install
10
-
11
- ```
12
- $ npm install log-symbols
13
- ```
14
-
15
- ## Usage
16
-
17
- ```js
18
- const logSymbols = require('log-symbols');
19
-
20
- console.log(logSymbols.success, 'Finished successfully!');
21
- // On good OSes: ✔ Finished successfully!
22
- // On Windows: √ Finished successfully!
23
- ```
24
-
25
- ## API
26
-
27
- ### logSymbols
28
-
29
- #### info
30
- #### success
31
- #### warning
32
- #### error
33
-
34
- ## Related
35
-
36
- - [figures](https://github.com/sindresorhus/figures) - Unicode symbols with Windows CMD fallbacks
37
- - [py-log-symbols](https://github.com/ManrajGrover/py-log-symbols) - Python port
38
- - [log-symbols](https://github.com/palash25/log-symbols) - Ruby port
39
- - [guumaster/logsymbols](https://github.com/guumaster/logsymbols) - Golang port
40
-
41
- ---
42
-
43
- <div align="center">
44
- <b>
45
- <a href="https://tidelift.com/subscription/pkg/npm-log-symbols?utm_source=npm-log-symbols&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
46
- </b>
47
- <br>
48
- <sub>
49
- Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
50
- </sub>
51
- </div>
@@ -1,97 +0,0 @@
1
- # log-update [![Build Status](https://travis-ci.org/sindresorhus/log-update.svg?branch=master)](https://travis-ci.org/sindresorhus/log-update)
2
-
3
- > Log by overwriting the previous output in the terminal.<br>
4
- > Useful for rendering progress bars, animations, etc.
5
-
6
- ![](screenshot.gif)
7
-
8
- ## Install
9
-
10
- ```
11
- $ npm install log-update
12
- ```
13
-
14
- ## Usage
15
-
16
- ```js
17
- const logUpdate = require('log-update');
18
-
19
- const frames = ['-', '\\', '|', '/'];
20
- let i = 0;
21
-
22
- setInterval(() => {
23
- const frame = frames[i = ++i % frames.length];
24
-
25
- logUpdate(
26
- `
27
- ♥♥
28
- ${frame} unicorns ${frame}
29
- ♥♥
30
- `
31
- );
32
- }, 80);
33
- ```
34
-
35
- ## API
36
-
37
- ### logUpdate(text…)
38
-
39
- Log to stdout.
40
-
41
- ### logUpdate.clear()
42
-
43
- Clear the logged output.
44
-
45
- ### logUpdate.done()
46
-
47
- Persist the logged output.<br>
48
- Useful if you want to start a new log session below the current one.
49
-
50
- ### logUpdate.stderr(text…)
51
-
52
- Log to stderr.
53
-
54
- ### logUpdate.stderr.clear()
55
- ### logUpdate.stderr.done()
56
-
57
- ### logUpdate.create(stream, options?)
58
-
59
- Get a `logUpdate` method that logs to the specified stream.
60
-
61
- #### options
62
-
63
- Type: `object`
64
-
65
- ##### showCursor
66
-
67
- Type: `boolean`\
68
- Default: `false`
69
-
70
- Show the cursor. This can be useful when a CLI accepts input from a user.
71
-
72
- ```js
73
- const logUpdate = require('log-update');
74
-
75
- // Write output but don't hide the cursor
76
- const log = logUpdate.create(process.stdout, {
77
- showCursor: true
78
- });
79
- ```
80
-
81
- ## Examples
82
-
83
- - [listr](https://github.com/SamVerschueren/listr) - Uses this module to render an interactive task list
84
- - [ora](https://github.com/sindresorhus/ora) - Uses this module to render awesome spinners
85
- - [speed-test](https://github.com/sindresorhus/speed-test) - Uses this module to render a [spinner](https://github.com/sindresorhus/elegant-spinner)
86
-
87
- ---
88
-
89
- <div align="center">
90
- <b>
91
- <a href="https://tidelift.com/subscription/pkg/npm-log-update?utm_source=npm-log-update&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
92
- </b>
93
- <br>
94
- <sub>
95
- Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
96
- </sub>
97
- </div>
@@ -1,66 +0,0 @@
1
- # slice-ansi [![Build Status](https://travis-ci.org/chalk/slice-ansi.svg?branch=master)](https://travis-ci.org/chalk/slice-ansi) [![XO: Linted](https://img.shields.io/badge/xo-linted-blue.svg)](https://github.com/xojs/xo)
2
-
3
- > Slice a string with [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles)
4
-
5
- ## Install
6
-
7
- ```
8
- $ npm install slice-ansi
9
- ```
10
-
11
- ## Usage
12
-
13
- ```js
14
- const chalk = require('chalk');
15
- const sliceAnsi = require('slice-ansi');
16
-
17
- const string = 'The quick brown ' + chalk.red('fox jumped over ') +
18
- 'the lazy ' + chalk.green('dog and then ran away with the unicorn.');
19
-
20
- console.log(sliceAnsi(string, 20, 30));
21
- ```
22
-
23
- ## API
24
-
25
- ### sliceAnsi(string, beginSlice, endSlice?)
26
-
27
- #### string
28
-
29
- Type: `string`
30
-
31
- String with ANSI escape codes. Like one styled by [`chalk`](https://github.com/chalk/chalk).
32
-
33
- #### beginSlice
34
-
35
- Type: `number`
36
-
37
- Zero-based index at which to begin the slice.
38
-
39
- #### endSlice
40
-
41
- Type: `number`
42
-
43
- Zero-based index at which to end the slice.
44
-
45
- ## Related
46
-
47
- - [wrap-ansi](https://github.com/chalk/wrap-ansi) - Wordwrap a string with ANSI escape codes
48
- - [cli-truncate](https://github.com/sindresorhus/cli-truncate) - Truncate a string to a specific width in the terminal
49
- - [chalk](https://github.com/chalk/chalk) - Terminal string styling done right
50
-
51
- ## Maintainers
52
-
53
- - [Sindre Sorhus](https://github.com/sindresorhus)
54
- - [Josh Junon](https://github.com/qix-)
55
-
56
- ---
57
-
58
- <div align="center">
59
- <b>
60
- <a href="https://tidelift.com/subscription/pkg/npm-slice_ansi?utm_source=npm-slice-ansi&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
61
- </b>
62
- <br>
63
- <sub>
64
- Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
65
- </sub>
66
- </div>
@@ -1,97 +0,0 @@
1
- # wrap-ansi [![Build Status](https://travis-ci.org/chalk/wrap-ansi.svg?branch=master)](https://travis-ci.org/chalk/wrap-ansi) [![Coverage Status](https://coveralls.io/repos/github/chalk/wrap-ansi/badge.svg?branch=master)](https://coveralls.io/github/chalk/wrap-ansi?branch=master)
2
-
3
- > Wordwrap a string with [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles)
4
-
5
-
6
- ## Install
7
-
8
- ```
9
- $ npm install wrap-ansi
10
- ```
11
-
12
-
13
- ## Usage
14
-
15
- ```js
16
- const chalk = require('chalk');
17
- const wrapAnsi = require('wrap-ansi');
18
-
19
- const input = 'The quick brown ' + chalk.red('fox jumped over ') +
20
- 'the lazy ' + chalk.green('dog and then ran away with the unicorn.');
21
-
22
- console.log(wrapAnsi(input, 20));
23
- ```
24
-
25
- <img width="331" src="screenshot.png">
26
-
27
-
28
- ## API
29
-
30
- ### wrapAnsi(string, columns, options?)
31
-
32
- Wrap words to the specified column width.
33
-
34
- #### string
35
-
36
- Type: `string`
37
-
38
- String with ANSI escape codes. Like one styled by [`chalk`](https://github.com/chalk/chalk). Newline characters will be normalized to `\n`.
39
-
40
- #### columns
41
-
42
- Type: `number`
43
-
44
- Number of columns to wrap the text to.
45
-
46
- #### options
47
-
48
- Type: `object`
49
-
50
- ##### hard
51
-
52
- Type: `boolean`<br>
53
- Default: `false`
54
-
55
- By default the wrap is soft, meaning long words may extend past the column width. Setting this to `true` will make it hard wrap at the column width.
56
-
57
- ##### wordWrap
58
-
59
- Type: `boolean`<br>
60
- Default: `true`
61
-
62
- By default, an attempt is made to split words at spaces, ensuring that they don't extend past the configured columns. If wordWrap is `false`, each column will instead be completely filled splitting words as necessary.
63
-
64
- ##### trim
65
-
66
- Type: `boolean`<br>
67
- Default: `true`
68
-
69
- Whitespace on all lines is removed by default. Set this option to `false` if you don't want to trim.
70
-
71
-
72
- ## Related
73
-
74
- - [slice-ansi](https://github.com/chalk/slice-ansi) - Slice a string with ANSI escape codes
75
- - [cli-truncate](https://github.com/sindresorhus/cli-truncate) - Truncate a string to a specific width in the terminal
76
- - [chalk](https://github.com/chalk/chalk) - Terminal string styling done right
77
- - [jsesc](https://github.com/mathiasbynens/jsesc) - Generate ASCII-only output from Unicode strings. Useful for creating test fixtures.
78
-
79
-
80
- ## Maintainers
81
-
82
- - [Sindre Sorhus](https://github.com/sindresorhus)
83
- - [Josh Junon](https://github.com/qix-)
84
- - [Benjamin Coe](https://github.com/bcoe)
85
-
86
-
87
- ---
88
-
89
- <div align="center">
90
- <b>
91
- <a href="https://tidelift.com/subscription/pkg/npm-wrap_ansi?utm_source=npm-wrap-ansi&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
92
- </b>
93
- <br>
94
- <sub>
95
- Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
96
- </sub>
97
- </div>
@@ -1,166 +0,0 @@
1
- # lru cache
2
-
3
- A cache object that deletes the least-recently-used items.
4
-
5
- [![Build Status](https://travis-ci.org/isaacs/node-lru-cache.svg?branch=master)](https://travis-ci.org/isaacs/node-lru-cache) [![Coverage Status](https://coveralls.io/repos/isaacs/node-lru-cache/badge.svg?service=github)](https://coveralls.io/github/isaacs/node-lru-cache)
6
-
7
- ## Installation:
8
-
9
- ```javascript
10
- npm install lru-cache --save
11
- ```
12
-
13
- ## Usage:
14
-
15
- ```javascript
16
- var LRU = require("lru-cache")
17
- , options = { max: 500
18
- , length: function (n, key) { return n * 2 + key.length }
19
- , dispose: function (key, n) { n.close() }
20
- , maxAge: 1000 * 60 * 60 }
21
- , cache = new LRU(options)
22
- , otherCache = new LRU(50) // sets just the max size
23
-
24
- cache.set("key", "value")
25
- cache.get("key") // "value"
26
-
27
- // non-string keys ARE fully supported
28
- // but note that it must be THE SAME object, not
29
- // just a JSON-equivalent object.
30
- var someObject = { a: 1 }
31
- cache.set(someObject, 'a value')
32
- // Object keys are not toString()-ed
33
- cache.set('[object Object]', 'a different value')
34
- assert.equal(cache.get(someObject), 'a value')
35
- // A similar object with same keys/values won't work,
36
- // because it's a different object identity
37
- assert.equal(cache.get({ a: 1 }), undefined)
38
-
39
- cache.reset() // empty the cache
40
- ```
41
-
42
- If you put more stuff in it, then items will fall out.
43
-
44
- If you try to put an oversized thing in it, then it'll fall out right
45
- away.
46
-
47
- ## Options
48
-
49
- * `max` The maximum size of the cache, checked by applying the length
50
- function to all values in the cache. Not setting this is kind of
51
- silly, since that's the whole purpose of this lib, but it defaults
52
- to `Infinity`. Setting it to a non-number or negative number will
53
- throw a `TypeError`. Setting it to 0 makes it be `Infinity`.
54
- * `maxAge` Maximum age in ms. Items are not pro-actively pruned out
55
- as they age, but if you try to get an item that is too old, it'll
56
- drop it and return undefined instead of giving it to you.
57
- Setting this to a negative value will make everything seem old!
58
- Setting it to a non-number will throw a `TypeError`.
59
- * `length` Function that is used to calculate the length of stored
60
- items. If you're storing strings or buffers, then you probably want
61
- to do something like `function(n, key){return n.length}`. The default is
62
- `function(){return 1}`, which is fine if you want to store `max`
63
- like-sized things. The item is passed as the first argument, and
64
- the key is passed as the second argumnet.
65
- * `dispose` Function that is called on items when they are dropped
66
- from the cache. This can be handy if you want to close file
67
- descriptors or do other cleanup tasks when items are no longer
68
- accessible. Called with `key, value`. It's called *before*
69
- actually removing the item from the internal cache, so if you want
70
- to immediately put it back in, you'll have to do that in a
71
- `nextTick` or `setTimeout` callback or it won't do anything.
72
- * `stale` By default, if you set a `maxAge`, it'll only actually pull
73
- stale items out of the cache when you `get(key)`. (That is, it's
74
- not pre-emptively doing a `setTimeout` or anything.) If you set
75
- `stale:true`, it'll return the stale value before deleting it. If
76
- you don't set this, then it'll return `undefined` when you try to
77
- get a stale entry, as if it had already been deleted.
78
- * `noDisposeOnSet` By default, if you set a `dispose()` method, then
79
- it'll be called whenever a `set()` operation overwrites an existing
80
- key. If you set this option, `dispose()` will only be called when a
81
- key falls out of the cache, not when it is overwritten.
82
- * `updateAgeOnGet` When using time-expiring entries with `maxAge`,
83
- setting this to `true` will make each item's effective time update
84
- to the current time whenever it is retrieved from cache, causing it
85
- to not expire. (It can still fall out of cache based on recency of
86
- use, of course.)
87
-
88
- ## API
89
-
90
- * `set(key, value, maxAge)`
91
- * `get(key) => value`
92
-
93
- Both of these will update the "recently used"-ness of the key.
94
- They do what you think. `maxAge` is optional and overrides the
95
- cache `maxAge` option if provided.
96
-
97
- If the key is not found, `get()` will return `undefined`.
98
-
99
- The key and val can be any value.
100
-
101
- * `peek(key)`
102
-
103
- Returns the key value (or `undefined` if not found) without
104
- updating the "recently used"-ness of the key.
105
-
106
- (If you find yourself using this a lot, you *might* be using the
107
- wrong sort of data structure, but there are some use cases where
108
- it's handy.)
109
-
110
- * `del(key)`
111
-
112
- Deletes a key out of the cache.
113
-
114
- * `reset()`
115
-
116
- Clear the cache entirely, throwing away all values.
117
-
118
- * `has(key)`
119
-
120
- Check if a key is in the cache, without updating the recent-ness
121
- or deleting it for being stale.
122
-
123
- * `forEach(function(value,key,cache), [thisp])`
124
-
125
- Just like `Array.prototype.forEach`. Iterates over all the keys
126
- in the cache, in order of recent-ness. (Ie, more recently used
127
- items are iterated over first.)
128
-
129
- * `rforEach(function(value,key,cache), [thisp])`
130
-
131
- The same as `cache.forEach(...)` but items are iterated over in
132
- reverse order. (ie, less recently used items are iterated over
133
- first.)
134
-
135
- * `keys()`
136
-
137
- Return an array of the keys in the cache.
138
-
139
- * `values()`
140
-
141
- Return an array of the values in the cache.
142
-
143
- * `length`
144
-
145
- Return total length of objects in cache taking into account
146
- `length` options function.
147
-
148
- * `itemCount`
149
-
150
- Return total quantity of objects currently in cache. Note, that
151
- `stale` (see options) items are returned as part of this item
152
- count.
153
-
154
- * `dump()`
155
-
156
- Return an array of the cache entries ready for serialization and usage
157
- with 'destinationCache.load(arr)`.
158
-
159
- * `load(cacheEntriesArray)`
160
-
161
- Loads another cache entries array, obtained with `sourceCache.dump()`,
162
- into the cache. The destination cache is reset before loading new entries
163
-
164
- * `prune()`
165
-
166
- Manually iterates over the entire cache proactively pruning old entries
@@ -1,78 +0,0 @@
1
- # merge-stream
2
-
3
- Merge (interleave) a bunch of streams.
4
-
5
- [![build status](https://secure.travis-ci.org/grncdr/merge-stream.svg?branch=master)](http://travis-ci.org/grncdr/merge-stream)
6
-
7
- ## Synopsis
8
-
9
- ```javascript
10
- var stream1 = new Stream();
11
- var stream2 = new Stream();
12
-
13
- var merged = mergeStream(stream1, stream2);
14
-
15
- var stream3 = new Stream();
16
- merged.add(stream3);
17
- merged.isEmpty();
18
- //=> false
19
- ```
20
-
21
- ## Description
22
-
23
- This is adapted from [event-stream](https://github.com/dominictarr/event-stream) separated into a new module, using Streams3.
24
-
25
- ## API
26
-
27
- ### `mergeStream`
28
-
29
- Type: `function`
30
-
31
- Merges an arbitrary number of streams. Returns a merged stream.
32
-
33
- #### `merged.add`
34
-
35
- A method to dynamically add more sources to the stream. The argument supplied to `add` can be either a source or an array of sources.
36
-
37
- #### `merged.isEmpty`
38
-
39
- A method that tells you if the merged stream is empty.
40
-
41
- When a stream is "empty" (aka. no sources were added), it could not be returned to a gulp task.
42
-
43
- So, we could do something like this:
44
-
45
- ```js
46
- stream = require('merge-stream')();
47
- // Something like a loop to add some streams to the merge stream
48
- // stream.add(streamA);
49
- // stream.add(streamB);
50
- return stream.isEmpty() ? null : stream;
51
- ```
52
-
53
- ## Gulp example
54
-
55
- An example use case for **merge-stream** is to combine parts of a task in a project's **gulpfile.js** like this:
56
-
57
- ```js
58
- const gulp = require('gulp');
59
- const htmlValidator = require('gulp-w3c-html-validator');
60
- const jsHint = require('gulp-jshint');
61
- const mergeStream = require('merge-stream');
62
-
63
- function lint() {
64
- return mergeStream(
65
- gulp.src('src/*.html')
66
- .pipe(htmlValidator())
67
- .pipe(htmlValidator.reporter()),
68
- gulp.src('src/*.js')
69
- .pipe(jsHint())
70
- .pipe(jsHint.reporter())
71
- );
72
- }
73
- gulp.task('lint', lint);
74
- ```
75
-
76
- ## License
77
-
78
- MIT
@@ -1,102 +0,0 @@
1
- # mime-db
2
-
3
- [![NPM Version][npm-version-image]][npm-url]
4
- [![NPM Downloads][npm-downloads-image]][npm-url]
5
- [![Node.js Version][node-image]][node-url]
6
- [![Build Status][travis-image]][travis-url]
7
- [![Coverage Status][coveralls-image]][coveralls-url]
8
-
9
- This is a database of all mime types.
10
- It consists of a single, public JSON file and does not include any logic,
11
- allowing it to remain as un-opinionated as possible with an API.
12
- It aggregates data from the following sources:
13
-
14
- - http://www.iana.org/assignments/media-types/media-types.xhtml
15
- - http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
16
- - http://hg.nginx.org/nginx/raw-file/default/conf/mime.types
17
-
18
- ## Installation
19
-
20
- ```bash
21
- npm install mime-db
22
- ```
23
-
24
- ### Database Download
25
-
26
- If you're crazy enough to use this in the browser, you can just grab the
27
- JSON file using [jsDelivr](https://www.jsdelivr.com/). It is recommended to
28
- replace `master` with [a release tag](https://github.com/jshttp/mime-db/tags)
29
- as the JSON format may change in the future.
30
-
31
- ```
32
- https://cdn.jsdelivr.net/gh/jshttp/mime-db@master/db.json
33
- ```
34
-
35
- ## Usage
36
-
37
- <!-- eslint-disable no-unused-vars -->
38
-
39
- ```js
40
- var db = require('mime-db')
41
-
42
- // grab data on .js files
43
- var data = db['application/javascript']
44
- ```
45
-
46
- ## Data Structure
47
-
48
- The JSON file is a map lookup for lowercased mime types.
49
- Each mime type has the following properties:
50
-
51
- - `.source` - where the mime type is defined.
52
- If not set, it's probably a custom media type.
53
- - `apache` - [Apache common media types](http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types)
54
- - `iana` - [IANA-defined media types](http://www.iana.org/assignments/media-types/media-types.xhtml)
55
- - `nginx` - [nginx media types](http://hg.nginx.org/nginx/raw-file/default/conf/mime.types)
56
- - `.extensions[]` - known extensions associated with this mime type.
57
- - `.compressible` - whether a file of this type can be gzipped.
58
- - `.charset` - the default charset associated with this type, if any.
59
-
60
- If unknown, every property could be `undefined`.
61
-
62
- ## Contributing
63
-
64
- To edit the database, only make PRs against `src/custom.json` or
65
- `src/custom-suffix.json`.
66
-
67
- The `src/custom.json` file is a JSON object with the MIME type as the keys
68
- and the values being an object with the following keys:
69
-
70
- - `compressible` - leave out if you don't know, otherwise `true`/`false` to
71
- indicate whether the data represented by the type is typically compressible.
72
- - `extensions` - include an array of file extensions that are associated with
73
- the type.
74
- - `notes` - human-readable notes about the type, typically what the type is.
75
- - `sources` - include an array of URLs of where the MIME type and the associated
76
- extensions are sourced from. This needs to be a [primary source](https://en.wikipedia.org/wiki/Primary_source);
77
- links to type aggregating sites and Wikipedia are _not acceptable_.
78
-
79
- To update the build, run `npm run build`.
80
-
81
- ### Adding Custom Media Types
82
-
83
- The best way to get new media types included in this library is to register
84
- them with the IANA. The community registration procedure is outlined in
85
- [RFC 6838 section 5](http://tools.ietf.org/html/rfc6838#section-5). Types
86
- registered with the IANA are automatically pulled into this library.
87
-
88
- If that is not possible / feasible, they can be added directly here as a
89
- "custom" type. To do this, it is required to have a primary source that
90
- definitively lists the media type. If an extension is going to be listed as
91
- associateed with this media type, the source must definitively link the
92
- media type and extension as well.
93
-
94
- [coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/mime-db/master
95
- [coveralls-url]: https://coveralls.io/r/jshttp/mime-db?branch=master
96
- [node-image]: https://badgen.net/npm/node/mime-db
97
- [node-url]: https://nodejs.org/en/download
98
- [npm-downloads-image]: https://badgen.net/npm/dm/mime-db
99
- [npm-url]: https://npmjs.org/package/mime-db
100
- [npm-version-image]: https://badgen.net/npm/v/mime-db
101
- [travis-image]: https://badgen.net/travis/jshttp/mime-db/master
102
- [travis-url]: https://travis-ci.org/jshttp/mime-db