fsevents 1.2.12 → 1.2.13

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 (498) hide show
  1. package/.travis.yml +6 -4
  2. package/install.js +13 -0
  3. package/package.json +3 -5
  4. package/node_modules/abbrev/LICENSE +0 -46
  5. package/node_modules/abbrev/README.md +0 -23
  6. package/node_modules/abbrev/abbrev.js +0 -61
  7. package/node_modules/abbrev/package.json +0 -56
  8. package/node_modules/ansi-regex/index.js +0 -4
  9. package/node_modules/ansi-regex/license +0 -21
  10. package/node_modules/ansi-regex/package.json +0 -108
  11. package/node_modules/ansi-regex/readme.md +0 -39
  12. package/node_modules/aproba/LICENSE +0 -14
  13. package/node_modules/aproba/README.md +0 -94
  14. package/node_modules/aproba/index.js +0 -105
  15. package/node_modules/aproba/package.json +0 -62
  16. package/node_modules/are-we-there-yet/CHANGES.md +0 -37
  17. package/node_modules/are-we-there-yet/LICENSE +0 -5
  18. package/node_modules/are-we-there-yet/README.md +0 -195
  19. package/node_modules/are-we-there-yet/index.js +0 -4
  20. package/node_modules/are-we-there-yet/package.json +0 -63
  21. package/node_modules/are-we-there-yet/tracker-base.js +0 -11
  22. package/node_modules/are-we-there-yet/tracker-group.js +0 -107
  23. package/node_modules/are-we-there-yet/tracker-stream.js +0 -36
  24. package/node_modules/are-we-there-yet/tracker.js +0 -30
  25. package/node_modules/balanced-match/.npmignore +0 -5
  26. package/node_modules/balanced-match/LICENSE.md +0 -21
  27. package/node_modules/balanced-match/README.md +0 -91
  28. package/node_modules/balanced-match/index.js +0 -59
  29. package/node_modules/balanced-match/package.json +0 -77
  30. package/node_modules/brace-expansion/LICENSE +0 -21
  31. package/node_modules/brace-expansion/README.md +0 -129
  32. package/node_modules/brace-expansion/index.js +0 -201
  33. package/node_modules/brace-expansion/package.json +0 -75
  34. package/node_modules/chownr/LICENSE +0 -15
  35. package/node_modules/chownr/README.md +0 -3
  36. package/node_modules/chownr/chownr.js +0 -167
  37. package/node_modules/chownr/package.json +0 -62
  38. package/node_modules/code-point-at/index.js +0 -32
  39. package/node_modules/code-point-at/license +0 -21
  40. package/node_modules/code-point-at/package.json +0 -70
  41. package/node_modules/code-point-at/readme.md +0 -32
  42. package/node_modules/concat-map/.travis.yml +0 -4
  43. package/node_modules/concat-map/LICENSE +0 -18
  44. package/node_modules/concat-map/README.markdown +0 -62
  45. package/node_modules/concat-map/example/map.js +0 -6
  46. package/node_modules/concat-map/index.js +0 -13
  47. package/node_modules/concat-map/package.json +0 -88
  48. package/node_modules/concat-map/test/map.js +0 -39
  49. package/node_modules/console-control-strings/LICENSE +0 -13
  50. package/node_modules/console-control-strings/README.md +0 -145
  51. package/node_modules/console-control-strings/README.md~ +0 -140
  52. package/node_modules/console-control-strings/index.js +0 -125
  53. package/node_modules/console-control-strings/package.json +0 -61
  54. package/node_modules/core-util-is/LICENSE +0 -19
  55. package/node_modules/core-util-is/README.md +0 -3
  56. package/node_modules/core-util-is/float.patch +0 -604
  57. package/node_modules/core-util-is/lib/util.js +0 -107
  58. package/node_modules/core-util-is/package.json +0 -62
  59. package/node_modules/core-util-is/test.js +0 -68
  60. package/node_modules/debug/CHANGELOG.md +0 -395
  61. package/node_modules/debug/LICENSE +0 -19
  62. package/node_modules/debug/README.md +0 -437
  63. package/node_modules/debug/dist/debug.js +0 -886
  64. package/node_modules/debug/node.js +0 -1
  65. package/node_modules/debug/package.json +0 -90
  66. package/node_modules/debug/src/browser.js +0 -180
  67. package/node_modules/debug/src/common.js +0 -249
  68. package/node_modules/debug/src/index.js +0 -12
  69. package/node_modules/debug/src/node.js +0 -174
  70. package/node_modules/deep-extend/CHANGELOG.md +0 -46
  71. package/node_modules/deep-extend/LICENSE +0 -20
  72. package/node_modules/deep-extend/README.md +0 -91
  73. package/node_modules/deep-extend/index.js +0 -1
  74. package/node_modules/deep-extend/lib/deep-extend.js +0 -150
  75. package/node_modules/deep-extend/package.json +0 -92
  76. package/node_modules/delegates/.npmignore +0 -1
  77. package/node_modules/delegates/History.md +0 -22
  78. package/node_modules/delegates/License +0 -20
  79. package/node_modules/delegates/Makefile +0 -8
  80. package/node_modules/delegates/Readme.md +0 -94
  81. package/node_modules/delegates/index.js +0 -121
  82. package/node_modules/delegates/package.json +0 -48
  83. package/node_modules/delegates/test/index.js +0 -94
  84. package/node_modules/detect-libc/.npmignore +0 -7
  85. package/node_modules/detect-libc/LICENSE +0 -201
  86. package/node_modules/detect-libc/README.md +0 -78
  87. package/node_modules/detect-libc/bin/detect-libc.js +0 -18
  88. package/node_modules/detect-libc/lib/detect-libc.js +0 -92
  89. package/node_modules/detect-libc/package.json +0 -70
  90. package/node_modules/fs-minipass/LICENSE +0 -15
  91. package/node_modules/fs-minipass/README.md +0 -70
  92. package/node_modules/fs-minipass/index.js +0 -387
  93. package/node_modules/fs-minipass/package.json +0 -65
  94. package/node_modules/fs.realpath/LICENSE +0 -43
  95. package/node_modules/fs.realpath/README.md +0 -33
  96. package/node_modules/fs.realpath/index.js +0 -66
  97. package/node_modules/fs.realpath/old.js +0 -303
  98. package/node_modules/fs.realpath/package.json +0 -59
  99. package/node_modules/gauge/CHANGELOG.md +0 -160
  100. package/node_modules/gauge/LICENSE +0 -13
  101. package/node_modules/gauge/README.md +0 -399
  102. package/node_modules/gauge/base-theme.js +0 -14
  103. package/node_modules/gauge/error.js +0 -24
  104. package/node_modules/gauge/has-color.js +0 -12
  105. package/node_modules/gauge/index.js +0 -233
  106. package/node_modules/gauge/package.json +0 -91
  107. package/node_modules/gauge/plumbing.js +0 -48
  108. package/node_modules/gauge/process.js +0 -3
  109. package/node_modules/gauge/progress-bar.js +0 -35
  110. package/node_modules/gauge/render-template.js +0 -181
  111. package/node_modules/gauge/set-immediate.js +0 -7
  112. package/node_modules/gauge/set-interval.js +0 -3
  113. package/node_modules/gauge/spin.js +0 -5
  114. package/node_modules/gauge/template-item.js +0 -73
  115. package/node_modules/gauge/theme-set.js +0 -115
  116. package/node_modules/gauge/themes.js +0 -54
  117. package/node_modules/gauge/wide-truncate.js +0 -25
  118. package/node_modules/glob/LICENSE +0 -21
  119. package/node_modules/glob/README.md +0 -375
  120. package/node_modules/glob/changelog.md +0 -67
  121. package/node_modules/glob/common.js +0 -240
  122. package/node_modules/glob/glob.js +0 -790
  123. package/node_modules/glob/package.json +0 -79
  124. package/node_modules/glob/sync.js +0 -486
  125. package/node_modules/has-unicode/LICENSE +0 -14
  126. package/node_modules/has-unicode/README.md +0 -43
  127. package/node_modules/has-unicode/index.js +0 -16
  128. package/node_modules/has-unicode/package.json +0 -58
  129. package/node_modules/iconv-lite/Changelog.md +0 -162
  130. package/node_modules/iconv-lite/LICENSE +0 -21
  131. package/node_modules/iconv-lite/README.md +0 -156
  132. package/node_modules/iconv-lite/encodings/dbcs-codec.js +0 -555
  133. package/node_modules/iconv-lite/encodings/dbcs-data.js +0 -176
  134. package/node_modules/iconv-lite/encodings/index.js +0 -22
  135. package/node_modules/iconv-lite/encodings/internal.js +0 -188
  136. package/node_modules/iconv-lite/encodings/sbcs-codec.js +0 -72
  137. package/node_modules/iconv-lite/encodings/sbcs-data-generated.js +0 -451
  138. package/node_modules/iconv-lite/encodings/sbcs-data.js +0 -174
  139. package/node_modules/iconv-lite/encodings/tables/big5-added.json +0 -122
  140. package/node_modules/iconv-lite/encodings/tables/cp936.json +0 -264
  141. package/node_modules/iconv-lite/encodings/tables/cp949.json +0 -273
  142. package/node_modules/iconv-lite/encodings/tables/cp950.json +0 -177
  143. package/node_modules/iconv-lite/encodings/tables/eucjp.json +0 -182
  144. package/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +0 -1
  145. package/node_modules/iconv-lite/encodings/tables/gbk-added.json +0 -55
  146. package/node_modules/iconv-lite/encodings/tables/shiftjis.json +0 -125
  147. package/node_modules/iconv-lite/encodings/utf16.js +0 -177
  148. package/node_modules/iconv-lite/encodings/utf7.js +0 -290
  149. package/node_modules/iconv-lite/lib/bom-handling.js +0 -52
  150. package/node_modules/iconv-lite/lib/extend-node.js +0 -217
  151. package/node_modules/iconv-lite/lib/index.d.ts +0 -24
  152. package/node_modules/iconv-lite/lib/index.js +0 -153
  153. package/node_modules/iconv-lite/lib/streams.js +0 -121
  154. package/node_modules/iconv-lite/package.json +0 -76
  155. package/node_modules/ignore-walk/LICENSE +0 -15
  156. package/node_modules/ignore-walk/README.md +0 -60
  157. package/node_modules/ignore-walk/index.js +0 -269
  158. package/node_modules/ignore-walk/package.json +0 -74
  159. package/node_modules/inflight/LICENSE +0 -15
  160. package/node_modules/inflight/README.md +0 -37
  161. package/node_modules/inflight/inflight.js +0 -54
  162. package/node_modules/inflight/package.json +0 -58
  163. package/node_modules/inherits/LICENSE +0 -16
  164. package/node_modules/inherits/README.md +0 -42
  165. package/node_modules/inherits/inherits.js +0 -9
  166. package/node_modules/inherits/inherits_browser.js +0 -27
  167. package/node_modules/inherits/package.json +0 -62
  168. package/node_modules/ini/LICENSE +0 -15
  169. package/node_modules/ini/README.md +0 -102
  170. package/node_modules/ini/ini.js +0 -194
  171. package/node_modules/ini/package.json +0 -63
  172. package/node_modules/is-fullwidth-code-point/index.js +0 -46
  173. package/node_modules/is-fullwidth-code-point/license +0 -21
  174. package/node_modules/is-fullwidth-code-point/package.json +0 -77
  175. package/node_modules/is-fullwidth-code-point/readme.md +0 -39
  176. package/node_modules/isarray/.npmignore +0 -1
  177. package/node_modules/isarray/.travis.yml +0 -4
  178. package/node_modules/isarray/Makefile +0 -6
  179. package/node_modules/isarray/README.md +0 -60
  180. package/node_modules/isarray/component.json +0 -19
  181. package/node_modules/isarray/index.js +0 -5
  182. package/node_modules/isarray/package.json +0 -73
  183. package/node_modules/isarray/test.js +0 -20
  184. package/node_modules/minimatch/LICENSE +0 -15
  185. package/node_modules/minimatch/README.md +0 -209
  186. package/node_modules/minimatch/minimatch.js +0 -923
  187. package/node_modules/minimatch/package.json +0 -64
  188. package/node_modules/minimist/.travis.yml +0 -8
  189. package/node_modules/minimist/LICENSE +0 -18
  190. package/node_modules/minimist/example/parse.js +0 -2
  191. package/node_modules/minimist/index.js +0 -245
  192. package/node_modules/minimist/package.json +0 -74
  193. package/node_modules/minimist/readme.markdown +0 -95
  194. package/node_modules/minimist/test/all_bool.js +0 -32
  195. package/node_modules/minimist/test/bool.js +0 -178
  196. package/node_modules/minimist/test/dash.js +0 -31
  197. package/node_modules/minimist/test/default_bool.js +0 -35
  198. package/node_modules/minimist/test/dotted.js +0 -22
  199. package/node_modules/minimist/test/kv_short.js +0 -16
  200. package/node_modules/minimist/test/long.js +0 -31
  201. package/node_modules/minimist/test/num.js +0 -36
  202. package/node_modules/minimist/test/parse.js +0 -197
  203. package/node_modules/minimist/test/parse_modified.js +0 -9
  204. package/node_modules/minimist/test/proto.js +0 -44
  205. package/node_modules/minimist/test/short.js +0 -67
  206. package/node_modules/minimist/test/stop_early.js +0 -15
  207. package/node_modules/minimist/test/unknown.js +0 -102
  208. package/node_modules/minimist/test/whitespace.js +0 -8
  209. package/node_modules/minipass/LICENSE +0 -15
  210. package/node_modules/minipass/README.md +0 -606
  211. package/node_modules/minipass/index.js +0 -537
  212. package/node_modules/minipass/package.json +0 -72
  213. package/node_modules/minizlib/LICENSE +0 -26
  214. package/node_modules/minizlib/README.md +0 -53
  215. package/node_modules/minizlib/constants.js +0 -115
  216. package/node_modules/minizlib/index.js +0 -320
  217. package/node_modules/minizlib/package.json +0 -71
  218. package/node_modules/mkdirp/LICENSE +0 -21
  219. package/node_modules/mkdirp/bin/cmd.js +0 -33
  220. package/node_modules/mkdirp/bin/usage.txt +0 -12
  221. package/node_modules/mkdirp/index.js +0 -98
  222. package/node_modules/mkdirp/package.json +0 -70
  223. package/node_modules/mkdirp/readme.markdown +0 -100
  224. package/node_modules/ms/index.js +0 -162
  225. package/node_modules/ms/license.md +0 -21
  226. package/node_modules/ms/package.json +0 -69
  227. package/node_modules/ms/readme.md +0 -60
  228. package/node_modules/needle/.github/workflows/nodejs.yml +0 -27
  229. package/node_modules/needle/README.md +0 -593
  230. package/node_modules/needle/bin/needle +0 -40
  231. package/node_modules/needle/examples/deflated-stream.js +0 -22
  232. package/node_modules/needle/examples/digest-auth.js +0 -16
  233. package/node_modules/needle/examples/download-to-file.js +0 -18
  234. package/node_modules/needle/examples/multipart-stream.js +0 -25
  235. package/node_modules/needle/examples/parsed-stream.js +0 -23
  236. package/node_modules/needle/examples/parsed-stream2.js +0 -21
  237. package/node_modules/needle/examples/stream-events.js +0 -23
  238. package/node_modules/needle/examples/stream-to-file.js +0 -14
  239. package/node_modules/needle/examples/upload-image.js +0 -51
  240. package/node_modules/needle/lib/auth.js +0 -110
  241. package/node_modules/needle/lib/cookies.js +0 -79
  242. package/node_modules/needle/lib/decoder.js +0 -53
  243. package/node_modules/needle/lib/multipart.js +0 -98
  244. package/node_modules/needle/lib/needle.js +0 -803
  245. package/node_modules/needle/lib/parsers.js +0 -120
  246. package/node_modules/needle/lib/querystring.js +0 -49
  247. package/node_modules/needle/license.txt +0 -19
  248. package/node_modules/needle/package.json +0 -102
  249. package/node_modules/needle/test/basic_auth_spec.js +0 -196
  250. package/node_modules/needle/test/compression_spec.js +0 -112
  251. package/node_modules/needle/test/cookies_spec.js +0 -305
  252. package/node_modules/needle/test/decoder_spec.js +0 -86
  253. package/node_modules/needle/test/errors_spec.js +0 -286
  254. package/node_modules/needle/test/headers_spec.js +0 -198
  255. package/node_modules/needle/test/helpers.js +0 -72
  256. package/node_modules/needle/test/long_string_spec.js +0 -34
  257. package/node_modules/needle/test/output_spec.js +0 -254
  258. package/node_modules/needle/test/parsing_spec.js +0 -494
  259. package/node_modules/needle/test/post_data_spec.js +0 -1021
  260. package/node_modules/needle/test/proxy_spec.js +0 -202
  261. package/node_modules/needle/test/querystring_spec.js +0 -128
  262. package/node_modules/needle/test/redirect_spec.js +0 -392
  263. package/node_modules/needle/test/redirect_with_timeout.js +0 -45
  264. package/node_modules/needle/test/request_stream_spec.js +0 -202
  265. package/node_modules/needle/test/response_stream_spec.js +0 -139
  266. package/node_modules/needle/test/socket_pool_spec.js +0 -66
  267. package/node_modules/needle/test/url_spec.js +0 -155
  268. package/node_modules/needle/test/utils/formidable.js +0 -17
  269. package/node_modules/needle/test/utils/proxy.js +0 -62
  270. package/node_modules/needle/test/utils/test.js +0 -104
  271. package/node_modules/node-pre-gyp/CHANGELOG.md +0 -443
  272. package/node_modules/node-pre-gyp/LICENSE +0 -27
  273. package/node_modules/node-pre-gyp/README.md +0 -693
  274. package/node_modules/node-pre-gyp/appveyor.yml +0 -30
  275. package/node_modules/node-pre-gyp/bin/node-pre-gyp +0 -134
  276. package/node_modules/node-pre-gyp/bin/node-pre-gyp.cmd +0 -2
  277. package/node_modules/node-pre-gyp/contributing.md +0 -10
  278. package/node_modules/node-pre-gyp/lib/build.js +0 -51
  279. package/node_modules/node-pre-gyp/lib/clean.js +0 -32
  280. package/node_modules/node-pre-gyp/lib/configure.js +0 -52
  281. package/node_modules/node-pre-gyp/lib/info.js +0 -40
  282. package/node_modules/node-pre-gyp/lib/install.js +0 -285
  283. package/node_modules/node-pre-gyp/lib/node-pre-gyp.js +0 -203
  284. package/node_modules/node-pre-gyp/lib/package.js +0 -56
  285. package/node_modules/node-pre-gyp/lib/pre-binding.js +0 -30
  286. package/node_modules/node-pre-gyp/lib/publish.js +0 -79
  287. package/node_modules/node-pre-gyp/lib/rebuild.js +0 -21
  288. package/node_modules/node-pre-gyp/lib/reinstall.js +0 -20
  289. package/node_modules/node-pre-gyp/lib/reveal.js +0 -33
  290. package/node_modules/node-pre-gyp/lib/testbinary.js +0 -81
  291. package/node_modules/node-pre-gyp/lib/testpackage.js +0 -55
  292. package/node_modules/node-pre-gyp/lib/unpublish.js +0 -43
  293. package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +0 -2070
  294. package/node_modules/node-pre-gyp/lib/util/compile.js +0 -87
  295. package/node_modules/node-pre-gyp/lib/util/handle_gyp_opts.js +0 -103
  296. package/node_modules/node-pre-gyp/lib/util/napi.js +0 -205
  297. package/node_modules/node-pre-gyp/lib/util/nw-pre-gyp/index.html +0 -26
  298. package/node_modules/node-pre-gyp/lib/util/nw-pre-gyp/package.json +0 -9
  299. package/node_modules/node-pre-gyp/lib/util/s3_setup.js +0 -27
  300. package/node_modules/node-pre-gyp/lib/util/versioning.js +0 -331
  301. package/node_modules/node-pre-gyp/package.json +0 -87
  302. package/node_modules/nopt/CHANGELOG.md +0 -58
  303. package/node_modules/nopt/LICENSE +0 -15
  304. package/node_modules/nopt/README.md +0 -213
  305. package/node_modules/nopt/bin/nopt.js +0 -54
  306. package/node_modules/nopt/lib/nopt.js +0 -441
  307. package/node_modules/nopt/package.json +0 -65
  308. package/node_modules/npm-bundled/LICENSE +0 -15
  309. package/node_modules/npm-bundled/README.md +0 -48
  310. package/node_modules/npm-bundled/index.js +0 -249
  311. package/node_modules/npm-bundled/package.json +0 -63
  312. package/node_modules/npm-normalize-package-bin/.github/settings.yml +0 -2
  313. package/node_modules/npm-normalize-package-bin/.npmignore +0 -24
  314. package/node_modules/npm-normalize-package-bin/LICENSE +0 -15
  315. package/node_modules/npm-normalize-package-bin/README.md +0 -14
  316. package/node_modules/npm-normalize-package-bin/index.js +0 -60
  317. package/node_modules/npm-normalize-package-bin/package-lock.json +0 -3529
  318. package/node_modules/npm-normalize-package-bin/package.json +0 -58
  319. package/node_modules/npm-normalize-package-bin/test/array.js +0 -37
  320. package/node_modules/npm-normalize-package-bin/test/nobin.js +0 -35
  321. package/node_modules/npm-normalize-package-bin/test/object.js +0 -141
  322. package/node_modules/npm-normalize-package-bin/test/string.js +0 -37
  323. package/node_modules/npm-packlist/LICENSE +0 -15
  324. package/node_modules/npm-packlist/README.md +0 -68
  325. package/node_modules/npm-packlist/index.js +0 -289
  326. package/node_modules/npm-packlist/package.json +0 -74
  327. package/node_modules/npmlog/CHANGELOG.md +0 -49
  328. package/node_modules/npmlog/LICENSE +0 -15
  329. package/node_modules/npmlog/README.md +0 -216
  330. package/node_modules/npmlog/log.js +0 -309
  331. package/node_modules/npmlog/package.json +0 -61
  332. package/node_modules/number-is-nan/index.js +0 -4
  333. package/node_modules/number-is-nan/license +0 -21
  334. package/node_modules/number-is-nan/package.json +0 -67
  335. package/node_modules/number-is-nan/readme.md +0 -28
  336. package/node_modules/object-assign/index.js +0 -90
  337. package/node_modules/object-assign/license +0 -21
  338. package/node_modules/object-assign/package.json +0 -74
  339. package/node_modules/object-assign/readme.md +0 -61
  340. package/node_modules/once/LICENSE +0 -15
  341. package/node_modules/once/README.md +0 -79
  342. package/node_modules/once/once.js +0 -42
  343. package/node_modules/once/package.json +0 -67
  344. package/node_modules/os-homedir/index.js +0 -24
  345. package/node_modules/os-homedir/license +0 -21
  346. package/node_modules/os-homedir/package.json +0 -73
  347. package/node_modules/os-homedir/readme.md +0 -31
  348. package/node_modules/os-tmpdir/index.js +0 -25
  349. package/node_modules/os-tmpdir/license +0 -21
  350. package/node_modules/os-tmpdir/package.json +0 -73
  351. package/node_modules/os-tmpdir/readme.md +0 -32
  352. package/node_modules/osenv/LICENSE +0 -15
  353. package/node_modules/osenv/README.md +0 -63
  354. package/node_modules/osenv/osenv.js +0 -72
  355. package/node_modules/osenv/package.json +0 -73
  356. package/node_modules/path-is-absolute/index.js +0 -20
  357. package/node_modules/path-is-absolute/license +0 -21
  358. package/node_modules/path-is-absolute/package.json +0 -75
  359. package/node_modules/path-is-absolute/readme.md +0 -59
  360. package/node_modules/process-nextick-args/index.js +0 -45
  361. package/node_modules/process-nextick-args/license.md +0 -19
  362. package/node_modules/process-nextick-args/package.json +0 -50
  363. package/node_modules/process-nextick-args/readme.md +0 -18
  364. package/node_modules/rc/LICENSE.APACHE2 +0 -15
  365. package/node_modules/rc/LICENSE.BSD +0 -26
  366. package/node_modules/rc/LICENSE.MIT +0 -24
  367. package/node_modules/rc/README.md +0 -227
  368. package/node_modules/rc/browser.js +0 -7
  369. package/node_modules/rc/cli.js +0 -4
  370. package/node_modules/rc/index.js +0 -53
  371. package/node_modules/rc/lib/utils.js +0 -104
  372. package/node_modules/rc/package.json +0 -64
  373. package/node_modules/rc/test/ini.js +0 -16
  374. package/node_modules/rc/test/nested-env-vars.js +0 -50
  375. package/node_modules/rc/test/test.js +0 -59
  376. package/node_modules/readable-stream/.travis.yml +0 -34
  377. package/node_modules/readable-stream/CONTRIBUTING.md +0 -38
  378. package/node_modules/readable-stream/GOVERNANCE.md +0 -136
  379. package/node_modules/readable-stream/LICENSE +0 -47
  380. package/node_modules/readable-stream/README.md +0 -58
  381. package/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +0 -60
  382. package/node_modules/readable-stream/duplex-browser.js +0 -1
  383. package/node_modules/readable-stream/duplex.js +0 -1
  384. package/node_modules/readable-stream/lib/_stream_duplex.js +0 -131
  385. package/node_modules/readable-stream/lib/_stream_passthrough.js +0 -47
  386. package/node_modules/readable-stream/lib/_stream_readable.js +0 -1019
  387. package/node_modules/readable-stream/lib/_stream_transform.js +0 -214
  388. package/node_modules/readable-stream/lib/_stream_writable.js +0 -687
  389. package/node_modules/readable-stream/lib/internal/streams/BufferList.js +0 -79
  390. package/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -74
  391. package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
  392. package/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
  393. package/node_modules/readable-stream/package.json +0 -81
  394. package/node_modules/readable-stream/passthrough.js +0 -1
  395. package/node_modules/readable-stream/readable-browser.js +0 -7
  396. package/node_modules/readable-stream/readable.js +0 -19
  397. package/node_modules/readable-stream/transform.js +0 -1
  398. package/node_modules/readable-stream/writable-browser.js +0 -1
  399. package/node_modules/readable-stream/writable.js +0 -8
  400. package/node_modules/rimraf/LICENSE +0 -15
  401. package/node_modules/rimraf/README.md +0 -101
  402. package/node_modules/rimraf/bin.js +0 -50
  403. package/node_modules/rimraf/package.json +0 -67
  404. package/node_modules/rimraf/rimraf.js +0 -372
  405. package/node_modules/safe-buffer/LICENSE +0 -21
  406. package/node_modules/safe-buffer/README.md +0 -584
  407. package/node_modules/safe-buffer/index.d.ts +0 -187
  408. package/node_modules/safe-buffer/index.js +0 -62
  409. package/node_modules/safe-buffer/package.json +0 -65
  410. package/node_modules/safer-buffer/LICENSE +0 -21
  411. package/node_modules/safer-buffer/Porting-Buffer.md +0 -268
  412. package/node_modules/safer-buffer/Readme.md +0 -156
  413. package/node_modules/safer-buffer/dangerous.js +0 -58
  414. package/node_modules/safer-buffer/package.json +0 -60
  415. package/node_modules/safer-buffer/safer.js +0 -77
  416. package/node_modules/safer-buffer/tests.js +0 -406
  417. package/node_modules/sax/LICENSE +0 -41
  418. package/node_modules/sax/README.md +0 -225
  419. package/node_modules/sax/lib/sax.js +0 -1565
  420. package/node_modules/sax/package.json +0 -61
  421. package/node_modules/semver/CHANGELOG.md +0 -39
  422. package/node_modules/semver/LICENSE +0 -15
  423. package/node_modules/semver/README.md +0 -412
  424. package/node_modules/semver/bin/semver +0 -160
  425. package/node_modules/semver/package.json +0 -60
  426. package/node_modules/semver/range.bnf +0 -16
  427. package/node_modules/semver/semver.js +0 -1483
  428. package/node_modules/set-blocking/CHANGELOG.md +0 -26
  429. package/node_modules/set-blocking/LICENSE.txt +0 -14
  430. package/node_modules/set-blocking/README.md +0 -31
  431. package/node_modules/set-blocking/index.js +0 -7
  432. package/node_modules/set-blocking/package.json +0 -70
  433. package/node_modules/signal-exit/CHANGELOG.md +0 -27
  434. package/node_modules/signal-exit/LICENSE.txt +0 -16
  435. package/node_modules/signal-exit/README.md +0 -40
  436. package/node_modules/signal-exit/index.js +0 -157
  437. package/node_modules/signal-exit/package.json +0 -66
  438. package/node_modules/signal-exit/signals.js +0 -53
  439. package/node_modules/string-width/index.js +0 -37
  440. package/node_modules/string-width/license +0 -21
  441. package/node_modules/string-width/package.json +0 -89
  442. package/node_modules/string-width/readme.md +0 -42
  443. package/node_modules/string_decoder/.travis.yml +0 -50
  444. package/node_modules/string_decoder/LICENSE +0 -48
  445. package/node_modules/string_decoder/README.md +0 -47
  446. package/node_modules/string_decoder/lib/string_decoder.js +0 -296
  447. package/node_modules/string_decoder/package.json +0 -59
  448. package/node_modules/strip-ansi/index.js +0 -6
  449. package/node_modules/strip-ansi/license +0 -21
  450. package/node_modules/strip-ansi/package.json +0 -102
  451. package/node_modules/strip-ansi/readme.md +0 -33
  452. package/node_modules/strip-json-comments/index.js +0 -70
  453. package/node_modules/strip-json-comments/license +0 -21
  454. package/node_modules/strip-json-comments/package.json +0 -74
  455. package/node_modules/strip-json-comments/readme.md +0 -64
  456. package/node_modules/tar/LICENSE +0 -15
  457. package/node_modules/tar/README.md +0 -954
  458. package/node_modules/tar/index.js +0 -18
  459. package/node_modules/tar/lib/buffer.js +0 -11
  460. package/node_modules/tar/lib/create.js +0 -105
  461. package/node_modules/tar/lib/extract.js +0 -112
  462. package/node_modules/tar/lib/header.js +0 -289
  463. package/node_modules/tar/lib/high-level-opt.js +0 -29
  464. package/node_modules/tar/lib/large-numbers.js +0 -97
  465. package/node_modules/tar/lib/list.js +0 -130
  466. package/node_modules/tar/lib/mkdir.js +0 -206
  467. package/node_modules/tar/lib/mode-fix.js +0 -14
  468. package/node_modules/tar/lib/pack.js +0 -404
  469. package/node_modules/tar/lib/parse.js +0 -428
  470. package/node_modules/tar/lib/pax.js +0 -146
  471. package/node_modules/tar/lib/read-entry.js +0 -98
  472. package/node_modules/tar/lib/replace.js +0 -220
  473. package/node_modules/tar/lib/types.js +0 -44
  474. package/node_modules/tar/lib/unpack.js +0 -621
  475. package/node_modules/tar/lib/update.js +0 -36
  476. package/node_modules/tar/lib/warn-mixin.js +0 -14
  477. package/node_modules/tar/lib/winchars.js +0 -23
  478. package/node_modules/tar/lib/write-entry.js +0 -422
  479. package/node_modules/tar/package.json +0 -82
  480. package/node_modules/util-deprecate/History.md +0 -16
  481. package/node_modules/util-deprecate/LICENSE +0 -24
  482. package/node_modules/util-deprecate/README.md +0 -53
  483. package/node_modules/util-deprecate/browser.js +0 -67
  484. package/node_modules/util-deprecate/node.js +0 -6
  485. package/node_modules/util-deprecate/package.json +0 -56
  486. package/node_modules/wide-align/LICENSE +0 -14
  487. package/node_modules/wide-align/README.md +0 -47
  488. package/node_modules/wide-align/align.js +0 -65
  489. package/node_modules/wide-align/package.json +0 -66
  490. package/node_modules/wrappy/LICENSE +0 -15
  491. package/node_modules/wrappy/README.md +0 -36
  492. package/node_modules/wrappy/package.json +0 -59
  493. package/node_modules/wrappy/wrappy.js +0 -33
  494. package/node_modules/yallist/LICENSE +0 -15
  495. package/node_modules/yallist/README.md +0 -204
  496. package/node_modules/yallist/iterator.js +0 -8
  497. package/node_modules/yallist/package.json +0 -63
  498. package/node_modules/yallist/yallist.js +0 -426
@@ -1,45 +0,0 @@
1
- 'use strict';
2
-
3
- if (typeof process === 'undefined' ||
4
- !process.version ||
5
- process.version.indexOf('v0.') === 0 ||
6
- process.version.indexOf('v1.') === 0 && process.version.indexOf('v1.8.') !== 0) {
7
- module.exports = { nextTick: nextTick };
8
- } else {
9
- module.exports = process
10
- }
11
-
12
- function nextTick(fn, arg1, arg2, arg3) {
13
- if (typeof fn !== 'function') {
14
- throw new TypeError('"callback" argument must be a function');
15
- }
16
- var len = arguments.length;
17
- var args, i;
18
- switch (len) {
19
- case 0:
20
- case 1:
21
- return process.nextTick(fn);
22
- case 2:
23
- return process.nextTick(function afterTickOne() {
24
- fn.call(null, arg1);
25
- });
26
- case 3:
27
- return process.nextTick(function afterTickTwo() {
28
- fn.call(null, arg1, arg2);
29
- });
30
- case 4:
31
- return process.nextTick(function afterTickThree() {
32
- fn.call(null, arg1, arg2, arg3);
33
- });
34
- default:
35
- args = new Array(len - 1);
36
- i = 0;
37
- while (i < args.length) {
38
- args[i++] = arguments[i];
39
- }
40
- return process.nextTick(function afterTick() {
41
- fn.apply(null, args);
42
- });
43
- }
44
- }
45
-
@@ -1,19 +0,0 @@
1
- # Copyright (c) 2015 Calvin Metcalf
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining a copy
4
- of this software and associated documentation files (the "Software"), to deal
5
- in the Software without restriction, including without limitation the rights
6
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
- copies of the Software, and to permit persons to whom the Software is
8
- furnished to do so, subject to the following conditions:
9
-
10
- The above copyright notice and this permission notice shall be included in all
11
- copies or substantial portions of the Software.
12
-
13
- **THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
- SOFTWARE.**
@@ -1,50 +0,0 @@
1
- {
2
- "_from": "process-nextick-args@~2.0.0",
3
- "_id": "process-nextick-args@2.0.1",
4
- "_inBundle": false,
5
- "_integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==",
6
- "_location": "/process-nextick-args",
7
- "_phantomChildren": {},
8
- "_requested": {
9
- "type": "range",
10
- "registry": true,
11
- "raw": "process-nextick-args@~2.0.0",
12
- "name": "process-nextick-args",
13
- "escapedName": "process-nextick-args",
14
- "rawSpec": "~2.0.0",
15
- "saveSpec": null,
16
- "fetchSpec": "~2.0.0"
17
- },
18
- "_requiredBy": [
19
- "/readable-stream"
20
- ],
21
- "_resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
22
- "_shasum": "7820d9b16120cc55ca9ae7792680ae7dba6d7fe2",
23
- "_spec": "process-nextick-args@~2.0.0",
24
- "_where": "/Users/user/Developer/personal/fsevents/node_modules/readable-stream",
25
- "author": "",
26
- "bugs": {
27
- "url": "https://github.com/calvinmetcalf/process-nextick-args/issues"
28
- },
29
- "bundleDependencies": false,
30
- "deprecated": false,
31
- "description": "process.nextTick but always with args",
32
- "devDependencies": {
33
- "tap": "~0.2.6"
34
- },
35
- "files": [
36
- "index.js"
37
- ],
38
- "homepage": "https://github.com/calvinmetcalf/process-nextick-args",
39
- "license": "MIT",
40
- "main": "index.js",
41
- "name": "process-nextick-args",
42
- "repository": {
43
- "type": "git",
44
- "url": "git+https://github.com/calvinmetcalf/process-nextick-args.git"
45
- },
46
- "scripts": {
47
- "test": "node test.js"
48
- },
49
- "version": "2.0.1"
50
- }
@@ -1,18 +0,0 @@
1
- process-nextick-args
2
- =====
3
-
4
- [![Build Status](https://travis-ci.org/calvinmetcalf/process-nextick-args.svg?branch=master)](https://travis-ci.org/calvinmetcalf/process-nextick-args)
5
-
6
- ```bash
7
- npm install --save process-nextick-args
8
- ```
9
-
10
- Always be able to pass arguments to process.nextTick, no matter the platform
11
-
12
- ```js
13
- var pna = require('process-nextick-args');
14
-
15
- pna.nextTick(function (a, b, c) {
16
- console.log(a, b, c);
17
- }, 'step', 3, 'profit');
18
- ```
@@ -1,15 +0,0 @@
1
- Apache License, Version 2.0
2
-
3
- Copyright (c) 2011 Dominic Tarr
4
-
5
- Licensed under the Apache License, Version 2.0 (the "License");
6
- you may not use this file except in compliance with the License.
7
- You may obtain a copy of the License at
8
-
9
- http://www.apache.org/licenses/LICENSE-2.0
10
-
11
- Unless required by applicable law or agreed to in writing, software
12
- distributed under the License is distributed on an "AS IS" BASIS,
13
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- See the License for the specific language governing permissions and
15
- limitations under the License.
@@ -1,26 +0,0 @@
1
- Copyright (c) 2013, Dominic Tarr
2
- All rights reserved.
3
-
4
- Redistribution and use in source and binary forms, with or without
5
- modification, are permitted provided that the following conditions are met:
6
-
7
- 1. Redistributions of source code must retain the above copyright notice, this
8
- list of conditions and the following disclaimer.
9
- 2. Redistributions in binary form must reproduce the above copyright notice,
10
- this list of conditions and the following disclaimer in the documentation
11
- and/or other materials provided with the distribution.
12
-
13
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
14
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
15
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
16
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
17
- ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
18
- (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
19
- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
20
- ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
22
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23
-
24
- The views and conclusions contained in the software and documentation are those
25
- of the authors and should not be interpreted as representing official policies,
26
- either expressed or implied, of the FreeBSD Project.
@@ -1,24 +0,0 @@
1
- The MIT License
2
-
3
- Copyright (c) 2011 Dominic Tarr
4
-
5
- Permission is hereby granted, free of charge,
6
- to any person obtaining a copy of this software and
7
- associated documentation files (the "Software"), to
8
- deal in the Software without restriction, including
9
- without limitation the rights to use, copy, modify,
10
- merge, publish, distribute, sublicense, and/or sell
11
- copies of the Software, and to permit persons to whom
12
- the Software is furnished to do so,
13
- subject to the following conditions:
14
-
15
- The above copyright notice and this permission notice
16
- shall be included in all copies or substantial portions of the Software.
17
-
18
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
20
- OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
21
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
22
- ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
23
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
24
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,227 +0,0 @@
1
- # rc
2
-
3
- The non-configurable configuration loader for lazy people.
4
-
5
- ## Usage
6
-
7
- The only option is to pass rc the name of your app, and your default configuration.
8
-
9
- ```javascript
10
- var conf = require('rc')(appname, {
11
- //defaults go here.
12
- port: 2468,
13
-
14
- //defaults which are objects will be merged, not replaced
15
- views: {
16
- engine: 'jade'
17
- }
18
- });
19
- ```
20
-
21
- `rc` will return your configuration options merged with the defaults you specify.
22
- If you pass in a predefined defaults object, it will be mutated:
23
-
24
- ```javascript
25
- var conf = {};
26
- require('rc')(appname, conf);
27
- ```
28
-
29
- If `rc` finds any config files for your app, the returned config object will have
30
- a `configs` array containing their paths:
31
-
32
- ```javascript
33
- var appCfg = require('rc')(appname, conf);
34
- appCfg.configs[0] // /etc/appnamerc
35
- appCfg.configs[1] // /home/dominictarr/.config/appname
36
- appCfg.config // same as appCfg.configs[appCfg.configs.length - 1]
37
- ```
38
-
39
- ## Standards
40
-
41
- Given your application name (`appname`), rc will look in all the obvious places for configuration.
42
-
43
- * command line arguments, parsed by minimist _(e.g. `--foo baz`, also nested: `--foo.bar=baz`)_
44
- * environment variables prefixed with `${appname}_`
45
- * or use "\_\_" to indicate nested properties <br/> _(e.g. `appname_foo__bar__baz` => `foo.bar.baz`)_
46
- * if you passed an option `--config file` then from that file
47
- * a local `.${appname}rc` or the first found looking in `./ ../ ../../ ../../../` etc.
48
- * `$HOME/.${appname}rc`
49
- * `$HOME/.${appname}/config`
50
- * `$HOME/.config/${appname}`
51
- * `$HOME/.config/${appname}/config`
52
- * `/etc/${appname}rc`
53
- * `/etc/${appname}/config`
54
- * the defaults object you passed in.
55
-
56
- All configuration sources that were found will be flattened into one object,
57
- so that sources **earlier** in this list override later ones.
58
-
59
-
60
- ## Configuration File Formats
61
-
62
- Configuration files (e.g. `.appnamerc`) may be in either [json](http://json.org/example) or [ini](http://en.wikipedia.org/wiki/INI_file) format. **No** file extension (`.json` or `.ini`) should be used. The example configurations below are equivalent:
63
-
64
-
65
- #### Formatted as `ini`
66
-
67
- ```
68
- ; You can include comments in `ini` format if you want.
69
-
70
- dependsOn=0.10.0
71
-
72
-
73
- ; `rc` has built-in support for ini sections, see?
74
-
75
- [commands]
76
- www = ./commands/www
77
- console = ./commands/repl
78
-
79
-
80
- ; You can even do nested sections
81
-
82
- [generators.options]
83
- engine = ejs
84
-
85
- [generators.modules]
86
- new = generate-new
87
- engine = generate-backend
88
-
89
- ```
90
-
91
- #### Formatted as `json`
92
-
93
- ```javascript
94
- {
95
- // You can even comment your JSON, if you want
96
- "dependsOn": "0.10.0",
97
- "commands": {
98
- "www": "./commands/www",
99
- "console": "./commands/repl"
100
- },
101
- "generators": {
102
- "options": {
103
- "engine": "ejs"
104
- },
105
- "modules": {
106
- "new": "generate-new",
107
- "backend": "generate-backend"
108
- }
109
- }
110
- }
111
- ```
112
-
113
- Comments are stripped from JSON config via [strip-json-comments](https://github.com/sindresorhus/strip-json-comments).
114
-
115
- > Since ini, and env variables do not have a standard for types, your application needs be prepared for strings.
116
-
117
- To ensure that string representations of booleans and numbers are always converted into their proper types (especially useful if you intend to do strict `===` comparisons), consider using a module such as [parse-strings-in-object](https://github.com/anselanza/parse-strings-in-object) to wrap the config object returned from rc.
118
-
119
-
120
- ## Simple example demonstrating precedence
121
- Assume you have an application like this (notice the hard-coded defaults passed to rc):
122
- ```
123
- const conf = require('rc')('myapp', {
124
- port: 12345,
125
- mode: 'test'
126
- });
127
-
128
- console.log(JSON.stringify(conf, null, 2));
129
- ```
130
- You also have a file `config.json`, with these contents:
131
- ```
132
- {
133
- "port": 9000,
134
- "foo": "from config json",
135
- "something": "else"
136
- }
137
- ```
138
- And a file `.myapprc` in the same folder, with these contents:
139
- ```
140
- {
141
- "port": "3001",
142
- "foo": "bar"
143
- }
144
- ```
145
- Here is the expected output from various commands:
146
-
147
- `node .`
148
- ```
149
- {
150
- "port": "3001",
151
- "mode": "test",
152
- "foo": "bar",
153
- "_": [],
154
- "configs": [
155
- "/Users/stephen/repos/conftest/.myapprc"
156
- ],
157
- "config": "/Users/stephen/repos/conftest/.myapprc"
158
- }
159
- ```
160
- *Default `mode` from hard-coded object is retained, but port is overridden by `.myapprc` file (automatically found based on appname match), and `foo` is added.*
161
-
162
-
163
- `node . --foo baz`
164
- ```
165
- {
166
- "port": "3001",
167
- "mode": "test",
168
- "foo": "baz",
169
- "_": [],
170
- "configs": [
171
- "/Users/stephen/repos/conftest/.myapprc"
172
- ],
173
- "config": "/Users/stephen/repos/conftest/.myapprc"
174
- }
175
- ```
176
- *Same result as above but `foo` is overridden because command-line arguments take precedence over `.myapprc` file.*
177
-
178
- `node . --foo barbar --config config.json`
179
- ```
180
- {
181
- "port": 9000,
182
- "mode": "test",
183
- "foo": "barbar",
184
- "something": "else",
185
- "_": [],
186
- "config": "config.json",
187
- "configs": [
188
- "/Users/stephen/repos/conftest/.myapprc",
189
- "config.json"
190
- ]
191
- }
192
- ```
193
- *Now the `port` comes from the `config.json` file specified (overriding the value from `.myapprc`), and `foo` value is overriden by command-line despite also being specified in the `config.json` file.*
194
-
195
-
196
-
197
- ## Advanced Usage
198
-
199
- #### Pass in your own `argv`
200
-
201
- You may pass in your own `argv` as the third argument to `rc`. This is in case you want to [use your own command-line opts parser](https://github.com/dominictarr/rc/pull/12).
202
-
203
- ```javascript
204
- require('rc')(appname, defaults, customArgvParser);
205
- ```
206
-
207
- ## Pass in your own parser
208
-
209
- If you have a special need to use a non-standard parser,
210
- you can do so by passing in the parser as the 4th argument.
211
- (leave the 3rd as null to get the default args parser)
212
-
213
- ```javascript
214
- require('rc')(appname, defaults, null, parser);
215
- ```
216
-
217
- This may also be used to force a more strict format,
218
- such as strict, valid JSON only.
219
-
220
- ## Note on Performance
221
-
222
- `rc` is running `fs.statSync`-- so make sure you don't use it in a hot code path (e.g. a request handler)
223
-
224
-
225
- ## License
226
-
227
- Multi-licensed under the two-clause BSD License, MIT License, or Apache License, version 2.0
@@ -1,7 +0,0 @@
1
-
2
- // when this is loaded into the browser,
3
- // just use the defaults...
4
-
5
- module.exports = function (name, defaults) {
6
- return defaults
7
- }
@@ -1,4 +0,0 @@
1
- #! /usr/bin/env node
2
- var rc = require('./index')
3
-
4
- console.log(JSON.stringify(rc(process.argv[2]), false, 2))
@@ -1,53 +0,0 @@
1
- var cc = require('./lib/utils')
2
- var join = require('path').join
3
- var deepExtend = require('deep-extend')
4
- var etc = '/etc'
5
- var win = process.platform === "win32"
6
- var home = win
7
- ? process.env.USERPROFILE
8
- : process.env.HOME
9
-
10
- module.exports = function (name, defaults, argv, parse) {
11
- if('string' !== typeof name)
12
- throw new Error('rc(name): name *must* be string')
13
- if(!argv)
14
- argv = require('minimist')(process.argv.slice(2))
15
- defaults = (
16
- 'string' === typeof defaults
17
- ? cc.json(defaults) : defaults
18
- ) || {}
19
-
20
- parse = parse || cc.parse
21
-
22
- var env = cc.env(name + '_')
23
-
24
- var configs = [defaults]
25
- var configFiles = []
26
- function addConfigFile (file) {
27
- if (configFiles.indexOf(file) >= 0) return
28
- var fileConfig = cc.file(file)
29
- if (fileConfig) {
30
- configs.push(parse(fileConfig))
31
- configFiles.push(file)
32
- }
33
- }
34
-
35
- // which files do we look at?
36
- if (!win)
37
- [join(etc, name, 'config'),
38
- join(etc, name + 'rc')].forEach(addConfigFile)
39
- if (home)
40
- [join(home, '.config', name, 'config'),
41
- join(home, '.config', name),
42
- join(home, '.' + name, 'config'),
43
- join(home, '.' + name + 'rc')].forEach(addConfigFile)
44
- addConfigFile(cc.find('.'+name+'rc'))
45
- if (env.config) addConfigFile(env.config)
46
- if (argv.config) addConfigFile(argv.config)
47
-
48
- return deepExtend.apply(null, configs.concat([
49
- env,
50
- argv,
51
- configFiles.length ? {configs: configFiles, config: configFiles[configFiles.length - 1]} : undefined,
52
- ]))
53
- }
@@ -1,104 +0,0 @@
1
- 'use strict';
2
- var fs = require('fs')
3
- var ini = require('ini')
4
- var path = require('path')
5
- var stripJsonComments = require('strip-json-comments')
6
-
7
- var parse = exports.parse = function (content) {
8
-
9
- //if it ends in .json or starts with { then it must be json.
10
- //must be done this way, because ini accepts everything.
11
- //can't just try and parse it and let it throw if it's not ini.
12
- //everything is ini. even json with a syntax error.
13
-
14
- if(/^\s*{/.test(content))
15
- return JSON.parse(stripJsonComments(content))
16
- return ini.parse(content)
17
-
18
- }
19
-
20
- var file = exports.file = function () {
21
- var args = [].slice.call(arguments).filter(function (arg) { return arg != null })
22
-
23
- //path.join breaks if it's a not a string, so just skip this.
24
- for(var i in args)
25
- if('string' !== typeof args[i])
26
- return
27
-
28
- var file = path.join.apply(null, args)
29
- var content
30
- try {
31
- return fs.readFileSync(file,'utf-8')
32
- } catch (err) {
33
- return
34
- }
35
- }
36
-
37
- var json = exports.json = function () {
38
- var content = file.apply(null, arguments)
39
- return content ? parse(content) : null
40
- }
41
-
42
- var env = exports.env = function (prefix, env) {
43
- env = env || process.env
44
- var obj = {}
45
- var l = prefix.length
46
- for(var k in env) {
47
- if(k.toLowerCase().indexOf(prefix.toLowerCase()) === 0) {
48
-
49
- var keypath = k.substring(l).split('__')
50
-
51
- // Trim empty strings from keypath array
52
- var _emptyStringIndex
53
- while ((_emptyStringIndex=keypath.indexOf('')) > -1) {
54
- keypath.splice(_emptyStringIndex, 1)
55
- }
56
-
57
- var cursor = obj
58
- keypath.forEach(function _buildSubObj(_subkey,i){
59
-
60
- // (check for _subkey first so we ignore empty strings)
61
- // (check for cursor to avoid assignment to primitive objects)
62
- if (!_subkey || typeof cursor !== 'object')
63
- return
64
-
65
- // If this is the last key, just stuff the value in there
66
- // Assigns actual value from env variable to final key
67
- // (unless it's just an empty string- in that case use the last valid key)
68
- if (i === keypath.length-1)
69
- cursor[_subkey] = env[k]
70
-
71
-
72
- // Build sub-object if nothing already exists at the keypath
73
- if (cursor[_subkey] === undefined)
74
- cursor[_subkey] = {}
75
-
76
- // Increment cursor used to track the object at the current depth
77
- cursor = cursor[_subkey]
78
-
79
- })
80
-
81
- }
82
-
83
- }
84
-
85
- return obj
86
- }
87
-
88
- var find = exports.find = function () {
89
- var rel = path.join.apply(null, [].slice.call(arguments))
90
-
91
- function find(start, rel) {
92
- var file = path.join(start, rel)
93
- try {
94
- fs.statSync(file)
95
- return file
96
- } catch (err) {
97
- if(path.dirname(start) !== start) // root
98
- return find(path.dirname(start), rel)
99
- }
100
- }
101
- return find(process.cwd(), rel)
102
- }
103
-
104
-
@@ -1,64 +0,0 @@
1
- {
2
- "_from": "rc@^1.2.7",
3
- "_id": "rc@1.2.8",
4
- "_inBundle": false,
5
- "_integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==",
6
- "_location": "/rc",
7
- "_phantomChildren": {},
8
- "_requested": {
9
- "type": "range",
10
- "registry": true,
11
- "raw": "rc@^1.2.7",
12
- "name": "rc",
13
- "escapedName": "rc",
14
- "rawSpec": "^1.2.7",
15
- "saveSpec": null,
16
- "fetchSpec": "^1.2.7"
17
- },
18
- "_requiredBy": [
19
- "/node-pre-gyp"
20
- ],
21
- "_resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz",
22
- "_shasum": "cd924bf5200a075b83c188cd6b9e211b7fc0d3ed",
23
- "_spec": "rc@^1.2.7",
24
- "_where": "/Users/user/Developer/personal/fsevents/node_modules/node-pre-gyp",
25
- "author": {
26
- "name": "Dominic Tarr",
27
- "email": "dominic.tarr@gmail.com",
28
- "url": "dominictarr.com"
29
- },
30
- "bin": {
31
- "rc": "cli.js"
32
- },
33
- "browser": "browser.js",
34
- "bugs": {
35
- "url": "https://github.com/dominictarr/rc/issues"
36
- },
37
- "bundleDependencies": false,
38
- "dependencies": {
39
- "deep-extend": "^0.6.0",
40
- "ini": "~1.3.0",
41
- "minimist": "^1.2.0",
42
- "strip-json-comments": "~2.0.1"
43
- },
44
- "deprecated": false,
45
- "description": "hardwired configuration loader",
46
- "homepage": "https://github.com/dominictarr/rc#readme",
47
- "keywords": [
48
- "config",
49
- "rc",
50
- "unix",
51
- "defaults"
52
- ],
53
- "license": "(BSD-2-Clause OR MIT OR Apache-2.0)",
54
- "main": "index.js",
55
- "name": "rc",
56
- "repository": {
57
- "type": "git",
58
- "url": "git+https://github.com/dominictarr/rc.git"
59
- },
60
- "scripts": {
61
- "test": "set -e; node test/test.js; node test/ini.js; node test/nested-env-vars.js"
62
- },
63
- "version": "1.2.8"
64
- }
@@ -1,16 +0,0 @@
1
- var cc =require('../lib/utils')
2
- var INI = require('ini')
3
- var assert = require('assert')
4
-
5
- function test(obj) {
6
-
7
- var _json, _ini
8
- var json = cc.parse (_json = JSON.stringify(obj))
9
- var ini = cc.parse (_ini = INI.stringify(obj))
10
- console.log(_ini, _json)
11
- assert.deepEqual(json, ini)
12
- }
13
-
14
-
15
- test({hello: true})
16
-