angular-slickgrid 4.2.1 → 4.2.4

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 (206) 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/app/modules/angular-slickgrid/services/container.service.d.ts +1 -0
  5. package/docs/assets/lib/multiple-select/README.md +17 -17
  6. package/esm2020/app/modules/angular-slickgrid/components/angular-slickgrid.component.mjs +27 -28
  7. package/esm2020/app/modules/angular-slickgrid/constants.mjs +1 -1
  8. package/esm2020/app/modules/angular-slickgrid/extensions/index.mjs +1 -1
  9. package/esm2020/app/modules/angular-slickgrid/extensions/slickRowDetailView.mjs +2 -4
  10. package/esm2020/app/modules/angular-slickgrid/global-grid-options.mjs +1 -1
  11. package/esm2020/app/modules/angular-slickgrid/index.mjs +1 -1
  12. package/esm2020/app/modules/angular-slickgrid/models/angularComponentOutput.interface.mjs +1 -1
  13. package/esm2020/app/modules/angular-slickgrid/models/angularGridInstance.interface.mjs +1 -1
  14. package/esm2020/app/modules/angular-slickgrid/models/externalTestingDependencies.interface.mjs +1 -1
  15. package/esm2020/app/modules/angular-slickgrid/models/gridOption.interface.mjs +1 -1
  16. package/esm2020/app/modules/angular-slickgrid/models/index.mjs +1 -1
  17. package/esm2020/app/modules/angular-slickgrid/models/rowDetailView.interface.mjs +1 -1
  18. package/esm2020/app/modules/angular-slickgrid/models/slickGrid.interface.mjs +1 -1
  19. package/esm2020/app/modules/angular-slickgrid/modules/angular-slickgrid.module.mjs +7 -10
  20. package/esm2020/app/modules/angular-slickgrid/services/angularUtil.service.mjs +4 -4
  21. package/esm2020/app/modules/angular-slickgrid/services/bsDropdown.service.mjs +4 -4
  22. package/esm2020/app/modules/angular-slickgrid/services/container.service.mjs +7 -4
  23. package/esm2020/app/modules/angular-slickgrid/services/index.mjs +1 -1
  24. package/esm2020/app/modules/angular-slickgrid/services/translater.service.mjs +4 -4
  25. package/esm2020/app/modules/angular-slickgrid/services/utilities.mjs +1 -1
  26. package/esm2020/app/modules/angular-slickgrid/slickgrid-config.mjs +1 -1
  27. package/esm2020/public_api.mjs +1 -1
  28. package/fesm2015/angular-slickgrid.mjs +48 -51
  29. package/fesm2015/angular-slickgrid.mjs.map +1 -1
  30. package/fesm2020/angular-slickgrid.mjs +48 -51
  31. package/fesm2020/angular-slickgrid.mjs.map +1 -1
  32. package/i18n/en.json +89 -89
  33. package/i18n/fr.json +90 -90
  34. package/{angular-slickgrid.d.ts → index.d.ts} +0 -0
  35. package/package.json +11 -11
  36. package/test/cypress/node_modules/@cypress/request/README.md +1038 -0
  37. package/test/cypress/node_modules/@cypress/xvfb/README.md +48 -0
  38. package/test/cypress/node_modules/@cypress/xvfb/node_modules/debug/README.md +437 -0
  39. package/test/cypress/node_modules/@types/node/README.md +16 -0
  40. package/test/cypress/node_modules/@types/sinonjs__fake-timers/README.md +16 -0
  41. package/test/cypress/node_modules/@types/sizzle/README.md +16 -0
  42. package/test/cypress/node_modules/@types/yauzl/README.md +16 -0
  43. package/test/cypress/node_modules/@types/yauzl/node_modules/@types/node/README.md +16 -0
  44. package/test/cypress/node_modules/aggregate-error/README.md +61 -0
  45. package/test/cypress/node_modules/ansi-colors/README.md +315 -0
  46. package/test/cypress/node_modules/ansi-escapes/README.md +245 -0
  47. package/test/cypress/node_modules/ansi-regex/README.md +78 -0
  48. package/test/cypress/node_modules/ansi-styles/README.md +152 -0
  49. package/test/cypress/node_modules/arch/README.md +71 -0
  50. package/test/cypress/node_modules/asn1/README.md +50 -0
  51. package/test/cypress/node_modules/assert-plus/README.md +162 -0
  52. package/test/cypress/node_modules/astral-regex/README.md +46 -0
  53. package/test/cypress/node_modules/async/README.md +60 -0
  54. package/test/cypress/node_modules/asynckit/README.md +233 -0
  55. package/test/cypress/node_modules/at-least-node/README.md +25 -0
  56. package/test/cypress/node_modules/aws-sign2/README.md +4 -0
  57. package/test/cypress/node_modules/aws4/README.md +183 -0
  58. package/test/cypress/node_modules/balanced-match/README.md +91 -0
  59. package/test/cypress/node_modules/base64-js/README.md +34 -0
  60. package/test/cypress/node_modules/bcrypt-pbkdf/README.md +45 -0
  61. package/test/cypress/node_modules/blob-util/README.md +623 -0
  62. package/test/cypress/node_modules/bluebird/README.md +57 -0
  63. package/test/cypress/node_modules/brace-expansion/README.md +129 -0
  64. package/test/cypress/node_modules/buffer/README.md +410 -0
  65. package/test/cypress/node_modules/buffer-crc32/README.md +47 -0
  66. package/test/cypress/node_modules/cachedir/README.md +27 -0
  67. package/test/cypress/node_modules/caseless/README.md +45 -0
  68. package/test/cypress/node_modules/chalk/README.md +293 -0
  69. package/test/cypress/node_modules/chalk/node_modules/supports-color/README.md +76 -0
  70. package/test/cypress/node_modules/check-more-types/README.md +952 -0
  71. package/test/cypress/node_modules/ci-info/README.md +114 -0
  72. package/test/cypress/node_modules/clean-stack/README.md +76 -0
  73. package/test/cypress/node_modules/cli-cursor/README.md +55 -0
  74. package/test/cypress/node_modules/cli-table3/README.md +218 -0
  75. package/test/cypress/node_modules/cli-truncate/README.md +139 -0
  76. package/test/cypress/node_modules/color-convert/README.md +68 -0
  77. package/test/cypress/node_modules/color-name/README.md +11 -0
  78. package/test/cypress/node_modules/colorette/README.md +102 -0
  79. package/test/cypress/node_modules/colors/README.md +221 -0
  80. package/test/cypress/node_modules/combined-stream/README.md +138 -0
  81. package/test/cypress/node_modules/commander/README.md +737 -0
  82. package/test/cypress/node_modules/common-tags/README.md +687 -0
  83. package/test/cypress/node_modules/core-util-is/README.md +3 -0
  84. package/test/cypress/node_modules/cross-spawn/README.md +96 -0
  85. package/test/cypress/node_modules/cypress/README.md +25 -0
  86. package/test/cypress/node_modules/cypress/mount-utils/README.md +14 -0
  87. package/test/cypress/node_modules/cypress/react/README.md +414 -0
  88. package/test/cypress/node_modules/cypress/vue/README.md +678 -0
  89. package/test/cypress/node_modules/cypress/vue2/README.md +693 -0
  90. package/test/cypress/node_modules/dashdash/README.md +574 -0
  91. package/test/cypress/node_modules/dayjs/README.md +128 -0
  92. package/test/cypress/node_modules/debug/README.md +455 -0
  93. package/test/cypress/node_modules/delayed-stream/README.md +141 -0
  94. package/test/cypress/node_modules/ecc-jsbn/README.md +8 -0
  95. package/test/cypress/node_modules/emoji-regex/README.md +73 -0
  96. package/test/cypress/node_modules/end-of-stream/README.md +54 -0
  97. package/test/cypress/node_modules/enquirer/README.md +1752 -0
  98. package/test/cypress/node_modules/escape-string-regexp/README.md +27 -0
  99. package/test/cypress/node_modules/eventemitter2/README.md +809 -0
  100. package/test/cypress/node_modules/execa/README.md +656 -0
  101. package/test/cypress/node_modules/executable/README.md +64 -0
  102. package/test/cypress/node_modules/extend/README.md +81 -0
  103. package/test/cypress/node_modules/extract-zip/README.md +57 -0
  104. package/test/cypress/node_modules/extract-zip/node_modules/debug/README.md +455 -0
  105. package/test/cypress/node_modules/extsprintf/README.md +46 -0
  106. package/test/cypress/node_modules/fd-slicer/README.md +199 -0
  107. package/test/cypress/node_modules/figures/README.md +139 -0
  108. package/test/cypress/node_modules/forever-agent/README.md +4 -0
  109. package/test/cypress/node_modules/form-data/README.md +234 -0
  110. package/test/cypress/node_modules/fs-extra/README.md +264 -0
  111. package/test/cypress/node_modules/fs.realpath/README.md +33 -0
  112. package/test/cypress/node_modules/get-stream/README.md +124 -0
  113. package/test/cypress/node_modules/getos/README.md +79 -0
  114. package/test/cypress/node_modules/getpass/README.md +32 -0
  115. package/test/cypress/node_modules/glob/README.md +375 -0
  116. package/test/cypress/node_modules/global-dirs/README.md +72 -0
  117. package/test/cypress/node_modules/graceful-fs/README.md +133 -0
  118. package/test/cypress/node_modules/has-flag/README.md +89 -0
  119. package/test/cypress/node_modules/http-signature/README.md +80 -0
  120. package/test/cypress/node_modules/human-signals/README.md +155 -0
  121. package/test/cypress/node_modules/ieee754/README.md +51 -0
  122. package/test/cypress/node_modules/indent-string/README.md +70 -0
  123. package/test/cypress/node_modules/inflight/README.md +37 -0
  124. package/test/cypress/node_modules/inherits/README.md +42 -0
  125. package/test/cypress/node_modules/ini/README.md +102 -0
  126. package/test/cypress/node_modules/is-ci/README.md +50 -0
  127. package/test/cypress/node_modules/is-fullwidth-code-point/README.md +39 -0
  128. package/test/cypress/node_modules/is-installed-globally/README.md +31 -0
  129. package/test/cypress/node_modules/is-path-inside/README.md +63 -0
  130. package/test/cypress/node_modules/is-stream/README.md +57 -0
  131. package/test/cypress/node_modules/is-typedarray/README.md +16 -0
  132. package/test/cypress/node_modules/isexe/README.md +51 -0
  133. package/test/cypress/node_modules/isstream/README.md +66 -0
  134. package/test/cypress/node_modules/jsbn/README.md +175 -0
  135. package/test/cypress/node_modules/json-schema/README.md +3 -0
  136. package/test/cypress/node_modules/json-stringify-safe/README.md +52 -0
  137. package/test/cypress/node_modules/jsonfile/README.md +205 -0
  138. package/test/cypress/node_modules/jsonfile/node_modules/universalify/README.md +76 -0
  139. package/test/cypress/node_modules/jsprim/README.md +287 -0
  140. package/test/cypress/node_modules/lazy-ass/README.md +269 -0
  141. package/test/cypress/node_modules/listr2/README.md +17 -0
  142. package/test/cypress/node_modules/lodash/README.md +39 -0
  143. package/test/cypress/node_modules/lodash.once/README.md +18 -0
  144. package/test/cypress/node_modules/log-symbols/README.md +51 -0
  145. package/test/cypress/node_modules/log-update/README.md +97 -0
  146. package/test/cypress/node_modules/log-update/node_modules/slice-ansi/README.md +66 -0
  147. package/test/cypress/node_modules/log-update/node_modules/wrap-ansi/README.md +97 -0
  148. package/test/cypress/node_modules/lru-cache/README.md +166 -0
  149. package/test/cypress/node_modules/merge-stream/README.md +78 -0
  150. package/test/cypress/node_modules/mime-db/README.md +102 -0
  151. package/test/cypress/node_modules/mime-types/README.md +123 -0
  152. package/test/cypress/node_modules/mimic-fn/README.md +69 -0
  153. package/test/cypress/node_modules/minimatch/README.md +209 -0
  154. package/test/cypress/node_modules/ms/README.md +60 -0
  155. package/test/cypress/node_modules/npm-run-path/README.md +115 -0
  156. package/test/cypress/node_modules/once/README.md +79 -0
  157. package/test/cypress/node_modules/onetime/README.md +94 -0
  158. package/test/cypress/node_modules/ospath/README.md +53 -0
  159. package/test/cypress/node_modules/p-map/README.md +89 -0
  160. package/test/cypress/node_modules/path-is-absolute/README.md +59 -0
  161. package/test/cypress/node_modules/path-key/README.md +61 -0
  162. package/test/cypress/node_modules/pend/README.md +41 -0
  163. package/test/cypress/node_modules/performance-now/README.md +30 -0
  164. package/test/cypress/node_modules/pify/README.md +119 -0
  165. package/test/cypress/node_modules/pretty-bytes/README.md +131 -0
  166. package/test/cypress/node_modules/proxy-from-env/README.md +131 -0
  167. package/test/cypress/node_modules/psl/README.md +215 -0
  168. package/test/cypress/node_modules/pump/README.md +65 -0
  169. package/test/cypress/node_modules/punycode/README.md +122 -0
  170. package/test/cypress/node_modules/qs/README.md +475 -0
  171. package/test/cypress/node_modules/request-progress/README.md +78 -0
  172. package/test/cypress/node_modules/restore-cursor/README.md +26 -0
  173. package/test/cypress/node_modules/rimraf/README.md +101 -0
  174. package/test/cypress/node_modules/rxjs/README.md +147 -0
  175. package/test/cypress/node_modules/rxjs/_esm2015/README.md +147 -0
  176. package/test/cypress/node_modules/rxjs/_esm5/README.md +147 -0
  177. package/test/cypress/node_modules/rxjs/src/README.md +147 -0
  178. package/test/cypress/node_modules/safe-buffer/README.md +584 -0
  179. package/test/cypress/node_modules/safer-buffer/README.md +156 -0
  180. package/test/cypress/node_modules/semver/README.md +566 -0
  181. package/test/cypress/node_modules/shebang-command/README.md +34 -0
  182. package/test/cypress/node_modules/shebang-regex/README.md +33 -0
  183. package/test/cypress/node_modules/signal-exit/README.md +39 -0
  184. package/test/cypress/node_modules/slice-ansi/README.md +72 -0
  185. package/test/cypress/node_modules/sshpk/README.md +804 -0
  186. package/test/cypress/node_modules/string-width/README.md +50 -0
  187. package/test/cypress/node_modules/strip-ansi/README.md +46 -0
  188. package/test/cypress/node_modules/strip-final-newline/README.md +30 -0
  189. package/test/cypress/node_modules/supports-color/README.md +77 -0
  190. package/test/cypress/node_modules/throttleit/README.md +32 -0
  191. package/test/cypress/node_modules/tmp/README.md +365 -0
  192. package/test/cypress/node_modules/tough-cookie/README.md +527 -0
  193. package/test/cypress/node_modules/tslib/README.md +142 -0
  194. package/test/cypress/node_modules/tunnel-agent/README.md +4 -0
  195. package/test/cypress/node_modules/tweetnacl/README.md +459 -0
  196. package/test/cypress/node_modules/type-fest/README.md +760 -0
  197. package/test/cypress/node_modules/universalify/README.md +76 -0
  198. package/test/cypress/node_modules/untildify/README.md +30 -0
  199. package/test/cypress/node_modules/uuid/README.md +505 -0
  200. package/test/cypress/node_modules/verror/README.md +528 -0
  201. package/test/cypress/node_modules/verror/node_modules/extsprintf/README.md +46 -0
  202. package/test/cypress/node_modules/which/README.md +54 -0
  203. package/test/cypress/node_modules/wrap-ansi/README.md +91 -0
  204. package/test/cypress/node_modules/wrappy/README.md +36 -0
  205. package/test/cypress/node_modules/yallist/README.md +204 -0
  206. package/test/cypress/node_modules/yauzl/README.md +658 -0
@@ -0,0 +1,81 @@
1
+ [![Build Status][travis-svg]][travis-url]
2
+ [![dependency status][deps-svg]][deps-url]
3
+ [![dev dependency status][dev-deps-svg]][dev-deps-url]
4
+
5
+ # extend() for Node.js <sup>[![Version Badge][npm-version-png]][npm-url]</sup>
6
+
7
+ `node-extend` is a port of the classic extend() method from jQuery. It behaves as you expect. It is simple, tried and true.
8
+
9
+ Notes:
10
+
11
+ * Since Node.js >= 4,
12
+ [`Object.assign`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign)
13
+ now offers the same functionality natively (but without the "deep copy" option).
14
+ See [ECMAScript 2015 (ES6) in Node.js](https://nodejs.org/en/docs/es6).
15
+ * Some native implementations of `Object.assign` in both Node.js and many
16
+ browsers (since NPM modules are for the browser too) may not be fully
17
+ spec-compliant.
18
+ Check [`object.assign`](https://www.npmjs.com/package/object.assign) module for
19
+ a compliant candidate.
20
+
21
+ ## Installation
22
+
23
+ This package is available on [npm][npm-url] as: `extend`
24
+
25
+ ``` sh
26
+ npm install extend
27
+ ```
28
+
29
+ ## Usage
30
+
31
+ **Syntax:** extend **(** [`deep`], `target`, `object1`, [`objectN`] **)**
32
+
33
+ *Extend one object with one or more others, returning the modified object.*
34
+
35
+ **Example:**
36
+
37
+ ``` js
38
+ var extend = require('extend');
39
+ extend(targetObject, object1, object2);
40
+ ```
41
+
42
+ Keep in mind that the target object will be modified, and will be returned from extend().
43
+
44
+ If a boolean true is specified as the first argument, extend performs a deep copy, recursively copying any objects it finds. Otherwise, the copy will share structure with the original object(s).
45
+ Undefined properties are not copied. However, properties inherited from the object's prototype will be copied over.
46
+ Warning: passing `false` as the first argument is not supported.
47
+
48
+ ### Arguments
49
+
50
+ * `deep` *Boolean* (optional)
51
+ If set, the merge becomes recursive (i.e. deep copy).
52
+ * `target` *Object*
53
+ The object to extend.
54
+ * `object1` *Object*
55
+ The object that will be merged into the first.
56
+ * `objectN` *Object* (Optional)
57
+ More objects to merge into the first.
58
+
59
+ ## License
60
+
61
+ `node-extend` is licensed under the [MIT License][mit-license-url].
62
+
63
+ ## Acknowledgements
64
+
65
+ All credit to the jQuery authors for perfecting this amazing utility.
66
+
67
+ Ported to Node.js by [Stefan Thomas][github-justmoon] with contributions by [Jonathan Buchanan][github-insin] and [Jordan Harband][github-ljharb].
68
+
69
+ [travis-svg]: https://travis-ci.org/justmoon/node-extend.svg
70
+ [travis-url]: https://travis-ci.org/justmoon/node-extend
71
+ [npm-url]: https://npmjs.org/package/extend
72
+ [mit-license-url]: http://opensource.org/licenses/MIT
73
+ [github-justmoon]: https://github.com/justmoon
74
+ [github-insin]: https://github.com/insin
75
+ [github-ljharb]: https://github.com/ljharb
76
+ [npm-version-png]: http://versionbadg.es/justmoon/node-extend.svg
77
+ [deps-svg]: https://david-dm.org/justmoon/node-extend.svg
78
+ [deps-url]: https://david-dm.org/justmoon/node-extend
79
+ [dev-deps-svg]: https://david-dm.org/justmoon/node-extend/dev-status.svg
80
+ [dev-deps-url]: https://david-dm.org/justmoon/node-extend#info=devDependencies
81
+
@@ -0,0 +1,57 @@
1
+ # extract-zip
2
+
3
+ Unzip written in pure JavaScript. Extracts a zip into a directory. Available as a library or a command line program.
4
+
5
+ Uses the [`yauzl`](http://npmjs.org/yauzl) ZIP parser.
6
+
7
+ [![NPM](https://nodei.co/npm/extract-zip.png?global=true)](https://npm.im/extract-zip)
8
+ [![Uses JS Standard Style](https://cdn.jsdelivr.net/gh/standard/standard/badge.svg)](https://github.com/standard/standard)
9
+ [![Build Status](https://github.com/maxogden/extract-zip/workflows/CI/badge.svg)](https://github.com/maxogden/extract-zip/actions?query=workflow%3ACI)
10
+
11
+ ## Installation
12
+
13
+ Make sure you have Node 10 or greater installed.
14
+
15
+ Get the library:
16
+
17
+ ```
18
+ npm install extract-zip --save
19
+ ```
20
+
21
+ Install the command line program:
22
+
23
+ ```
24
+ npm install extract-zip -g
25
+ ```
26
+
27
+ ## JS API
28
+
29
+ ```javascript
30
+ const extract = require('extract-zip')
31
+
32
+ async function main () {
33
+ try {
34
+ await extract(source, { dir: target })
35
+ console.log('Extraction complete')
36
+ } catch (err) {
37
+ // handle any errors
38
+ }
39
+ }
40
+ ```
41
+
42
+ ### Options
43
+
44
+ - `dir` (required) - the path to the directory where the extracted files are written
45
+ - `defaultDirMode` - integer - Directory Mode (permissions), defaults to `0o755`
46
+ - `defaultFileMode` - integer - File Mode (permissions), defaults to `0o644`
47
+ - `onEntry` - function - if present, will be called with `(entry, zipfile)`, entry is every entry from the zip file forwarded from the `entry` event from yauzl. `zipfile` is the `yauzl` instance
48
+
49
+ Default modes are only used if no permissions are set in the zip file.
50
+
51
+ ## CLI Usage
52
+
53
+ ```
54
+ extract-zip foo.zip <targetDirectory>
55
+ ```
56
+
57
+ If not specified, `targetDirectory` will default to `process.cwd()`.
@@ -0,0 +1,455 @@
1
+ # debug
2
+ [![Build Status](https://travis-ci.org/visionmedia/debug.svg?branch=master)](https://travis-ci.org/visionmedia/debug) [![Coverage Status](https://coveralls.io/repos/github/visionmedia/debug/badge.svg?branch=master)](https://coveralls.io/github/visionmedia/debug?branch=master) [![Slack](https://visionmedia-community-slackin.now.sh/badge.svg)](https://visionmedia-community-slackin.now.sh/) [![OpenCollective](https://opencollective.com/debug/backers/badge.svg)](#backers)
3
+ [![OpenCollective](https://opencollective.com/debug/sponsors/badge.svg)](#sponsors)
4
+
5
+ <img width="647" src="https://user-images.githubusercontent.com/71256/29091486-fa38524c-7c37-11e7-895f-e7ec8e1039b6.png">
6
+
7
+ A tiny JavaScript debugging utility modelled after Node.js core's debugging
8
+ technique. Works in Node.js and web browsers.
9
+
10
+ ## Installation
11
+
12
+ ```bash
13
+ $ npm install debug
14
+ ```
15
+
16
+ ## Usage
17
+
18
+ `debug` exposes a function; simply pass this function the name of your module, and it will return a decorated version of `console.error` for you to pass debug statements to. This will allow you to toggle the debug output for different parts of your module as well as the module as a whole.
19
+
20
+ Example [_app.js_](./examples/node/app.js):
21
+
22
+ ```js
23
+ var debug = require('debug')('http')
24
+ , http = require('http')
25
+ , name = 'My App';
26
+
27
+ // fake app
28
+
29
+ debug('booting %o', name);
30
+
31
+ http.createServer(function(req, res){
32
+ debug(req.method + ' ' + req.url);
33
+ res.end('hello\n');
34
+ }).listen(3000, function(){
35
+ debug('listening');
36
+ });
37
+
38
+ // fake worker of some kind
39
+
40
+ require('./worker');
41
+ ```
42
+
43
+ Example [_worker.js_](./examples/node/worker.js):
44
+
45
+ ```js
46
+ var a = require('debug')('worker:a')
47
+ , b = require('debug')('worker:b');
48
+
49
+ function work() {
50
+ a('doing lots of uninteresting work');
51
+ setTimeout(work, Math.random() * 1000);
52
+ }
53
+
54
+ work();
55
+
56
+ function workb() {
57
+ b('doing some work');
58
+ setTimeout(workb, Math.random() * 2000);
59
+ }
60
+
61
+ workb();
62
+ ```
63
+
64
+ The `DEBUG` environment variable is then used to enable these based on space or
65
+ comma-delimited names.
66
+
67
+ Here are some examples:
68
+
69
+ <img width="647" alt="screen shot 2017-08-08 at 12 53 04 pm" src="https://user-images.githubusercontent.com/71256/29091703-a6302cdc-7c38-11e7-8304-7c0b3bc600cd.png">
70
+ <img width="647" alt="screen shot 2017-08-08 at 12 53 38 pm" src="https://user-images.githubusercontent.com/71256/29091700-a62a6888-7c38-11e7-800b-db911291ca2b.png">
71
+ <img width="647" alt="screen shot 2017-08-08 at 12 53 25 pm" src="https://user-images.githubusercontent.com/71256/29091701-a62ea114-7c38-11e7-826a-2692bedca740.png">
72
+
73
+ #### Windows command prompt notes
74
+
75
+ ##### CMD
76
+
77
+ On Windows the environment variable is set using the `set` command.
78
+
79
+ ```cmd
80
+ set DEBUG=*,-not_this
81
+ ```
82
+
83
+ Example:
84
+
85
+ ```cmd
86
+ set DEBUG=* & node app.js
87
+ ```
88
+
89
+ ##### PowerShell (VS Code default)
90
+
91
+ PowerShell uses different syntax to set environment variables.
92
+
93
+ ```cmd
94
+ $env:DEBUG = "*,-not_this"
95
+ ```
96
+
97
+ Example:
98
+
99
+ ```cmd
100
+ $env:DEBUG='app';node app.js
101
+ ```
102
+
103
+ Then, run the program to be debugged as usual.
104
+
105
+ npm script example:
106
+ ```js
107
+ "windowsDebug": "@powershell -Command $env:DEBUG='*';node app.js",
108
+ ```
109
+
110
+ ## Namespace Colors
111
+
112
+ Every debug instance has a color generated for it based on its namespace name.
113
+ This helps when visually parsing the debug output to identify which debug instance
114
+ a debug line belongs to.
115
+
116
+ #### Node.js
117
+
118
+ In Node.js, colors are enabled when stderr is a TTY. You also _should_ install
119
+ the [`supports-color`](https://npmjs.org/supports-color) module alongside debug,
120
+ otherwise debug will only use a small handful of basic colors.
121
+
122
+ <img width="521" src="https://user-images.githubusercontent.com/71256/29092181-47f6a9e6-7c3a-11e7-9a14-1928d8a711cd.png">
123
+
124
+ #### Web Browser
125
+
126
+ Colors are also enabled on "Web Inspectors" that understand the `%c` formatting
127
+ option. These are WebKit web inspectors, Firefox ([since version
128
+ 31](https://hacks.mozilla.org/2014/05/editable-box-model-multiple-selection-sublime-text-keys-much-more-firefox-developer-tools-episode-31/))
129
+ and the Firebug plugin for Firefox (any version).
130
+
131
+ <img width="524" src="https://user-images.githubusercontent.com/71256/29092033-b65f9f2e-7c39-11e7-8e32-f6f0d8e865c1.png">
132
+
133
+
134
+ ## Millisecond diff
135
+
136
+ When actively developing an application it can be useful to see when the time spent between one `debug()` call and the next. Suppose for example you invoke `debug()` before requesting a resource, and after as well, the "+NNNms" will show you how much time was spent between calls.
137
+
138
+ <img width="647" src="https://user-images.githubusercontent.com/71256/29091486-fa38524c-7c37-11e7-895f-e7ec8e1039b6.png">
139
+
140
+ When stdout is not a TTY, `Date#toISOString()` is used, making it more useful for logging the debug information as shown below:
141
+
142
+ <img width="647" src="https://user-images.githubusercontent.com/71256/29091956-6bd78372-7c39-11e7-8c55-c948396d6edd.png">
143
+
144
+
145
+ ## Conventions
146
+
147
+ If you're using this in one or more of your libraries, you _should_ use the name of your library so that developers may toggle debugging as desired without guessing names. If you have more than one debuggers you _should_ prefix them with your library name and use ":" to separate features. For example "bodyParser" from Connect would then be "connect:bodyParser". If you append a "*" to the end of your name, it will always be enabled regardless of the setting of the DEBUG environment variable. You can then use it for normal output as well as debug output.
148
+
149
+ ## Wildcards
150
+
151
+ The `*` character may be used as a wildcard. Suppose for example your library has
152
+ debuggers named "connect:bodyParser", "connect:compress", "connect:session",
153
+ instead of listing all three with
154
+ `DEBUG=connect:bodyParser,connect:compress,connect:session`, you may simply do
155
+ `DEBUG=connect:*`, or to run everything using this module simply use `DEBUG=*`.
156
+
157
+ You can also exclude specific debuggers by prefixing them with a "-" character.
158
+ For example, `DEBUG=*,-connect:*` would include all debuggers except those
159
+ starting with "connect:".
160
+
161
+ ## Environment Variables
162
+
163
+ When running through Node.js, you can set a few environment variables that will
164
+ change the behavior of the debug logging:
165
+
166
+ | Name | Purpose |
167
+ |-----------|-------------------------------------------------|
168
+ | `DEBUG` | Enables/disables specific debugging namespaces. |
169
+ | `DEBUG_HIDE_DATE` | Hide date from debug output (non-TTY). |
170
+ | `DEBUG_COLORS`| Whether or not to use colors in the debug output. |
171
+ | `DEBUG_DEPTH` | Object inspection depth. |
172
+ | `DEBUG_SHOW_HIDDEN` | Shows hidden properties on inspected objects. |
173
+
174
+
175
+ __Note:__ The environment variables beginning with `DEBUG_` end up being
176
+ converted into an Options object that gets used with `%o`/`%O` formatters.
177
+ See the Node.js documentation for
178
+ [`util.inspect()`](https://nodejs.org/api/util.html#util_util_inspect_object_options)
179
+ for the complete list.
180
+
181
+ ## Formatters
182
+
183
+ Debug uses [printf-style](https://wikipedia.org/wiki/Printf_format_string) formatting.
184
+ Below are the officially supported formatters:
185
+
186
+ | Formatter | Representation |
187
+ |-----------|----------------|
188
+ | `%O` | Pretty-print an Object on multiple lines. |
189
+ | `%o` | Pretty-print an Object all on a single line. |
190
+ | `%s` | String. |
191
+ | `%d` | Number (both integer and float). |
192
+ | `%j` | JSON. Replaced with the string '[Circular]' if the argument contains circular references. |
193
+ | `%%` | Single percent sign ('%'). This does not consume an argument. |
194
+
195
+
196
+ ### Custom formatters
197
+
198
+ You can add custom formatters by extending the `debug.formatters` object.
199
+ For example, if you wanted to add support for rendering a Buffer as hex with
200
+ `%h`, you could do something like:
201
+
202
+ ```js
203
+ const createDebug = require('debug')
204
+ createDebug.formatters.h = (v) => {
205
+ return v.toString('hex')
206
+ }
207
+
208
+ // …elsewhere
209
+ const debug = createDebug('foo')
210
+ debug('this is hex: %h', new Buffer('hello world'))
211
+ // foo this is hex: 68656c6c6f20776f726c6421 +0ms
212
+ ```
213
+
214
+
215
+ ## Browser Support
216
+
217
+ You can build a browser-ready script using [browserify](https://github.com/substack/node-browserify),
218
+ or just use the [browserify-as-a-service](https://wzrd.in/) [build](https://wzrd.in/standalone/debug@latest),
219
+ if you don't want to build it yourself.
220
+
221
+ Debug's enable state is currently persisted by `localStorage`.
222
+ Consider the situation shown below where you have `worker:a` and `worker:b`,
223
+ and wish to debug both. You can enable this using `localStorage.debug`:
224
+
225
+ ```js
226
+ localStorage.debug = 'worker:*'
227
+ ```
228
+
229
+ And then refresh the page.
230
+
231
+ ```js
232
+ a = debug('worker:a');
233
+ b = debug('worker:b');
234
+
235
+ setInterval(function(){
236
+ a('doing some work');
237
+ }, 1000);
238
+
239
+ setInterval(function(){
240
+ b('doing some work');
241
+ }, 1200);
242
+ ```
243
+
244
+
245
+ ## Output streams
246
+
247
+ By default `debug` will log to stderr, however this can be configured per-namespace by overriding the `log` method:
248
+
249
+ Example [_stdout.js_](./examples/node/stdout.js):
250
+
251
+ ```js
252
+ var debug = require('debug');
253
+ var error = debug('app:error');
254
+
255
+ // by default stderr is used
256
+ error('goes to stderr!');
257
+
258
+ var log = debug('app:log');
259
+ // set this namespace to log via console.log
260
+ log.log = console.log.bind(console); // don't forget to bind to console!
261
+ log('goes to stdout');
262
+ error('still goes to stderr!');
263
+
264
+ // set all output to go via console.info
265
+ // overrides all per-namespace log settings
266
+ debug.log = console.info.bind(console);
267
+ error('now goes to stdout via console.info');
268
+ log('still goes to stdout, but via console.info now');
269
+ ```
270
+
271
+ ## Extend
272
+ You can simply extend debugger
273
+ ```js
274
+ const log = require('debug')('auth');
275
+
276
+ //creates new debug instance with extended namespace
277
+ const logSign = log.extend('sign');
278
+ const logLogin = log.extend('login');
279
+
280
+ log('hello'); // auth hello
281
+ logSign('hello'); //auth:sign hello
282
+ logLogin('hello'); //auth:login hello
283
+ ```
284
+
285
+ ## Set dynamically
286
+
287
+ You can also enable debug dynamically by calling the `enable()` method :
288
+
289
+ ```js
290
+ let debug = require('debug');
291
+
292
+ console.log(1, debug.enabled('test'));
293
+
294
+ debug.enable('test');
295
+ console.log(2, debug.enabled('test'));
296
+
297
+ debug.disable();
298
+ console.log(3, debug.enabled('test'));
299
+
300
+ ```
301
+
302
+ print :
303
+ ```
304
+ 1 false
305
+ 2 true
306
+ 3 false
307
+ ```
308
+
309
+ Usage :
310
+ `enable(namespaces)`
311
+ `namespaces` can include modes separated by a colon and wildcards.
312
+
313
+ Note that calling `enable()` completely overrides previously set DEBUG variable :
314
+
315
+ ```
316
+ $ DEBUG=foo node -e 'var dbg = require("debug"); dbg.enable("bar"); console.log(dbg.enabled("foo"))'
317
+ => false
318
+ ```
319
+
320
+ `disable()`
321
+
322
+ Will disable all namespaces. The functions returns the namespaces currently
323
+ enabled (and skipped). This can be useful if you want to disable debugging
324
+ temporarily without knowing what was enabled to begin with.
325
+
326
+ For example:
327
+
328
+ ```js
329
+ let debug = require('debug');
330
+ debug.enable('foo:*,-foo:bar');
331
+ let namespaces = debug.disable();
332
+ debug.enable(namespaces);
333
+ ```
334
+
335
+ Note: There is no guarantee that the string will be identical to the initial
336
+ enable string, but semantically they will be identical.
337
+
338
+ ## Checking whether a debug target is enabled
339
+
340
+ After you've created a debug instance, you can determine whether or not it is
341
+ enabled by checking the `enabled` property:
342
+
343
+ ```javascript
344
+ const debug = require('debug')('http');
345
+
346
+ if (debug.enabled) {
347
+ // do stuff...
348
+ }
349
+ ```
350
+
351
+ You can also manually toggle this property to force the debug instance to be
352
+ enabled or disabled.
353
+
354
+
355
+ ## Authors
356
+
357
+ - TJ Holowaychuk
358
+ - Nathan Rajlich
359
+ - Andrew Rhyne
360
+
361
+ ## Backers
362
+
363
+ Support us with a monthly donation and help us continue our activities. [[Become a backer](https://opencollective.com/debug#backer)]
364
+
365
+ <a href="https://opencollective.com/debug/backer/0/website" target="_blank"><img src="https://opencollective.com/debug/backer/0/avatar.svg"></a>
366
+ <a href="https://opencollective.com/debug/backer/1/website" target="_blank"><img src="https://opencollective.com/debug/backer/1/avatar.svg"></a>
367
+ <a href="https://opencollective.com/debug/backer/2/website" target="_blank"><img src="https://opencollective.com/debug/backer/2/avatar.svg"></a>
368
+ <a href="https://opencollective.com/debug/backer/3/website" target="_blank"><img src="https://opencollective.com/debug/backer/3/avatar.svg"></a>
369
+ <a href="https://opencollective.com/debug/backer/4/website" target="_blank"><img src="https://opencollective.com/debug/backer/4/avatar.svg"></a>
370
+ <a href="https://opencollective.com/debug/backer/5/website" target="_blank"><img src="https://opencollective.com/debug/backer/5/avatar.svg"></a>
371
+ <a href="https://opencollective.com/debug/backer/6/website" target="_blank"><img src="https://opencollective.com/debug/backer/6/avatar.svg"></a>
372
+ <a href="https://opencollective.com/debug/backer/7/website" target="_blank"><img src="https://opencollective.com/debug/backer/7/avatar.svg"></a>
373
+ <a href="https://opencollective.com/debug/backer/8/website" target="_blank"><img src="https://opencollective.com/debug/backer/8/avatar.svg"></a>
374
+ <a href="https://opencollective.com/debug/backer/9/website" target="_blank"><img src="https://opencollective.com/debug/backer/9/avatar.svg"></a>
375
+ <a href="https://opencollective.com/debug/backer/10/website" target="_blank"><img src="https://opencollective.com/debug/backer/10/avatar.svg"></a>
376
+ <a href="https://opencollective.com/debug/backer/11/website" target="_blank"><img src="https://opencollective.com/debug/backer/11/avatar.svg"></a>
377
+ <a href="https://opencollective.com/debug/backer/12/website" target="_blank"><img src="https://opencollective.com/debug/backer/12/avatar.svg"></a>
378
+ <a href="https://opencollective.com/debug/backer/13/website" target="_blank"><img src="https://opencollective.com/debug/backer/13/avatar.svg"></a>
379
+ <a href="https://opencollective.com/debug/backer/14/website" target="_blank"><img src="https://opencollective.com/debug/backer/14/avatar.svg"></a>
380
+ <a href="https://opencollective.com/debug/backer/15/website" target="_blank"><img src="https://opencollective.com/debug/backer/15/avatar.svg"></a>
381
+ <a href="https://opencollective.com/debug/backer/16/website" target="_blank"><img src="https://opencollective.com/debug/backer/16/avatar.svg"></a>
382
+ <a href="https://opencollective.com/debug/backer/17/website" target="_blank"><img src="https://opencollective.com/debug/backer/17/avatar.svg"></a>
383
+ <a href="https://opencollective.com/debug/backer/18/website" target="_blank"><img src="https://opencollective.com/debug/backer/18/avatar.svg"></a>
384
+ <a href="https://opencollective.com/debug/backer/19/website" target="_blank"><img src="https://opencollective.com/debug/backer/19/avatar.svg"></a>
385
+ <a href="https://opencollective.com/debug/backer/20/website" target="_blank"><img src="https://opencollective.com/debug/backer/20/avatar.svg"></a>
386
+ <a href="https://opencollective.com/debug/backer/21/website" target="_blank"><img src="https://opencollective.com/debug/backer/21/avatar.svg"></a>
387
+ <a href="https://opencollective.com/debug/backer/22/website" target="_blank"><img src="https://opencollective.com/debug/backer/22/avatar.svg"></a>
388
+ <a href="https://opencollective.com/debug/backer/23/website" target="_blank"><img src="https://opencollective.com/debug/backer/23/avatar.svg"></a>
389
+ <a href="https://opencollective.com/debug/backer/24/website" target="_blank"><img src="https://opencollective.com/debug/backer/24/avatar.svg"></a>
390
+ <a href="https://opencollective.com/debug/backer/25/website" target="_blank"><img src="https://opencollective.com/debug/backer/25/avatar.svg"></a>
391
+ <a href="https://opencollective.com/debug/backer/26/website" target="_blank"><img src="https://opencollective.com/debug/backer/26/avatar.svg"></a>
392
+ <a href="https://opencollective.com/debug/backer/27/website" target="_blank"><img src="https://opencollective.com/debug/backer/27/avatar.svg"></a>
393
+ <a href="https://opencollective.com/debug/backer/28/website" target="_blank"><img src="https://opencollective.com/debug/backer/28/avatar.svg"></a>
394
+ <a href="https://opencollective.com/debug/backer/29/website" target="_blank"><img src="https://opencollective.com/debug/backer/29/avatar.svg"></a>
395
+
396
+
397
+ ## Sponsors
398
+
399
+ Become a sponsor and get your logo on our README on Github with a link to your site. [[Become a sponsor](https://opencollective.com/debug#sponsor)]
400
+
401
+ <a href="https://opencollective.com/debug/sponsor/0/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/0/avatar.svg"></a>
402
+ <a href="https://opencollective.com/debug/sponsor/1/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/1/avatar.svg"></a>
403
+ <a href="https://opencollective.com/debug/sponsor/2/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/2/avatar.svg"></a>
404
+ <a href="https://opencollective.com/debug/sponsor/3/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/3/avatar.svg"></a>
405
+ <a href="https://opencollective.com/debug/sponsor/4/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/4/avatar.svg"></a>
406
+ <a href="https://opencollective.com/debug/sponsor/5/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/5/avatar.svg"></a>
407
+ <a href="https://opencollective.com/debug/sponsor/6/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/6/avatar.svg"></a>
408
+ <a href="https://opencollective.com/debug/sponsor/7/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/7/avatar.svg"></a>
409
+ <a href="https://opencollective.com/debug/sponsor/8/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/8/avatar.svg"></a>
410
+ <a href="https://opencollective.com/debug/sponsor/9/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/9/avatar.svg"></a>
411
+ <a href="https://opencollective.com/debug/sponsor/10/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/10/avatar.svg"></a>
412
+ <a href="https://opencollective.com/debug/sponsor/11/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/11/avatar.svg"></a>
413
+ <a href="https://opencollective.com/debug/sponsor/12/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/12/avatar.svg"></a>
414
+ <a href="https://opencollective.com/debug/sponsor/13/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/13/avatar.svg"></a>
415
+ <a href="https://opencollective.com/debug/sponsor/14/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/14/avatar.svg"></a>
416
+ <a href="https://opencollective.com/debug/sponsor/15/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/15/avatar.svg"></a>
417
+ <a href="https://opencollective.com/debug/sponsor/16/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/16/avatar.svg"></a>
418
+ <a href="https://opencollective.com/debug/sponsor/17/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/17/avatar.svg"></a>
419
+ <a href="https://opencollective.com/debug/sponsor/18/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/18/avatar.svg"></a>
420
+ <a href="https://opencollective.com/debug/sponsor/19/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/19/avatar.svg"></a>
421
+ <a href="https://opencollective.com/debug/sponsor/20/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/20/avatar.svg"></a>
422
+ <a href="https://opencollective.com/debug/sponsor/21/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/21/avatar.svg"></a>
423
+ <a href="https://opencollective.com/debug/sponsor/22/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/22/avatar.svg"></a>
424
+ <a href="https://opencollective.com/debug/sponsor/23/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/23/avatar.svg"></a>
425
+ <a href="https://opencollective.com/debug/sponsor/24/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/24/avatar.svg"></a>
426
+ <a href="https://opencollective.com/debug/sponsor/25/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/25/avatar.svg"></a>
427
+ <a href="https://opencollective.com/debug/sponsor/26/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/26/avatar.svg"></a>
428
+ <a href="https://opencollective.com/debug/sponsor/27/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/27/avatar.svg"></a>
429
+ <a href="https://opencollective.com/debug/sponsor/28/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/28/avatar.svg"></a>
430
+ <a href="https://opencollective.com/debug/sponsor/29/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/29/avatar.svg"></a>
431
+
432
+ ## License
433
+
434
+ (The MIT License)
435
+
436
+ Copyright (c) 2014-2017 TJ Holowaychuk &lt;tj@vision-media.ca&gt;
437
+
438
+ Permission is hereby granted, free of charge, to any person obtaining
439
+ a copy of this software and associated documentation files (the
440
+ 'Software'), to deal in the Software without restriction, including
441
+ without limitation the rights to use, copy, modify, merge, publish,
442
+ distribute, sublicense, and/or sell copies of the Software, and to
443
+ permit persons to whom the Software is furnished to do so, subject to
444
+ the following conditions:
445
+
446
+ The above copyright notice and this permission notice shall be
447
+ included in all copies or substantial portions of the Software.
448
+
449
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
450
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
451
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
452
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
453
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
454
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
455
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,46 @@
1
+ # extsprintf: extended POSIX-style sprintf
2
+
3
+ Stripped down version of s[n]printf(3c). We make a best effort to throw an
4
+ exception when given a format string we don't understand, rather than ignoring
5
+ it, so that we won't break existing programs if/when we go implement the rest
6
+ of this.
7
+
8
+ This implementation currently supports specifying
9
+
10
+ * field alignment ('-' flag),
11
+ * zero-pad ('0' flag)
12
+ * always show numeric sign ('+' flag),
13
+ * field width
14
+ * conversions for strings, decimal integers, and floats (numbers).
15
+ * argument size specifiers. These are all accepted but ignored, since
16
+ Javascript has no notion of the physical size of an argument.
17
+
18
+ Everything else is currently unsupported, most notably: precision, unsigned
19
+ numbers, non-decimal numbers, and characters.
20
+
21
+ Besides the usual POSIX conversions, this implementation supports:
22
+
23
+ * `%j`: pretty-print a JSON object (using node's "inspect")
24
+ * `%r`: pretty-print an Error object
25
+
26
+ # Example
27
+
28
+ First, install it:
29
+
30
+ # npm install extsprintf
31
+
32
+ Now, use it:
33
+
34
+ var mod_extsprintf = require('extsprintf');
35
+ console.log(mod_extsprintf.sprintf('hello %25s', 'world'));
36
+
37
+ outputs:
38
+
39
+ hello world
40
+
41
+ # Also supported
42
+
43
+ **printf**: same args as sprintf, but prints the result to stdout
44
+
45
+ **fprintf**: same args as sprintf, preceded by a Node stream. Prints the result
46
+ to the given stream.