fsevents 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of fsevents might be problematic. Click here for more details.

Files changed (322) hide show
  1. package/node_modules/ansi/History.md +7 -0
  2. package/node_modules/ansi/LICENSE +24 -0
  3. package/node_modules/ansi/lib/ansi.js +2 -2
  4. package/node_modules/ansi/package.json +15 -10
  5. package/node_modules/ansi-regex/package.json +1 -0
  6. package/node_modules/ansi-styles/package.json +1 -0
  7. package/node_modules/are-we-there-yet/.npmignore +2 -0
  8. package/node_modules/are-we-there-yet/index.js +20 -18
  9. package/node_modules/are-we-there-yet/package.json +15 -13
  10. package/node_modules/asn1/package.json +3 -1
  11. package/node_modules/assert-plus/README.md +50 -21
  12. package/node_modules/assert-plus/assert.js +168 -207
  13. package/node_modules/assert-plus/package.json +55 -15
  14. package/node_modules/async/README.md +86 -4
  15. package/node_modules/async/dist/async.js +4 -3
  16. package/node_modules/async/dist/async.min.js +1 -1
  17. package/node_modules/async/lib/async.js +4 -3
  18. package/node_modules/async/package.json +10 -10
  19. package/node_modules/aws-sign2/package.json +1 -0
  20. package/node_modules/aws4/.npmignore +3 -0
  21. package/node_modules/aws4/.tern-port +1 -0
  22. package/node_modules/{tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match → aws4}/.travis.yml +2 -0
  23. package/node_modules/{tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/LICENSE.md → aws4/LICENSE} +1 -3
  24. package/node_modules/aws4/README.md +510 -0
  25. package/node_modules/aws4/aws4.js +313 -0
  26. package/node_modules/aws4/example.js +372 -0
  27. package/node_modules/aws4/node_modules/lru-cache/.npmignore +1 -0
  28. package/node_modules/aws4/node_modules/lru-cache/.travis.yml +8 -0
  29. package/node_modules/aws4/node_modules/lru-cache/CONTRIBUTORS +14 -0
  30. package/node_modules/aws4/node_modules/lru-cache/README.md +137 -0
  31. package/node_modules/aws4/node_modules/lru-cache/lib/lru-cache.js +334 -0
  32. package/node_modules/aws4/node_modules/lru-cache/package.json +66 -0
  33. package/node_modules/aws4/node_modules/lru-cache/test/basic.js +396 -0
  34. package/node_modules/aws4/node_modules/lru-cache/test/foreach.js +120 -0
  35. package/node_modules/aws4/node_modules/lru-cache/test/memory-leak.js +51 -0
  36. package/node_modules/aws4/node_modules/lru-cache/test/serialize.js +216 -0
  37. package/node_modules/aws4/package.json +113 -0
  38. package/node_modules/bl/.travis.yml +5 -6
  39. package/node_modules/bl/bl.js +5 -0
  40. package/node_modules/bl/package.json +16 -13
  41. package/node_modules/bl/test/test.js +554 -6
  42. package/node_modules/block-stream/package.json +1 -0
  43. package/node_modules/boom/package.json +1 -0
  44. package/node_modules/caseless/package.json +1 -0
  45. package/node_modules/chalk/package.json +1 -0
  46. package/node_modules/combined-stream/package.json +1 -0
  47. package/node_modules/commander/package.json +1 -0
  48. package/node_modules/core-util-is/package.json +2 -2
  49. package/node_modules/cryptiles/package.json +1 -0
  50. package/node_modules/dashdash/README.md +70 -7
  51. package/node_modules/dashdash/etc/dashdash.bash_completion.in +388 -0
  52. package/node_modules/dashdash/lib/dashdash.js +202 -2
  53. package/node_modules/dashdash/package.json +12 -9
  54. package/node_modules/debug/.jshintrc +3 -0
  55. package/node_modules/debug/.npmignore +6 -0
  56. package/node_modules/debug/History.md +195 -0
  57. package/node_modules/debug/Makefile +36 -0
  58. package/node_modules/debug/Readme.md +86 -13
  59. package/node_modules/debug/bower.json +28 -0
  60. package/node_modules/debug/browser.js +168 -0
  61. package/node_modules/debug/component.json +19 -0
  62. package/node_modules/debug/debug.js +132 -72
  63. package/node_modules/debug/node.js +209 -0
  64. package/node_modules/debug/package.json +32 -22
  65. package/node_modules/deep-extend/README.md +51 -50
  66. package/node_modules/deep-extend/package.json +14 -16
  67. package/node_modules/delayed-stream/package.json +1 -0
  68. package/node_modules/delegates/History.md +6 -0
  69. package/node_modules/delegates/License +20 -0
  70. package/node_modules/delegates/package.json +17 -13
  71. package/node_modules/ecc-jsbn/package.json +3 -1
  72. package/node_modules/escape-string-regexp/package.json +2 -2
  73. package/node_modules/extend/package.json +1 -0
  74. package/node_modules/extsprintf/package.json +4 -2
  75. package/node_modules/forever-agent/package.json +1 -0
  76. package/node_modules/form-data/package.json +1 -0
  77. package/node_modules/fstream/package.json +1 -0
  78. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json +1 -0
  79. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/package.json +1 -0
  80. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/package.json +1 -0
  81. package/node_modules/fstream-ignore/node_modules/minimatch/package.json +1 -0
  82. package/node_modules/fstream-ignore/package.json +3 -1
  83. package/node_modules/gauge/package.json +14 -12
  84. package/node_modules/gauge/progress-bar.js +4 -5
  85. package/node_modules/gauge/test/progress-bar.js +1 -1
  86. package/node_modules/generate-function/package.json +1 -0
  87. package/node_modules/generate-object-property/package.json +1 -0
  88. package/node_modules/graceful-fs/README.md +17 -0
  89. package/node_modules/graceful-fs/graceful-fs.js +2 -0
  90. package/node_modules/graceful-fs/package.json +16 -11
  91. package/node_modules/graceful-readlink/package.json +1 -0
  92. package/node_modules/har-validator/README.md +45 -122
  93. package/node_modules/har-validator/package.json +16 -16
  94. package/node_modules/has-ansi/package.json +1 -0
  95. package/node_modules/has-unicode/README.md +6 -3
  96. package/node_modules/has-unicode/index.js +7 -3
  97. package/node_modules/has-unicode/package.json +15 -13
  98. package/node_modules/has-unicode/test/index.js +1 -1
  99. package/node_modules/hawk/README.md +634 -634
  100. package/node_modules/hawk/bower.json +24 -24
  101. package/node_modules/hawk/component.json +18 -18
  102. package/node_modules/hawk/dist/client.js +343 -340
  103. package/node_modules/hawk/example/usage.js +78 -78
  104. package/node_modules/hawk/lib/browser.js +637 -637
  105. package/node_modules/hawk/lib/client.js +369 -369
  106. package/node_modules/hawk/lib/crypto.js +126 -126
  107. package/node_modules/hawk/lib/index.js +15 -15
  108. package/node_modules/hawk/lib/server.js +548 -540
  109. package/node_modules/hawk/lib/utils.js +184 -164
  110. package/node_modules/hawk/package.json +9 -8
  111. package/node_modules/hawk/test/browser.js +1492 -1492
  112. package/node_modules/hawk/test/client.js +440 -440
  113. package/node_modules/hawk/test/crypto.js +70 -70
  114. package/node_modules/hawk/test/index.js +378 -378
  115. package/node_modules/hawk/test/readme.js +95 -95
  116. package/node_modules/hawk/test/server.js +1329 -1302
  117. package/node_modules/hawk/test/uri.js +838 -838
  118. package/node_modules/hawk/test/utils.js +149 -121
  119. package/node_modules/hoek/package.json +1 -0
  120. package/node_modules/http-signature/CHANGES.md +7 -0
  121. package/node_modules/http-signature/http_signing.md +71 -3
  122. package/node_modules/http-signature/lib/signer.js +5 -0
  123. package/node_modules/http-signature/package.json +13 -11
  124. package/node_modules/ini/package.json +3 -1
  125. package/node_modules/is-my-json-valid/formats.js +1 -1
  126. package/node_modules/is-my-json-valid/package.json +11 -10
  127. package/node_modules/is-property/package.json +1 -0
  128. package/node_modules/is-typedarray/package.json +3 -1
  129. package/node_modules/isarray/package.json +2 -2
  130. package/node_modules/isstream/package.json +1 -0
  131. package/node_modules/jodid25519/package.json +3 -1
  132. package/node_modules/jsbn/package.json +3 -1
  133. package/node_modules/json-schema/package.json +2 -1
  134. package/node_modules/json-stringify-safe/package.json +1 -0
  135. package/node_modules/jsonpointer/package.json +1 -0
  136. package/node_modules/jsprim/package.json +3 -1
  137. package/node_modules/lodash._basetostring/package.json +4 -4
  138. package/node_modules/lodash._createpadding/package.json +3 -2
  139. package/node_modules/lodash._root/LICENSE +22 -0
  140. package/node_modules/lodash._root/README.md +18 -0
  141. package/node_modules/lodash._root/index.js +53 -0
  142. package/node_modules/lodash._root/package.json +77 -0
  143. package/node_modules/lodash.pad/LICENSE +2 -2
  144. package/node_modules/lodash.pad/README.md +4 -6
  145. package/node_modules/lodash.pad/index.js +347 -15
  146. package/node_modules/lodash.pad/package.json +20 -34
  147. package/node_modules/lodash.padleft/package.json +3 -1
  148. package/node_modules/lodash.padright/package.json +3 -1
  149. package/node_modules/lodash.repeat/LICENSE +2 -2
  150. package/node_modules/lodash.repeat/README.md +4 -6
  151. package/node_modules/lodash.repeat/index.js +262 -11
  152. package/node_modules/lodash.repeat/package.json +21 -34
  153. package/node_modules/mime-db/package.json +2 -2
  154. package/node_modules/mime-types/package.json +2 -2
  155. package/node_modules/ms/.npmignore +5 -0
  156. package/node_modules/{deep-extend → ms}/LICENSE +2 -2
  157. package/node_modules/ms/README.md +35 -0
  158. package/node_modules/ms/index.js +125 -0
  159. package/node_modules/ms/package.json +56 -0
  160. package/node_modules/node-pre-gyp/CHANGELOG.md +8 -0
  161. package/node_modules/node-pre-gyp/LICENSE +27 -0
  162. package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +36 -0
  163. package/node_modules/node-pre-gyp/package.json +23 -22
  164. package/node_modules/node-uuid/package.json +1 -0
  165. package/node_modules/npmlog/package.json +18 -16
  166. package/node_modules/oauth-sign/index.js +2 -0
  167. package/node_modules/oauth-sign/package.json +10 -9
  168. package/node_modules/once/README.md +18 -0
  169. package/node_modules/once/once.js +8 -6
  170. package/node_modules/once/package.json +20 -12
  171. package/node_modules/pinkie/index.js +3 -3
  172. package/node_modules/pinkie/package.json +10 -9
  173. package/node_modules/pinkie/readme.md +1 -1
  174. package/node_modules/pinkie-promise/package.json +1 -0
  175. package/node_modules/process-nextick-args/package.json +2 -2
  176. package/node_modules/qs/.eslintrc +17 -0
  177. package/node_modules/qs/.travis.yml +66 -5
  178. package/node_modules/qs/CHANGELOG.md +86 -75
  179. package/node_modules/qs/README.md +85 -81
  180. package/node_modules/qs/bower.json +1 -1
  181. package/node_modules/qs/component.json +1 -1
  182. package/node_modules/qs/dist/qs.js +108 -177
  183. package/node_modules/qs/lib/index.js +1 -7
  184. package/node_modules/qs/lib/parse.js +26 -49
  185. package/node_modules/qs/lib/stringify.js +22 -46
  186. package/node_modules/qs/lib/utils.js +45 -73
  187. package/node_modules/qs/package.json +51 -28
  188. package/node_modules/qs/test/index.js +5 -0
  189. package/node_modules/qs/test/parse.js +236 -321
  190. package/node_modules/qs/test/stringify.js +139 -197
  191. package/node_modules/qs/test/utils.js +6 -25
  192. package/node_modules/rc/node_modules/minimist/package.json +1 -0
  193. package/node_modules/rc/package.json +1 -0
  194. package/node_modules/readable-stream/package.json +1 -0
  195. package/node_modules/request/CHANGELOG.md +16 -1
  196. package/node_modules/request/README.md +1 -1
  197. package/node_modules/request/lib/har.js +3 -2
  198. package/node_modules/request/lib/multipart.js +3 -0
  199. package/node_modules/request/lib/tunnel.js +0 -2
  200. package/node_modules/request/package.json +20 -17
  201. package/node_modules/request/request.js +50 -26
  202. package/node_modules/rimraf/README.md +1 -1
  203. package/node_modules/rimraf/node_modules/glob/README.md +2 -2
  204. package/node_modules/rimraf/node_modules/glob/glob.js +14 -1
  205. package/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/package.json +1 -0
  206. package/node_modules/rimraf/node_modules/glob/node_modules/inflight/package.json +1 -0
  207. package/node_modules/rimraf/node_modules/glob/node_modules/inherits/package.json +2 -1
  208. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json +1 -0
  209. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/package.json +1 -0
  210. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/package.json +1 -0
  211. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/package.json +1 -0
  212. package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/package.json +1 -0
  213. package/node_modules/rimraf/node_modules/glob/node_modules/once/package.json +1 -0
  214. package/node_modules/rimraf/node_modules/glob/node_modules/path-is-absolute/package.json +1 -0
  215. package/node_modules/rimraf/node_modules/glob/package.json +11 -11
  216. package/node_modules/rimraf/package.json +13 -12
  217. package/node_modules/semver/package.json +3 -1
  218. package/node_modules/sntp/package.json +1 -0
  219. package/node_modules/sshpk/.npmignore +1 -0
  220. package/node_modules/sshpk/bin/sshpk-sign +176 -0
  221. package/node_modules/sshpk/bin/sshpk-verify +166 -0
  222. package/node_modules/sshpk/lib/ed-compat.js +2 -0
  223. package/node_modules/sshpk/lib/key.js +6 -0
  224. package/node_modules/sshpk/man/man1/sshpk-conv.1 +135 -0
  225. package/node_modules/sshpk/man/man1/sshpk-sign.1 +81 -0
  226. package/node_modules/sshpk/man/man1/sshpk-verify.1 +68 -0
  227. package/node_modules/sshpk/package.json +18 -9
  228. package/node_modules/string_decoder/package.json +2 -2
  229. package/node_modules/stringstream/package.json +1 -0
  230. package/node_modules/strip-ansi/package.json +1 -0
  231. package/node_modules/strip-json-comments/package.json +1 -0
  232. package/node_modules/supports-color/package.json +1 -0
  233. package/node_modules/tar/package.json +1 -0
  234. package/node_modules/tar-pack/README.md +2 -2
  235. package/node_modules/tar-pack/package.json +25 -26
  236. package/node_modules/tough-cookie/package.json +1 -0
  237. package/node_modules/tunnel-agent/package.json +1 -0
  238. package/node_modules/tweetnacl/README.md +1 -1
  239. package/node_modules/tweetnacl/package.json +13 -11
  240. package/node_modules/uid-number/package.json +14 -13
  241. package/node_modules/uid-number/uid-number.js +9 -4
  242. package/node_modules/util-deprecate/package.json +2 -2
  243. package/node_modules/verror/package.json +1 -0
  244. package/node_modules/{tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy → wrappy}/package.json +3 -2
  245. package/node_modules/xtend/package.json +1 -0
  246. package/package.json +2 -2
  247. package/node_modules/are-we-there-yet/README.md~ +0 -183
  248. package/node_modules/bl/test/basic-test.js +0 -541
  249. package/node_modules/bl/test/sauce.js +0 -38
  250. package/node_modules/debug/index.js +0 -5
  251. package/node_modules/debug/lib/debug.js +0 -147
  252. package/node_modules/deep-extend/test/index.spec.js +0 -220
  253. package/node_modules/deep-extend/test/mocha.opts +0 -1
  254. package/node_modules/gauge/README.md~ +0 -161
  255. package/node_modules/has-unicode/README.md~ +0 -4
  256. package/node_modules/once/LICENSE +0 -27
  257. package/node_modules/once/test/once.js +0 -18
  258. package/node_modules/sshpk/node_modules/assert-plus/README.md +0 -155
  259. package/node_modules/sshpk/node_modules/assert-plus/assert.js +0 -206
  260. package/node_modules/sshpk/node_modules/assert-plus/package.json +0 -88
  261. package/node_modules/tar-pack/node_modules/rimraf/README.md +0 -43
  262. package/node_modules/tar-pack/node_modules/rimraf/bin.js +0 -40
  263. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/README.md +0 -359
  264. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/common.js +0 -226
  265. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/glob.js +0 -752
  266. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/.eslintrc +0 -17
  267. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/README.md +0 -37
  268. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/inflight.js +0 -44
  269. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/package.json +0 -58
  270. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/package.json +0 -67
  271. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/test.js +0 -97
  272. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inherits/LICENSE +0 -16
  273. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inherits/README.md +0 -42
  274. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inherits/inherits.js +0 -1
  275. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inherits/inherits_browser.js +0 -23
  276. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inherits/package.json +0 -58
  277. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inherits/test.js +0 -25
  278. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/README.md +0 -216
  279. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/minimatch.js +0 -912
  280. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/.npmignore +0 -3
  281. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/README.md +0 -122
  282. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/example.js +0 -8
  283. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/index.js +0 -191
  284. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.npmignore +0 -2
  285. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/Makefile +0 -6
  286. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/README.md +0 -89
  287. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/example.js +0 -5
  288. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/index.js +0 -50
  289. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json +0 -79
  290. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test/balanced.js +0 -84
  291. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/.travis.yml +0 -4
  292. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/LICENSE +0 -18
  293. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/README.markdown +0 -62
  294. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/example/map.js +0 -6
  295. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/index.js +0 -13
  296. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/package.json +0 -90
  297. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/test/map.js +0 -39
  298. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/package.json +0 -81
  299. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/package.json +0 -66
  300. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/README.md +0 -51
  301. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/LICENSE +0 -15
  302. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/README.md +0 -36
  303. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/test/basic.js +0 -51
  304. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/wrappy.js +0 -33
  305. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/once.js +0 -21
  306. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/package.json +0 -70
  307. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/path-is-absolute/index.js +0 -20
  308. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/path-is-absolute/package.json +0 -78
  309. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/path-is-absolute/readme.md +0 -51
  310. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/package.json +0 -79
  311. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/sync.js +0 -460
  312. package/node_modules/tar-pack/node_modules/rimraf/package.json +0 -69
  313. package/node_modules/tar-pack/node_modules/rimraf/rimraf.js +0 -333
  314. package/node_modules/uid-number/LICENCE +0 -25
  315. /package/node_modules/{sshpk/node_modules/assert-plus → assert-plus}/AUTHORS +0 -0
  316. /package/node_modules/{sshpk/node_modules/assert-plus → assert-plus}/CHANGES.md +0 -0
  317. /package/node_modules/{tar-pack/node_modules/rimraf → aws4/node_modules/lru-cache}/LICENSE +0 -0
  318. /package/node_modules/{tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight → uid-number}/LICENSE +0 -0
  319. /package/node_modules/{tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy → wrappy}/LICENSE +0 -0
  320. /package/node_modules/{tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy → wrappy}/README.md +0 -0
  321. /package/node_modules/{tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy → wrappy}/test/basic.js +0 -0
  322. /package/node_modules/{tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy → wrappy}/wrappy.js +0 -0
@@ -4,10 +4,11 @@
4
4
  */
5
5
  // vim: set ts=4 sts=4 sw=4 et:
6
6
 
7
- var p = console.log;
7
+ var assert = require('assert-plus');
8
8
  var format = require('util').format;
9
+ var fs = require('fs');
10
+ var path = require('path');
9
11
 
10
- var assert = require('assert-plus');
11
12
 
12
13
  var DEBUG = true;
13
14
  if (DEBUG) {
@@ -20,6 +21,13 @@ if (DEBUG) {
20
21
 
21
22
  // ---- internal support stuff
22
23
 
24
+ // Replace {{variable}} in `s` with the template data in `d`.
25
+ function renderTemplate(s, d) {
26
+ return s.replace(/{{([a-zA-Z]+)}}/g, function (match, key) {
27
+ return d.hasOwnProperty(key) ? d[key] : match;
28
+ });
29
+ }
30
+
23
31
  /**
24
32
  * Return a shallow copy of the given object;
25
33
  */
@@ -734,6 +742,186 @@ Parser.prototype.help = function help(config) {
734
742
  };
735
743
 
736
744
 
745
+ /**
746
+ * Return a string suitable for a Bash completion file for this tool.
747
+ *
748
+ * @param args.name {String} The tool name.
749
+ * @param args.specExtra {String} Optional. Extra Bash code content to add
750
+ * to the end of the "spec". Typically this is used to append Bash
751
+ * "complete_TYPE" functions for custom option types. See
752
+ * "examples/ddcompletion.js" for an example.
753
+ * @param args.argtypes {Array} Optional. Array of completion types for
754
+ * positional args (i.e. non-options). E.g.
755
+ * argtypes = ['fruit', 'veggie', 'file']
756
+ * will result in completion of fruits for the first arg, veggies for the
757
+ * second, and filenames for the third and subsequent positional args.
758
+ * If not given, positional args will use Bash's 'default' completion.
759
+ * See `specExtra` for providing Bash `complete_TYPE` functions, e.g.
760
+ * `complete_fruit` and `complete_veggie` in this example.
761
+ */
762
+ Parser.prototype.bashCompletion = function bashCompletion(args) {
763
+ assert.object(args, 'args');
764
+ assert.string(args.name, 'args.name');
765
+ assert.optionalString(args.specExtra, 'args.specExtra');
766
+ assert.optionalArrayOfString(args.argtypes, 'args.argtypes');
767
+
768
+ return bashCompletionFromOptions({
769
+ name: args.name,
770
+ specExtra: args.specExtra,
771
+ argtypes: args.argtypes,
772
+ options: this.options
773
+ });
774
+ };
775
+
776
+
777
+ // ---- Bash completion
778
+
779
+ const BASH_COMPLETION_TEMPLATE_PATH = path.join(
780
+ __dirname, '../etc/dashdash.bash_completion.in');
781
+
782
+ /**
783
+ * Return the Bash completion "spec" (the string value for the "{{spec}}"
784
+ * var in the "dashdash.bash_completion.in" template) for this tool.
785
+ *
786
+ * The "spec" is Bash code that defines the CLI options and subcmds for
787
+ * the template's completion code. It looks something like this:
788
+ *
789
+ * local cmd_shortopts="-J ..."
790
+ * local cmd_longopts="--help ..."
791
+ * local cmd_optargs="-p=tritonprofile ..."
792
+ *
793
+ * @param args.options {Array} The array of dashdash option specs.
794
+ * @param args.context {String} Optional. A context string for the "local cmd*"
795
+ * vars in the spec. By default it is the empty string. When used to
796
+ * scope for completion on a *sub-command* (e.g. for "git log" on a "git"
797
+ * tool), then it would have a value (e.g. "__log"). See
798
+ * <http://github.com/trentm/node-cmdln> Bash completion for details.
799
+ * @param opts.includeHidden {Boolean} Optional. Default false. By default
800
+ * hidden options and subcmds are "excluded". Here excluded means they
801
+ * won't be offered as a completion, but if used, their argument type
802
+ * will be completed. "Hidden" options and subcmds are ones with the
803
+ * `hidden: true` attribute to exclude them from default help output.
804
+ * @param args.argtypes {Array} Optional. Array of completion types for
805
+ * positional args (i.e. non-options). E.g.
806
+ * argtypes = ['fruit', 'veggie', 'file']
807
+ * will result in completion of fruits for the first arg, veggies for the
808
+ * second, and filenames for the third and subsequent positional args.
809
+ * If not given, positional args will use Bash's 'default' completion.
810
+ * See `specExtra` for providing Bash `complete_TYPE` functions, e.g.
811
+ * `complete_fruit` and `complete_veggie` in this example.
812
+ */
813
+ function bashCompletionSpecFromOptions(args) {
814
+ assert.object(args, 'args');
815
+ assert.object(args.options, 'args.options');
816
+ assert.optionalString(args.context, 'args.context');
817
+ assert.optionalBool(args.includeHidden, 'args.includeHidden');
818
+ assert.optionalArrayOfString(args.argtypes, 'args.argtypes');
819
+
820
+ var context = args.context || '';
821
+ var includeHidden = (args.includeHidden === undefined
822
+ ? false : args.includeHidden);
823
+
824
+ var spec = [];
825
+ var shortopts = [];
826
+ var longopts = [];
827
+ var optargs = [];
828
+ (args.options || []).forEach(function (o) {
829
+ if (o.group) {
830
+ // Skip group headers.
831
+ return;
832
+ }
833
+
834
+ var optNames = o.names || [o.name];
835
+ var optType = getOptionType(o.type);
836
+ if (optType.takesArg) {
837
+ var completionType = o.completionType ||
838
+ optType.completionType || o.type;
839
+ optNames.forEach(function (optName) {
840
+ if (optName.length === 1) {
841
+ if (includeHidden || !o.hidden) {
842
+ shortopts.push('-' + optName);
843
+ }
844
+ // Include even hidden options in `optargs` so that bash
845
+ // completion of its arg still works.
846
+ optargs.push('-' + optName + '=' + completionType);
847
+ } else {
848
+ if (includeHidden || !o.hidden) {
849
+ longopts.push('--' + optName);
850
+ }
851
+ optargs.push('--' + optName + '=' + completionType);
852
+ }
853
+ });
854
+ } else {
855
+ optNames.forEach(function (optName) {
856
+ if (includeHidden || !o.hidden) {
857
+ if (optName.length === 1) {
858
+ shortopts.push('-' + optName);
859
+ } else {
860
+ longopts.push('--' + optName);
861
+ }
862
+ }
863
+ });
864
+ }
865
+ });
866
+
867
+ spec.push(format('local cmd%s_shortopts="%s"',
868
+ context, shortopts.sort().join(' ')));
869
+ spec.push(format('local cmd%s_longopts="%s"',
870
+ context, longopts.sort().join(' ')));
871
+ spec.push(format('local cmd%s_optargs="%s"',
872
+ context, optargs.sort().join(' ')));
873
+ if (args.argtypes) {
874
+ spec.push(format('local cmd%s_argtypes="%s"',
875
+ context, args.argtypes.join(' ')));
876
+ }
877
+ return spec.join('\n');
878
+ }
879
+
880
+
881
+ /**
882
+ * Return a string suitable for a Bash completion file for this tool.
883
+ *
884
+ * @param args.name {String} The tool name.
885
+ * @param args.options {Array} The array of dashdash option specs.
886
+ * @param args.specExtra {String} Optional. Extra Bash code content to add
887
+ * to the end of the "spec". Typically this is used to append Bash
888
+ * "complete_TYPE" functions for custom option types. See
889
+ * "examples/ddcompletion.js" for an example.
890
+ * @param args.argtypes {Array} Optional. Array of completion types for
891
+ * positional args (i.e. non-options). E.g.
892
+ * argtypes = ['fruit', 'veggie', 'file']
893
+ * will result in completion of fruits for the first arg, veggies for the
894
+ * second, and filenames for the third and subsequent positional args.
895
+ * If not given, positional args will use Bash's 'default' completion.
896
+ * See `specExtra` for providing Bash `complete_TYPE` functions, e.g.
897
+ * `complete_fruit` and `complete_veggie` in this example.
898
+ */
899
+ function bashCompletionFromOptions(args) {
900
+ assert.object(args, 'args');
901
+ assert.object(args.options, 'args.options');
902
+ assert.string(args.name, 'args.name');
903
+ assert.optionalString(args.specExtra, 'args.specExtra');
904
+ assert.optionalArrayOfString(args.argtypes, 'args.argtypes');
905
+
906
+ // Gather template data.
907
+ var data = {
908
+ name: args.name,
909
+ date: new Date(),
910
+ spec: bashCompletionSpecFromOptions({
911
+ options: args.options,
912
+ argtypes: args.argtypes
913
+ }),
914
+ };
915
+ if (args.specExtra) {
916
+ data.spec += '\n\n' + args.specExtra;
917
+ }
918
+
919
+ // Render template.
920
+ var template = fs.readFileSync(BASH_COMPLETION_TEMPLATE_PATH, 'utf8');
921
+ return renderTemplate(template, data);
922
+ }
923
+
924
+
737
925
 
738
926
  // ---- exports
739
927
 
@@ -805,11 +993,23 @@ function addOptionType(optionType) {
805
993
  }
806
994
 
807
995
 
996
+ function getOptionType(name) {
997
+ assert.string(name, 'name');
998
+ return optionTypes[name];
999
+ }
1000
+
1001
+
808
1002
  module.exports = {
809
1003
  createParser: createParser,
810
1004
  Parser: Parser,
811
1005
  parse: parse,
812
1006
  addOptionType: addOptionType,
1007
+ getOptionType: getOptionType,
1008
+
1009
+ // Bash completion-related exports
1010
+ BASH_COMPLETION_TEMPLATE_PATH: BASH_COMPLETION_TEMPLATE_PATH,
1011
+ bashCompletionFromOptions: bashCompletionFromOptions,
1012
+ bashCompletionSpecFromOptions: bashCompletionSpecFromOptions,
813
1013
 
814
1014
  // Export the parseFoo parsers because they might be useful as primitives
815
1015
  // for custom option types.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "_from": "dashdash@>=1.10.1 <2.0.0",
3
- "_id": "dashdash@1.11.0",
3
+ "_id": "dashdash@1.12.2",
4
4
  "_location": "/dashdash",
5
5
  "_npmUser": {
6
6
  "email": "trentm@gmail.com",
@@ -11,8 +11,9 @@
11
11
  "_requiredBy": [
12
12
  "/sshpk"
13
13
  ],
14
- "_resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.11.0.tgz",
15
- "_shasum": "babd3892d71ab403948c6a2b9d65f7de1ace8e92",
14
+ "_resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.12.2.tgz",
15
+ "_shasum": "1c6f70588498d047b8cd5777b32ba85a5e25be36",
16
+ "_shrinkwrap": null,
16
17
  "author": {
17
18
  "email": "trentm@gmail.com",
18
19
  "name": "Trent Mick",
@@ -41,7 +42,7 @@
41
42
  }
42
43
  ],
43
44
  "dependencies": {
44
- "assert-plus": "0.1.x"
45
+ "assert-plus": "^0.2.0"
45
46
  },
46
47
  "description": "A light, featureful and explicit option parsing library.",
47
48
  "devDependencies": {
@@ -49,18 +50,20 @@
49
50
  },
50
51
  "directories": {},
51
52
  "dist": {
52
- "shasum": "babd3892d71ab403948c6a2b9d65f7de1ace8e92",
53
- "tarball": "http://registry.npmjs.org/dashdash/-/dashdash-1.11.0.tgz"
53
+ "shasum": "1c6f70588498d047b8cd5777b32ba85a5e25be36",
54
+ "tarball": "http://registry.npmjs.org/dashdash/-/dashdash-1.12.2.tgz"
54
55
  },
55
56
  "engines": {
56
57
  "node": ">=0.8"
57
58
  },
58
- "gitHead": "c0f126a9ec1c8e75ef904a68b1f3b4b7fc1a86ad",
59
+ "gitHead": "d4248f21da0b30bd89c88ccee9bf6eac0e59f9f6",
59
60
  "homepage": "https://github.com/trentm/node-dashdash",
60
61
  "keywords": [
61
62
  "args",
63
+ "bash",
62
64
  "cli",
63
65
  "command",
66
+ "completion",
64
67
  "option",
65
68
  "parser",
66
69
  "parsing"
@@ -75,7 +78,7 @@
75
78
  ],
76
79
  "name": "dashdash",
77
80
  "optionalDependencies": {},
78
- "readme": "A light, featureful and explicit option parsing library for node.js.\n\n[Why another one? See below](#why). tl;dr: The others I've tried are one of\ntoo loosey goosey (not explicit), too big/too many deps, or ill specified.\nYMMV.\n\nFollow <a href=\"https://twitter.com/intent/user?screen_name=trentmick\" target=\"_blank\">@trentmick</a>\nfor updates to node-dashdash.\n\n# Install\n\n npm install dashdash\n\n\n# Usage\n\n```javascript\nvar dashdash = require('dashdash');\n\n// Specify the options. Minimally `name` (or `names`) and `type`\n// must be given for each.\nvar options = [\n {\n // `names` or a single `name`. First element is the `opts.KEY`.\n names: ['help', 'h'],\n // See \"Option specs\" below for types.\n type: 'bool',\n help: 'Print this help and exit.'\n }\n];\n\n// Shortcut form. As called it infers `process.argv`. See below for\n// the longer form to use methods like `.help()` on the Parser object.\nvar opts = dashdash.parse({options: options});\n\nconsole.log(\"opts:\", opts);\nconsole.log(\"args:\", opts._args);\n```\n\n\n# Longer Example\n\nA more realistic [starter script \"foo.js\"](./examples/foo.js) is as follows.\nThis also shows using `parser.help()` for formatted option help.\n\n```javascript\nvar dashdash = require('./lib/dashdash');\n\nvar options = [\n {\n name: 'version',\n type: 'bool',\n help: 'Print tool version and exit.'\n },\n {\n names: ['help', 'h'],\n type: 'bool',\n help: 'Print this help and exit.'\n },\n {\n names: ['verbose', 'v'],\n type: 'arrayOfBool',\n help: 'Verbose output. Use multiple times for more verbose.'\n },\n {\n names: ['file', 'f'],\n type: 'string',\n help: 'File to process',\n helpArg: 'FILE'\n }\n];\n\nvar parser = dashdash.createParser({options: options});\ntry {\n var opts = parser.parse(process.argv);\n} catch (e) {\n console.error('foo: error: %s', e.message);\n process.exit(1);\n}\n\nconsole.log(\"# opts:\", opts);\nconsole.log(\"# args:\", opts._args);\n\n// Use `parser.help()` for formatted options help.\nif (opts.help) {\n var help = parser.help({includeEnv: true}).trimRight();\n console.log('usage: node foo.js [OPTIONS]\\n'\n + 'options:\\n'\n + help);\n process.exit(0);\n}\n\n// ...\n```\n\n\nSome example output from this script (foo.js):\n\n```\n$ node foo.js -h\n# opts: { help: true,\n _order: [ { name: 'help', value: true, from: 'argv' } ],\n _args: [] }\n# args: []\nusage: node foo.js [OPTIONS]\noptions:\n --version Print tool version and exit.\n -h, --help Print this help and exit.\n -v, --verbose Verbose output. Use multiple times for more verbose.\n -f FILE, --file=FILE File to process\n\n$ node foo.js -v\n# opts: { verbose: [ true ],\n _order: [ { name: 'verbose', value: true, from: 'argv' } ],\n _args: [] }\n# args: []\n\n$ node foo.js --version arg1\n# opts: { version: true,\n _order: [ { name: 'version', value: true, from: 'argv' } ],\n _args: [ 'arg1' ] }\n# args: [ 'arg1' ]\n\n$ node foo.js -f bar.txt\n# opts: { file: 'bar.txt',\n _order: [ { name: 'file', value: 'bar.txt', from: 'argv' } ],\n _args: [] }\n# args: []\n\n$ node foo.js -vvv --file=blah\n# opts: { verbose: [ true, true, true ],\n file: 'blah',\n _order:\n [ { name: 'verbose', value: true, from: 'argv' },\n { name: 'verbose', value: true, from: 'argv' },\n { name: 'verbose', value: true, from: 'argv' },\n { name: 'file', value: 'blah', from: 'argv' } ],\n _args: [] }\n# args: []\n```\n\n\nSee the [\"examples\"](examples/) dir for a number of starter examples using\nsome of dashdash's features.\n\n\n# Environment variable integration\n\nIf you want to allow environment variables to specify options to your tool,\ndashdash makes this easy. We can change the 'verbose' option in the example\nabove to include an 'env' field:\n\n```javascript\n {\n names: ['verbose', 'v'],\n type: 'arrayOfBool',\n env: 'FOO_VERBOSE', // <--- add this line\n help: 'Verbose output. Use multiple times for more verbose.'\n },\n```\n\nthen the **\"FOO_VERBOSE\" environment variable** can be used to set this\noption:\n\n```shell\n$ FOO_VERBOSE=1 node foo.js\n# opts: { verbose: [ true ],\n _order: [ { name: 'verbose', value: true, from: 'env' } ],\n _args: [] }\n# args: []\n```\n\nBoolean options will interpret the empty string as unset, '0' as false\nand anything else as true.\n\n```shell\n$ FOO_VERBOSE= node examples/foo.js # not set\n# opts: { _order: [], _args: [] }\n# args: []\n\n$ FOO_VERBOSE=0 node examples/foo.js # '0' is false\n# opts: { verbose: [ false ],\n _order: [ { key: 'verbose', value: false, from: 'env' } ],\n _args: [] }\n# args: []\n\n$ FOO_VERBOSE=1 node examples/foo.js # true\n# opts: { verbose: [ true ],\n _order: [ { key: 'verbose', value: true, from: 'env' } ],\n _args: [] }\n# args: []\n\n$ FOO_VERBOSE=boogabooga node examples/foo.js # true\n# opts: { verbose: [ true ],\n _order: [ { key: 'verbose', value: true, from: 'env' } ],\n _args: [] }\n# args: []\n```\n\nNon-booleans can be used as well. Strings:\n\n```shell\n$ FOO_FILE=data.txt node examples/foo.js\n# opts: { file: 'data.txt',\n _order: [ { key: 'file', value: 'data.txt', from: 'env' } ],\n _args: [] }\n# args: []\n```\n\nNumbers:\n\n```shell\n$ FOO_TIMEOUT=5000 node examples/foo.js\n# opts: { timeout: 5000,\n _order: [ { key: 'timeout', value: 5000, from: 'env' } ],\n _args: [] }\n# args: []\n\n$ FOO_TIMEOUT=blarg node examples/foo.js\nfoo: error: arg for \"FOO_TIMEOUT\" is not a positive integer: \"blarg\"\n```\n\nWith the `includeEnv: true` config to `parser.help()` the environment\nvariable can also be included in **help output**:\n\n usage: node foo.js [OPTIONS]\n options:\n --version Print tool version and exit.\n -h, --help Print this help and exit.\n -v, --verbose Verbose output. Use multiple times for more verbose.\n Environment: FOO_VERBOSE=1\n -f FILE, --file=FILE File to process\n\n\n# Parser config\n\nParser construction (i.e. `dashdash.createParser(CONFIG)`) takes the\nfollowing fields:\n\n- `options` (Array of option specs). Required. See the\n [Option specs](#option-specs) section below.\n\n- `interspersed` (Boolean). Optional. Default is true. If true this allows\n interspersed arguments and options. I.e.:\n\n node ./tool.js -v arg1 arg2 -h # '-h' is after interspersed args\n\n Set it to false to have '-h' **not** get parsed as an option in the above\n example.\n\n- `allowUnknown` (Boolean). Optional. Default is false. If false, this causes\n unknown arguments to throw an error. I.e.:\n\n node ./tool.js -v arg1 --afe8asefksjefhas\n\n Set it to true to treat the unknown option as a positional\n argument.\n\n **Caveat**: When a shortopt group, such as `-xaz` contains a mix of\n known and unknown options, the *entire* group is passed through\n unmolested as a positional argument.\n\n Consider if you have a known short option `-a`, and parse the\n following command line:\n\n node ./tool.js -xaz\n\n where `-x` and `-z` are unknown. There are multiple ways to\n interpret this:\n\n 1. `-x` takes a value: `{x: 'az'}`\n 2. `-x` and `-z` are both booleans: `{x:true,a:true,z:true}`\n\n Since dashdash does not know what `-x` and `-z` are, it can't know\n if you'd prefer to receive `{a:true,_args:['-x','-z']}` or\n `{x:'az'}`, or `{_args:['-xaz']}`. Leaving the positional arg unprocessed\n is the easiest mistake for the user to recover from.\n\n\n# Option specs\n\nExample using all fields:\n\n```javascript\n{\n names: ['file', 'f'], // Required (or `name`).\n type: 'string', // Required.\n env: 'MYTOOL_FILE',\n help: 'Config file to load before running \"mytool\"',\n helpArg: 'PATH',\n helpWrap: false,\n default: path.resolve(process.env.HOME, '.mytoolrc')\n}\n```\n\nEach option spec in the `options` array must/can have the following fields:\n\n- `name` (String) or `names` (Array). Required. These give the option name\n and aliases. The first name (if more than one given) is the key for the\n parsed `opts` object.\n\n- `type` (String). Required. One of:\n\n - bool\n - string\n - number\n - integer\n - positiveInteger\n - date (epoch seconds, e.g. 1396031701, or ISO 8601 format\n `YYYY-MM-DD[THH:MM:SS[.sss][Z]]`, e.g. \"2014-03-28T18:35:01.489Z\")\n - arrayOfBool\n - arrayOfString\n - arrayOfNumber\n - arrayOfInteger\n - arrayOfPositiveInteger\n - arrayOfDate\n\n FWIW, these names attempt to match with asserts on\n [assert-plus](https://github.com/mcavage/node-assert-plus).\n You can add your own custom option types with `dashdash.addOptionType`.\n See below.\n\n- `env` (String or Array of String). Optional. An environment variable name\n (or names) that can be used as a fallback for this option. For example,\n given a \"foo.js\" like this:\n\n var options = [{names: ['dry-run', 'n'], env: 'FOO_DRY_RUN'}];\n var opts = dashdash.parse({options: options});\n\n Both `node foo.js --dry-run` and `FOO_DRY_RUN=1 node foo.js` would result\n in `opts.dry_run = true`.\n\n An environment variable is only used as a fallback, i.e. it is ignored if\n the associated option is given in `argv`.\n\n- `help` (String). Optional. Used for `parser.help()` output.\n\n- `helpArg` (String). Optional. Used in help output as the placeholder for\n the option argument, e.g. the \"PATH\" in:\n\n ...\n -f PATH, --file=PATH File to process\n ...\n\n- `helpWrap` (Boolean). Optional, default true. Set this to `false` to have\n that option's `help` *not* be text wrapped in `<parser>.help()` output.\n\n- `default`. Optional. A default value used for this option, if the\n option isn't specified in argv.\n\n- `hidden` (Boolean). Optional, default false. If true, help output will not\n include this option.\n\n\n# Option group headings\n\nYou can add headings between option specs in the `options` array. To do so,\nsimply add an object with only a `group` property -- the string to print as\nthe heading for the subsequent options in the array. For example:\n\n```javascript\nvar options = [\n {\n group: 'Armament Options'\n },\n {\n names: [ 'weapon', 'w' ],\n type: 'string'\n },\n {\n group: 'General Options'\n },\n {\n names: [ 'help', 'h' ],\n type: 'bool'\n }\n];\n...\n```\n\nNote: You can use an empty string, `{group: ''}`, to get a blank line in help\noutput between groups of options.\n\n\n# Help config\n\nThe `parser.help(...)` function is configurable as follows:\n\n Options:\n Armament Options:\n ^^ -w WEAPON, --weapon=WEAPON Weapon with which to crush. One of: |\n / sword, spear, maul |\n / General Options: |\n / -h, --help Print this help and exit. |\n / ^^^^ ^ |\n \\ `-- indent `-- helpCol maxCol ---'\n `-- headingIndent\n\n- `indent` (Number or String). Default 4. Set to a number (for that many\n spaces) or a string for the literal indent.\n- `headingIndent` (Number or String). Default half length of `indent`. Set to\n a number (for that many spaces) or a string for the literal indent. This\n indent applies to group heading lines, between normal option lines.\n- `nameSort` (String). Default is 'length'. By default the names are\n sorted to put the short opts first (i.e. '-h, --help' preferred\n to '--help, -h'). Set to 'none' to not do this sorting.\n- `maxCol` (Number). Default 80. Note that reflow is just done on whitespace\n so a long token in the option help can overflow maxCol.\n- `helpCol` (Number). If not set a reasonable value will be determined\n between `minHelpCol` and `maxHelpCol`.\n- `minHelpCol` (Number). Default 20.\n- `maxHelpCol` (Number). Default 40.\n- `helpWrap` (Boolean). Default true. Set to `false` to have option `help`\n strings *not* be textwrapped to the helpCol..maxCol range.\n- `includeEnv` (Boolean). Default false. If the option has associated\n environment variables (via the `env` option spec attribute), then\n append mentioned of those envvars to the help string.\n- `includeDefault` (Boolean). Default false. If the option has a default value\n (via the `default` option spec attribute, or a default on the option's type),\n then a \"Default: VALUE\" string will be appended to the help string.\n\n\n# Custom option types\n\nDashdash includes a good starter set of option types that it will parse for\nyou. However, you can add your own via:\n\n var dashdash = require('dashdash');\n dashdash.addOptionType({\n name: '...',\n takesArg: true,\n helpArg: '...',\n parseArg: function (option, optstr, arg) {\n ...\n },\n array: false, // optional\n arrayFlatten: false, // optional\n default: ... // optional\n });\n\nFor example, a simple option type that accepts 'yes', 'y', 'no' or 'n' as\na boolean argument would look like:\n\n var dashdash = require('dashdash');\n\n function parseYesNo(option, optstr, arg) {\n var argLower = arg.toLowerCase()\n if (~['yes', 'y'].indexOf(argLower)) {\n return true;\n } else if (~['no', 'n'].indexOf(argLower)) {\n return false;\n } else {\n throw new Error(format(\n 'arg for \"%s\" is not \"yes\" or \"no\": \"%s\"',\n optstr, arg));\n }\n }\n\n dashdash.addOptionType({\n name: 'yesno'\n takesArg: true,\n helpArg: '<yes|no>',\n parseArg: parseYesNo\n });\n\n var options = {\n {names: ['answer', 'a'], type: 'yesno'}\n };\n var opts = dashdash.parse({options: options});\n\nSee \"examples/custom-option-\\*.js\" for other examples.\nSee the `addOptionType` block comment in \"lib/dashdash.js\" for more details.\nPlease let me know [on twitter](https://twitter.com/trentmick)\nor [with an issue](https://github.com/trentm/node-dashdash/issues/new) if you\nwrite a generally useful one.\n\n\n\n# Why\n\nWhy another node.js option parsing lib?\n\n- `nopt` really is just for \"tools like npm\". Implicit opts (e.g. '--no-foo'\n works for every '--foo'). Can't disable abbreviated opts. Can't do multiple\n usages of same opt, e.g. '-vvv' (I think). Can't do grouped short opts.\n\n- `optimist` has surprise interpretation of options (at least to me).\n Implicit opts mean ambiguities and poor error handling for fat-fingering.\n `process.exit` calls makes it hard to use as a libary.\n\n- `optparse` Incomplete docs. Is this an attempted clone of Python's `optparse`.\n Not clear. Some divergence. `parser.on(\"name\", ...)` API is weird.\n\n- `argparse` Dep on underscore. No thanks just for option processing.\n `find lib | wc -l` -> `26`. Overkill.\n Argparse is a bit different anyway. Not sure I want that.\n\n- `posix-getopt` No type validation. Though that isn't a killer. AFAIK can't\n have a long opt without a short alias. I.e. no `getopt_long` semantics.\n Also, no whizbang features like generated help output.\n\n- [\"commander.js\"](https://github.com/visionmedia/commander.js): I wrote\n [a critique](http://trentm.com/2014/01/a-critique-of-commander-for-nodejs.html)\n a while back. It seems fine, but last I checked had\n [an outstanding bug](https://github.com/visionmedia/commander.js/pull/121)\n that would prevent me from using it.\n\n\n# License\n\nMIT. See LICENSE.txt.\n",
81
+ "readme": "A light, featureful and explicit option parsing library for node.js.\n\n[Why another one? See below](#why). tl;dr: The others I've tried are one of\ntoo loosey goosey (not explicit), too big/too many deps, or ill specified.\nYMMV.\n\nFollow <a href=\"https://twitter.com/intent/user?screen_name=trentmick\" target=\"_blank\">@trentmick</a>\nfor updates to node-dashdash.\n\n# Install\n\n npm install dashdash\n\n\n# Usage\n\n```javascript\nvar dashdash = require('dashdash');\n\n// Specify the options. Minimally `name` (or `names`) and `type`\n// must be given for each.\nvar options = [\n {\n // `names` or a single `name`. First element is the `opts.KEY`.\n names: ['help', 'h'],\n // See \"Option specs\" below for types.\n type: 'bool',\n help: 'Print this help and exit.'\n }\n];\n\n// Shortcut form. As called it infers `process.argv`. See below for\n// the longer form to use methods like `.help()` on the Parser object.\nvar opts = dashdash.parse({options: options});\n\nconsole.log(\"opts:\", opts);\nconsole.log(\"args:\", opts._args);\n```\n\n\n# Longer Example\n\nA more realistic [starter script \"foo.js\"](./examples/foo.js) is as follows.\nThis also shows using `parser.help()` for formatted option help.\n\n```javascript\nvar dashdash = require('./lib/dashdash');\n\nvar options = [\n {\n name: 'version',\n type: 'bool',\n help: 'Print tool version and exit.'\n },\n {\n names: ['help', 'h'],\n type: 'bool',\n help: 'Print this help and exit.'\n },\n {\n names: ['verbose', 'v'],\n type: 'arrayOfBool',\n help: 'Verbose output. Use multiple times for more verbose.'\n },\n {\n names: ['file', 'f'],\n type: 'string',\n help: 'File to process',\n helpArg: 'FILE'\n }\n];\n\nvar parser = dashdash.createParser({options: options});\ntry {\n var opts = parser.parse(process.argv);\n} catch (e) {\n console.error('foo: error: %s', e.message);\n process.exit(1);\n}\n\nconsole.log(\"# opts:\", opts);\nconsole.log(\"# args:\", opts._args);\n\n// Use `parser.help()` for formatted options help.\nif (opts.help) {\n var help = parser.help({includeEnv: true}).trimRight();\n console.log('usage: node foo.js [OPTIONS]\\n'\n + 'options:\\n'\n + help);\n process.exit(0);\n}\n\n// ...\n```\n\n\nSome example output from this script (foo.js):\n\n```\n$ node foo.js -h\n# opts: { help: true,\n _order: [ { name: 'help', value: true, from: 'argv' } ],\n _args: [] }\n# args: []\nusage: node foo.js [OPTIONS]\noptions:\n --version Print tool version and exit.\n -h, --help Print this help and exit.\n -v, --verbose Verbose output. Use multiple times for more verbose.\n -f FILE, --file=FILE File to process\n\n$ node foo.js -v\n# opts: { verbose: [ true ],\n _order: [ { name: 'verbose', value: true, from: 'argv' } ],\n _args: [] }\n# args: []\n\n$ node foo.js --version arg1\n# opts: { version: true,\n _order: [ { name: 'version', value: true, from: 'argv' } ],\n _args: [ 'arg1' ] }\n# args: [ 'arg1' ]\n\n$ node foo.js -f bar.txt\n# opts: { file: 'bar.txt',\n _order: [ { name: 'file', value: 'bar.txt', from: 'argv' } ],\n _args: [] }\n# args: []\n\n$ node foo.js -vvv --file=blah\n# opts: { verbose: [ true, true, true ],\n file: 'blah',\n _order:\n [ { name: 'verbose', value: true, from: 'argv' },\n { name: 'verbose', value: true, from: 'argv' },\n { name: 'verbose', value: true, from: 'argv' },\n { name: 'file', value: 'blah', from: 'argv' } ],\n _args: [] }\n# args: []\n```\n\n\nSee the [\"examples\"](examples/) dir for a number of starter examples using\nsome of dashdash's features.\n\n\n# Environment variable integration\n\nIf you want to allow environment variables to specify options to your tool,\ndashdash makes this easy. We can change the 'verbose' option in the example\nabove to include an 'env' field:\n\n```javascript\n {\n names: ['verbose', 'v'],\n type: 'arrayOfBool',\n env: 'FOO_VERBOSE', // <--- add this line\n help: 'Verbose output. Use multiple times for more verbose.'\n },\n```\n\nthen the **\"FOO_VERBOSE\" environment variable** can be used to set this\noption:\n\n```shell\n$ FOO_VERBOSE=1 node foo.js\n# opts: { verbose: [ true ],\n _order: [ { name: 'verbose', value: true, from: 'env' } ],\n _args: [] }\n# args: []\n```\n\nBoolean options will interpret the empty string as unset, '0' as false\nand anything else as true.\n\n```shell\n$ FOO_VERBOSE= node examples/foo.js # not set\n# opts: { _order: [], _args: [] }\n# args: []\n\n$ FOO_VERBOSE=0 node examples/foo.js # '0' is false\n# opts: { verbose: [ false ],\n _order: [ { key: 'verbose', value: false, from: 'env' } ],\n _args: [] }\n# args: []\n\n$ FOO_VERBOSE=1 node examples/foo.js # true\n# opts: { verbose: [ true ],\n _order: [ { key: 'verbose', value: true, from: 'env' } ],\n _args: [] }\n# args: []\n\n$ FOO_VERBOSE=boogabooga node examples/foo.js # true\n# opts: { verbose: [ true ],\n _order: [ { key: 'verbose', value: true, from: 'env' } ],\n _args: [] }\n# args: []\n```\n\nNon-booleans can be used as well. Strings:\n\n```shell\n$ FOO_FILE=data.txt node examples/foo.js\n# opts: { file: 'data.txt',\n _order: [ { key: 'file', value: 'data.txt', from: 'env' } ],\n _args: [] }\n# args: []\n```\n\nNumbers:\n\n```shell\n$ FOO_TIMEOUT=5000 node examples/foo.js\n# opts: { timeout: 5000,\n _order: [ { key: 'timeout', value: 5000, from: 'env' } ],\n _args: [] }\n# args: []\n\n$ FOO_TIMEOUT=blarg node examples/foo.js\nfoo: error: arg for \"FOO_TIMEOUT\" is not a positive integer: \"blarg\"\n```\n\nWith the `includeEnv: true` config to `parser.help()` the environment\nvariable can also be included in **help output**:\n\n usage: node foo.js [OPTIONS]\n options:\n --version Print tool version and exit.\n -h, --help Print this help and exit.\n -v, --verbose Verbose output. Use multiple times for more verbose.\n Environment: FOO_VERBOSE=1\n -f FILE, --file=FILE File to process\n\n\n# Bash completion\n\nDashdash provides a simple way to create a Bash completion file that you\ncan place in your \"bash_completion.d\" directory -- sometimes that is\n\"/usr/local/etc/bash_completion.d/\"). Features:\n\n- Support for short and long opts\n- Support for knowing which options take arguments\n- Support for subcommands (e.g. 'git log <TAB>' to show just options for the\n log subcommand). See\n [node-cmdln](https://github.com/trentm/node-cmdln#bash-completion) for\n how to integrate that.\n- Does the right thing with \"--\" to stop options.\n- Custom optarg and arg types for custom completions.\n\nDashdash will return bash completion file content given a parser instance:\n\n var parser = dashdash.createParser({options: options});\n console.log( parser.bashCompletion({name: 'mycli'}) );\n\nor directly from a `options` array of options specs:\n\n var code = dashdash.bashCompletionFromOptions({\n name: 'mycli',\n options: OPTIONS\n });\n\nWrite that content to \"/usr/local/etc/bash_completion.d/mycli\" and you will\nhave Bash completions for `mycli`. Alternatively you can write it to\nany file (e.g. \"~/.bashrc\") and source it.\n\nYou could add a `--completion` hidden option to your tool that emits the\ncompletion content and document for your users to call that to install\nBash completions.\n\nSee [examples/ddcompletion.js](examples/ddcompletion.js) for a complete\nexample, including how one can define bash functions for completion of custom\noption types. Also see [node-cmdln](https://github.com/trentm/node-cmdln) for\nhow it uses this for Bash completion for full multi-subcommand tools.\n\n- TODO: document specExtra\n- TODO: document includeHidden\n- TODO: document custom types, `function complete\\_FOO` guide, completionType\n- TODO: document argtypes\n\n\n# Parser config\n\nParser construction (i.e. `dashdash.createParser(CONFIG)`) takes the\nfollowing fields:\n\n- `options` (Array of option specs). Required. See the\n [Option specs](#option-specs) section below.\n\n- `interspersed` (Boolean). Optional. Default is true. If true this allows\n interspersed arguments and options. I.e.:\n\n node ./tool.js -v arg1 arg2 -h # '-h' is after interspersed args\n\n Set it to false to have '-h' **not** get parsed as an option in the above\n example.\n\n- `allowUnknown` (Boolean). Optional. Default is false. If false, this causes\n unknown arguments to throw an error. I.e.:\n\n node ./tool.js -v arg1 --afe8asefksjefhas\n\n Set it to true to treat the unknown option as a positional\n argument.\n\n **Caveat**: When a shortopt group, such as `-xaz` contains a mix of\n known and unknown options, the *entire* group is passed through\n unmolested as a positional argument.\n\n Consider if you have a known short option `-a`, and parse the\n following command line:\n\n node ./tool.js -xaz\n\n where `-x` and `-z` are unknown. There are multiple ways to\n interpret this:\n\n 1. `-x` takes a value: `{x: 'az'}`\n 2. `-x` and `-z` are both booleans: `{x:true,a:true,z:true}`\n\n Since dashdash does not know what `-x` and `-z` are, it can't know\n if you'd prefer to receive `{a:true,_args:['-x','-z']}` or\n `{x:'az'}`, or `{_args:['-xaz']}`. Leaving the positional arg unprocessed\n is the easiest mistake for the user to recover from.\n\n\n# Option specs\n\nExample using all fields (required fields are noted):\n\n```javascript\n{\n names: ['file', 'f'], // Required (one of `names` or `name`).\n type: 'string', // Required.\n completionType: 'filename',\n env: 'MYTOOL_FILE',\n help: 'Config file to load before running \"mytool\"',\n helpArg: 'PATH',\n helpWrap: false,\n default: path.resolve(process.env.HOME, '.mytoolrc')\n}\n```\n\nEach option spec in the `options` array must/can have the following fields:\n\n- `name` (String) or `names` (Array). Required. These give the option name\n and aliases. The first name (if more than one given) is the key for the\n parsed `opts` object.\n\n- `type` (String). Required. One of:\n\n - bool\n - string\n - number\n - integer\n - positiveInteger\n - date (epoch seconds, e.g. 1396031701, or ISO 8601 format\n `YYYY-MM-DD[THH:MM:SS[.sss][Z]]`, e.g. \"2014-03-28T18:35:01.489Z\")\n - arrayOfBool\n - arrayOfString\n - arrayOfNumber\n - arrayOfInteger\n - arrayOfPositiveInteger\n - arrayOfDate\n\n FWIW, these names attempt to match with asserts on\n [assert-plus](https://github.com/mcavage/node-assert-plus).\n You can add your own custom option types with `dashdash.addOptionType`.\n See below.\n\n- `completionType` (String). Optional. This is used for [Bash\n completion](#bash-completion) for an option argument. If not specified,\n then the value of `type` is used. Any string may be specified, but only the\n following values have meaning:\n\n - `none`: Provide no completions.\n - `file`: Bash's default completion (i.e. `complete -o default`), which\n includes filenames.\n - *Any string FOO for which a `function complete_FOO` Bash function is\n defined.* This is for custom completions for a given tool. Typically\n these custom functions are provided in the `specExtra` argument to\n `dashdash.bashCompletionFromOptions()`. See\n [\"examples/ddcompletion.js\"](examples/ddcompletion.js) for an example.\n\n- `env` (String or Array of String). Optional. An environment variable name\n (or names) that can be used as a fallback for this option. For example,\n given a \"foo.js\" like this:\n\n var options = [{names: ['dry-run', 'n'], env: 'FOO_DRY_RUN'}];\n var opts = dashdash.parse({options: options});\n\n Both `node foo.js --dry-run` and `FOO_DRY_RUN=1 node foo.js` would result\n in `opts.dry_run = true`.\n\n An environment variable is only used as a fallback, i.e. it is ignored if\n the associated option is given in `argv`.\n\n- `help` (String). Optional. Used for `parser.help()` output.\n\n- `helpArg` (String). Optional. Used in help output as the placeholder for\n the option argument, e.g. the \"PATH\" in:\n\n ...\n -f PATH, --file=PATH File to process\n ...\n\n- `helpWrap` (Boolean). Optional, default true. Set this to `false` to have\n that option's `help` *not* be text wrapped in `<parser>.help()` output.\n\n- `default`. Optional. A default value used for this option, if the\n option isn't specified in argv.\n\n- `hidden` (Boolean). Optional, default false. If true, help output will not\n include this option. See also the `includeHidden` option to\n `bashCompletionFromOptions()` for [Bash completion](#bash-completion).\n\n\n# Option group headings\n\nYou can add headings between option specs in the `options` array. To do so,\nsimply add an object with only a `group` property -- the string to print as\nthe heading for the subsequent options in the array. For example:\n\n```javascript\nvar options = [\n {\n group: 'Armament Options'\n },\n {\n names: [ 'weapon', 'w' ],\n type: 'string'\n },\n {\n group: 'General Options'\n },\n {\n names: [ 'help', 'h' ],\n type: 'bool'\n }\n];\n...\n```\n\nNote: You can use an empty string, `{group: ''}`, to get a blank line in help\noutput between groups of options.\n\n\n# Help config\n\nThe `parser.help(...)` function is configurable as follows:\n\n Options:\n Armament Options:\n ^^ -w WEAPON, --weapon=WEAPON Weapon with which to crush. One of: |\n / sword, spear, maul |\n / General Options: |\n / -h, --help Print this help and exit. |\n / ^^^^ ^ |\n \\ `-- indent `-- helpCol maxCol ---'\n `-- headingIndent\n\n- `indent` (Number or String). Default 4. Set to a number (for that many\n spaces) or a string for the literal indent.\n- `headingIndent` (Number or String). Default half length of `indent`. Set to\n a number (for that many spaces) or a string for the literal indent. This\n indent applies to group heading lines, between normal option lines.\n- `nameSort` (String). Default is 'length'. By default the names are\n sorted to put the short opts first (i.e. '-h, --help' preferred\n to '--help, -h'). Set to 'none' to not do this sorting.\n- `maxCol` (Number). Default 80. Note that reflow is just done on whitespace\n so a long token in the option help can overflow maxCol.\n- `helpCol` (Number). If not set a reasonable value will be determined\n between `minHelpCol` and `maxHelpCol`.\n- `minHelpCol` (Number). Default 20.\n- `maxHelpCol` (Number). Default 40.\n- `helpWrap` (Boolean). Default true. Set to `false` to have option `help`\n strings *not* be textwrapped to the helpCol..maxCol range.\n- `includeEnv` (Boolean). Default false. If the option has associated\n environment variables (via the `env` option spec attribute), then\n append mentioned of those envvars to the help string.\n- `includeDefault` (Boolean). Default false. If the option has a default value\n (via the `default` option spec attribute, or a default on the option's type),\n then a \"Default: VALUE\" string will be appended to the help string.\n\n\n# Custom option types\n\nDashdash includes a good starter set of option types that it will parse for\nyou. However, you can add your own via:\n\n var dashdash = require('dashdash');\n dashdash.addOptionType({\n name: '...',\n takesArg: true,\n helpArg: '...',\n parseArg: function (option, optstr, arg) {\n ...\n },\n array: false, // optional\n arrayFlatten: false, // optional\n default: ..., // optional\n completionType: ... // optional\n });\n\nFor example, a simple option type that accepts 'yes', 'y', 'no' or 'n' as\na boolean argument would look like:\n\n var dashdash = require('dashdash');\n\n function parseYesNo(option, optstr, arg) {\n var argLower = arg.toLowerCase()\n if (~['yes', 'y'].indexOf(argLower)) {\n return true;\n } else if (~['no', 'n'].indexOf(argLower)) {\n return false;\n } else {\n throw new Error(format(\n 'arg for \"%s\" is not \"yes\" or \"no\": \"%s\"',\n optstr, arg));\n }\n }\n\n dashdash.addOptionType({\n name: 'yesno'\n takesArg: true,\n helpArg: '<yes|no>',\n parseArg: parseYesNo\n });\n\n var options = {\n {names: ['answer', 'a'], type: 'yesno'}\n };\n var opts = dashdash.parse({options: options});\n\nSee \"examples/custom-option-\\*.js\" for other examples.\nSee the `addOptionType` block comment in \"lib/dashdash.js\" for more details.\nPlease let me know [with an\nissue](https://github.com/trentm/node-dashdash/issues/new) if you write a\ngenerally useful one.\n\n\n\n# Why\n\nWhy another node.js option parsing lib?\n\n- `nopt` really is just for \"tools like npm\". Implicit opts (e.g. '--no-foo'\n works for every '--foo'). Can't disable abbreviated opts. Can't do multiple\n usages of same opt, e.g. '-vvv' (I think). Can't do grouped short opts.\n\n- `optimist` has surprise interpretation of options (at least to me).\n Implicit opts mean ambiguities and poor error handling for fat-fingering.\n `process.exit` calls makes it hard to use as a libary.\n\n- `optparse` Incomplete docs. Is this an attempted clone of Python's `optparse`.\n Not clear. Some divergence. `parser.on(\"name\", ...)` API is weird.\n\n- `argparse` Dep on underscore. No thanks just for option processing.\n `find lib | wc -l` -> `26`. Overkill.\n Argparse is a bit different anyway. Not sure I want that.\n\n- `posix-getopt` No type validation. Though that isn't a killer. AFAIK can't\n have a long opt without a short alias. I.e. no `getopt_long` semantics.\n Also, no whizbang features like generated help output.\n\n- [\"commander.js\"](https://github.com/visionmedia/commander.js): I wrote\n [a critique](http://trentm.com/2014/01/a-critique-of-commander-for-nodejs.html)\n a while back. It seems fine, but last I checked had\n [an outstanding bug](https://github.com/visionmedia/commander.js/pull/121)\n that would prevent me from using it.\n\n\n# License\n\nMIT. See LICENSE.txt.\n",
79
82
  "readmeFilename": "README.md",
80
83
  "repository": {
81
84
  "type": "git",
@@ -84,5 +87,5 @@
84
87
  "scripts": {
85
88
  "test": "nodeunit test/*.test.js"
86
89
  },
87
- "version": "1.11.0"
90
+ "version": "1.12.2"
88
91
  }
@@ -0,0 +1,3 @@
1
+ {
2
+ "laxbreak": true
3
+ }
@@ -0,0 +1,6 @@
1
+ support
2
+ test
3
+ examples
4
+ example
5
+ *.sock
6
+ dist
@@ -0,0 +1,195 @@
1
+
2
+ 2.2.0 / 2015-05-09
3
+ ==================
4
+
5
+ * package: update "ms" to v0.7.1 (#202, @dougwilson)
6
+ * README: add logging to file example (#193, @DanielOchoa)
7
+ * README: fixed a typo (#191, @amir-s)
8
+ * browser: expose `storage` (#190, @stephenmathieson)
9
+ * Makefile: add a `distclean` target (#189, @stephenmathieson)
10
+
11
+ 2.1.3 / 2015-03-13
12
+ ==================
13
+
14
+ * Updated stdout/stderr example (#186)
15
+ * Updated example/stdout.js to match debug current behaviour
16
+ * Renamed example/stderr.js to stdout.js
17
+ * Update Readme.md (#184)
18
+ * replace high intensity foreground color for bold (#182, #183)
19
+
20
+ 2.1.2 / 2015-03-01
21
+ ==================
22
+
23
+ * dist: recompile
24
+ * update "ms" to v0.7.0
25
+ * package: update "browserify" to v9.0.3
26
+ * component: fix "ms.js" repo location
27
+ * changed bower package name
28
+ * updated documentation about using debug in a browser
29
+ * fix: security error on safari (#167, #168, @yields)
30
+
31
+ 2.1.1 / 2014-12-29
32
+ ==================
33
+
34
+ * browser: use `typeof` to check for `console` existence
35
+ * browser: check for `console.log` truthiness (fix IE 8/9)
36
+ * browser: add support for Chrome apps
37
+ * Readme: added Windows usage remarks
38
+ * Add `bower.json` to properly support bower install
39
+
40
+ 2.1.0 / 2014-10-15
41
+ ==================
42
+
43
+ * node: implement `DEBUG_FD` env variable support
44
+ * package: update "browserify" to v6.1.0
45
+ * package: add "license" field to package.json (#135, @panuhorsmalahti)
46
+
47
+ 2.0.0 / 2014-09-01
48
+ ==================
49
+
50
+ * package: update "browserify" to v5.11.0
51
+ * node: use stderr rather than stdout for logging (#29, @stephenmathieson)
52
+
53
+ 1.0.4 / 2014-07-15
54
+ ==================
55
+
56
+ * dist: recompile
57
+ * example: remove `console.info()` log usage
58
+ * example: add "Content-Type" UTF-8 header to browser example
59
+ * browser: place %c marker after the space character
60
+ * browser: reset the "content" color via `color: inherit`
61
+ * browser: add colors support for Firefox >= v31
62
+ * debug: prefer an instance `log()` function over the global one (#119)
63
+ * Readme: update documentation about styled console logs for FF v31 (#116, @wryk)
64
+
65
+ 1.0.3 / 2014-07-09
66
+ ==================
67
+
68
+ * Add support for multiple wildcards in namespaces (#122, @seegno)
69
+ * browser: fix lint
70
+
71
+ 1.0.2 / 2014-06-10
72
+ ==================
73
+
74
+ * browser: update color palette (#113, @gscottolson)
75
+ * common: make console logging function configurable (#108, @timoxley)
76
+ * node: fix %o colors on old node <= 0.8.x
77
+ * Makefile: find node path using shell/which (#109, @timoxley)
78
+
79
+ 1.0.1 / 2014-06-06
80
+ ==================
81
+
82
+ * browser: use `removeItem()` to clear localStorage
83
+ * browser, node: don't set DEBUG if namespaces is undefined (#107, @leedm777)
84
+ * package: add "contributors" section
85
+ * node: fix comment typo
86
+ * README: list authors
87
+
88
+ 1.0.0 / 2014-06-04
89
+ ==================
90
+
91
+ * make ms diff be global, not be scope
92
+ * debug: ignore empty strings in enable()
93
+ * node: make DEBUG_COLORS able to disable coloring
94
+ * *: export the `colors` array
95
+ * npmignore: don't publish the `dist` dir
96
+ * Makefile: refactor to use browserify
97
+ * package: add "browserify" as a dev dependency
98
+ * Readme: add Web Inspector Colors section
99
+ * node: reset terminal color for the debug content
100
+ * node: map "%o" to `util.inspect()`
101
+ * browser: map "%j" to `JSON.stringify()`
102
+ * debug: add custom "formatters"
103
+ * debug: use "ms" module for humanizing the diff
104
+ * Readme: add "bash" syntax highlighting
105
+ * browser: add Firebug color support
106
+ * browser: add colors for WebKit browsers
107
+ * node: apply log to `console`
108
+ * rewrite: abstract common logic for Node & browsers
109
+ * add .jshintrc file
110
+
111
+ 0.8.1 / 2014-04-14
112
+ ==================
113
+
114
+ * package: re-add the "component" section
115
+
116
+ 0.8.0 / 2014-03-30
117
+ ==================
118
+
119
+ * add `enable()` method for nodejs. Closes #27
120
+ * change from stderr to stdout
121
+ * remove unnecessary index.js file
122
+
123
+ 0.7.4 / 2013-11-13
124
+ ==================
125
+
126
+ * remove "browserify" key from package.json (fixes something in browserify)
127
+
128
+ 0.7.3 / 2013-10-30
129
+ ==================
130
+
131
+ * fix: catch localStorage security error when cookies are blocked (Chrome)
132
+ * add debug(err) support. Closes #46
133
+ * add .browser prop to package.json. Closes #42
134
+
135
+ 0.7.2 / 2013-02-06
136
+ ==================
137
+
138
+ * fix package.json
139
+ * fix: Mobile Safari (private mode) is broken with debug
140
+ * fix: Use unicode to send escape character to shell instead of octal to work with strict mode javascript
141
+
142
+ 0.7.1 / 2013-02-05
143
+ ==================
144
+
145
+ * add repository URL to package.json
146
+ * add DEBUG_COLORED to force colored output
147
+ * add browserify support
148
+ * fix component. Closes #24
149
+
150
+ 0.7.0 / 2012-05-04
151
+ ==================
152
+
153
+ * Added .component to package.json
154
+ * Added debug.component.js build
155
+
156
+ 0.6.0 / 2012-03-16
157
+ ==================
158
+
159
+ * Added support for "-" prefix in DEBUG [Vinay Pulim]
160
+ * Added `.enabled` flag to the node version [TooTallNate]
161
+
162
+ 0.5.0 / 2012-02-02
163
+ ==================
164
+
165
+ * Added: humanize diffs. Closes #8
166
+ * Added `debug.disable()` to the CS variant
167
+ * Removed padding. Closes #10
168
+ * Fixed: persist client-side variant again. Closes #9
169
+
170
+ 0.4.0 / 2012-02-01
171
+ ==================
172
+
173
+ * Added browser variant support for older browsers [TooTallNate]
174
+ * Added `debug.enable('project:*')` to browser variant [TooTallNate]
175
+ * Added padding to diff (moved it to the right)
176
+
177
+ 0.3.0 / 2012-01-26
178
+ ==================
179
+
180
+ * Added millisecond diff when isatty, otherwise UTC string
181
+
182
+ 0.2.0 / 2012-01-22
183
+ ==================
184
+
185
+ * Added wildcard support
186
+
187
+ 0.1.0 / 2011-12-02
188
+ ==================
189
+
190
+ * Added: remove colors unless stderr isatty [TooTallNate]
191
+
192
+ 0.0.1 / 2010-01-03
193
+ ==================
194
+
195
+ * Initial release
@@ -0,0 +1,36 @@
1
+
2
+ # get Makefile directory name: http://stackoverflow.com/a/5982798/376773
3
+ THIS_MAKEFILE_PATH:=$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))
4
+ THIS_DIR:=$(shell cd $(dir $(THIS_MAKEFILE_PATH));pwd)
5
+
6
+ # BIN directory
7
+ BIN := $(THIS_DIR)/node_modules/.bin
8
+
9
+ # applications
10
+ NODE ?= $(shell which node)
11
+ NPM ?= $(NODE) $(shell which npm)
12
+ BROWSERIFY ?= $(NODE) $(BIN)/browserify
13
+
14
+ all: dist/debug.js
15
+
16
+ install: node_modules
17
+
18
+ clean:
19
+ @rm -rf dist
20
+
21
+ dist:
22
+ @mkdir -p $@
23
+
24
+ dist/debug.js: node_modules browser.js debug.js dist
25
+ @$(BROWSERIFY) \
26
+ --standalone debug \
27
+ . > $@
28
+
29
+ distclean: clean
30
+ @rm -rf node_modules
31
+
32
+ node_modules: package.json
33
+ @NODE_ENV= $(NPM) install
34
+ @touch node_modules
35
+
36
+ .PHONY: all install clean distclean