fsevents 1.2.9 → 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 (525) hide show
  1. package/.travis.yml +6 -4
  2. package/binding.gyp +1 -9
  3. package/fsevents.js +1 -3
  4. package/install.js +13 -7
  5. package/package.json +5 -17
  6. package/node_modules/abbrev/LICENSE +0 -46
  7. package/node_modules/abbrev/README.md +0 -23
  8. package/node_modules/abbrev/abbrev.js +0 -61
  9. package/node_modules/abbrev/package.json +0 -59
  10. package/node_modules/ansi-regex/index.js +0 -4
  11. package/node_modules/ansi-regex/license +0 -21
  12. package/node_modules/ansi-regex/package.json +0 -111
  13. package/node_modules/ansi-regex/readme.md +0 -39
  14. package/node_modules/aproba/LICENSE +0 -14
  15. package/node_modules/aproba/README.md +0 -94
  16. package/node_modules/aproba/index.js +0 -105
  17. package/node_modules/aproba/package.json +0 -65
  18. package/node_modules/are-we-there-yet/CHANGES.md +0 -37
  19. package/node_modules/are-we-there-yet/LICENSE +0 -5
  20. package/node_modules/are-we-there-yet/README.md +0 -195
  21. package/node_modules/are-we-there-yet/index.js +0 -4
  22. package/node_modules/are-we-there-yet/package.json +0 -66
  23. package/node_modules/are-we-there-yet/tracker-base.js +0 -11
  24. package/node_modules/are-we-there-yet/tracker-group.js +0 -107
  25. package/node_modules/are-we-there-yet/tracker-stream.js +0 -36
  26. package/node_modules/are-we-there-yet/tracker.js +0 -30
  27. package/node_modules/balanced-match/.npmignore +0 -5
  28. package/node_modules/balanced-match/LICENSE.md +0 -21
  29. package/node_modules/balanced-match/README.md +0 -91
  30. package/node_modules/balanced-match/index.js +0 -59
  31. package/node_modules/balanced-match/package.json +0 -80
  32. package/node_modules/brace-expansion/LICENSE +0 -21
  33. package/node_modules/brace-expansion/README.md +0 -129
  34. package/node_modules/brace-expansion/index.js +0 -201
  35. package/node_modules/brace-expansion/package.json +0 -78
  36. package/node_modules/chownr/LICENSE +0 -15
  37. package/node_modules/chownr/README.md +0 -3
  38. package/node_modules/chownr/chownr.js +0 -88
  39. package/node_modules/chownr/package.json +0 -62
  40. package/node_modules/code-point-at/index.js +0 -32
  41. package/node_modules/code-point-at/license +0 -21
  42. package/node_modules/code-point-at/package.json +0 -73
  43. package/node_modules/code-point-at/readme.md +0 -32
  44. package/node_modules/concat-map/.travis.yml +0 -4
  45. package/node_modules/concat-map/LICENSE +0 -18
  46. package/node_modules/concat-map/README.markdown +0 -62
  47. package/node_modules/concat-map/example/map.js +0 -6
  48. package/node_modules/concat-map/index.js +0 -13
  49. package/node_modules/concat-map/package.json +0 -91
  50. package/node_modules/concat-map/test/map.js +0 -39
  51. package/node_modules/console-control-strings/LICENSE +0 -13
  52. package/node_modules/console-control-strings/README.md +0 -145
  53. package/node_modules/console-control-strings/README.md~ +0 -140
  54. package/node_modules/console-control-strings/index.js +0 -125
  55. package/node_modules/console-control-strings/package.json +0 -64
  56. package/node_modules/core-util-is/LICENSE +0 -19
  57. package/node_modules/core-util-is/README.md +0 -3
  58. package/node_modules/core-util-is/float.patch +0 -604
  59. package/node_modules/core-util-is/lib/util.js +0 -107
  60. package/node_modules/core-util-is/package.json +0 -65
  61. package/node_modules/core-util-is/test.js +0 -68
  62. package/node_modules/debug/CHANGELOG.md +0 -395
  63. package/node_modules/debug/LICENSE +0 -19
  64. package/node_modules/debug/README.md +0 -455
  65. package/node_modules/debug/dist/debug.js +0 -912
  66. package/node_modules/debug/package.json +0 -105
  67. package/node_modules/debug/src/browser.js +0 -264
  68. package/node_modules/debug/src/common.js +0 -266
  69. package/node_modules/debug/src/index.js +0 -10
  70. package/node_modules/debug/src/node.js +0 -257
  71. package/node_modules/deep-extend/CHANGELOG.md +0 -46
  72. package/node_modules/deep-extend/LICENSE +0 -20
  73. package/node_modules/deep-extend/README.md +0 -91
  74. package/node_modules/deep-extend/index.js +0 -1
  75. package/node_modules/deep-extend/lib/deep-extend.js +0 -150
  76. package/node_modules/deep-extend/package.json +0 -95
  77. package/node_modules/delegates/.npmignore +0 -1
  78. package/node_modules/delegates/History.md +0 -22
  79. package/node_modules/delegates/License +0 -20
  80. package/node_modules/delegates/Makefile +0 -8
  81. package/node_modules/delegates/Readme.md +0 -94
  82. package/node_modules/delegates/index.js +0 -121
  83. package/node_modules/delegates/package.json +0 -51
  84. package/node_modules/delegates/test/index.js +0 -94
  85. package/node_modules/detect-libc/.npmignore +0 -7
  86. package/node_modules/detect-libc/LICENSE +0 -201
  87. package/node_modules/detect-libc/README.md +0 -78
  88. package/node_modules/detect-libc/bin/detect-libc.js +0 -18
  89. package/node_modules/detect-libc/lib/detect-libc.js +0 -92
  90. package/node_modules/detect-libc/package.json +0 -73
  91. package/node_modules/fs-minipass/LICENSE +0 -15
  92. package/node_modules/fs-minipass/README.md +0 -70
  93. package/node_modules/fs-minipass/index.js +0 -386
  94. package/node_modules/fs-minipass/package.json +0 -65
  95. package/node_modules/fs.realpath/LICENSE +0 -43
  96. package/node_modules/fs.realpath/README.md +0 -33
  97. package/node_modules/fs.realpath/index.js +0 -66
  98. package/node_modules/fs.realpath/old.js +0 -303
  99. package/node_modules/fs.realpath/package.json +0 -62
  100. package/node_modules/gauge/CHANGELOG.md +0 -160
  101. package/node_modules/gauge/LICENSE +0 -13
  102. package/node_modules/gauge/README.md +0 -399
  103. package/node_modules/gauge/base-theme.js +0 -14
  104. package/node_modules/gauge/error.js +0 -24
  105. package/node_modules/gauge/has-color.js +0 -12
  106. package/node_modules/gauge/index.js +0 -233
  107. package/node_modules/gauge/package.json +0 -94
  108. package/node_modules/gauge/plumbing.js +0 -48
  109. package/node_modules/gauge/process.js +0 -3
  110. package/node_modules/gauge/progress-bar.js +0 -35
  111. package/node_modules/gauge/render-template.js +0 -181
  112. package/node_modules/gauge/set-immediate.js +0 -7
  113. package/node_modules/gauge/set-interval.js +0 -3
  114. package/node_modules/gauge/spin.js +0 -5
  115. package/node_modules/gauge/template-item.js +0 -73
  116. package/node_modules/gauge/theme-set.js +0 -115
  117. package/node_modules/gauge/themes.js +0 -54
  118. package/node_modules/gauge/wide-truncate.js +0 -25
  119. package/node_modules/glob/LICENSE +0 -15
  120. package/node_modules/glob/README.md +0 -368
  121. package/node_modules/glob/changelog.md +0 -67
  122. package/node_modules/glob/common.js +0 -240
  123. package/node_modules/glob/glob.js +0 -790
  124. package/node_modules/glob/package.json +0 -79
  125. package/node_modules/glob/sync.js +0 -486
  126. package/node_modules/has-unicode/LICENSE +0 -14
  127. package/node_modules/has-unicode/README.md +0 -43
  128. package/node_modules/has-unicode/index.js +0 -16
  129. package/node_modules/has-unicode/package.json +0 -61
  130. package/node_modules/iconv-lite/Changelog.md +0 -162
  131. package/node_modules/iconv-lite/LICENSE +0 -21
  132. package/node_modules/iconv-lite/README.md +0 -156
  133. package/node_modules/iconv-lite/encodings/dbcs-codec.js +0 -555
  134. package/node_modules/iconv-lite/encodings/dbcs-data.js +0 -176
  135. package/node_modules/iconv-lite/encodings/index.js +0 -22
  136. package/node_modules/iconv-lite/encodings/internal.js +0 -188
  137. package/node_modules/iconv-lite/encodings/sbcs-codec.js +0 -72
  138. package/node_modules/iconv-lite/encodings/sbcs-data-generated.js +0 -451
  139. package/node_modules/iconv-lite/encodings/sbcs-data.js +0 -174
  140. package/node_modules/iconv-lite/encodings/tables/big5-added.json +0 -122
  141. package/node_modules/iconv-lite/encodings/tables/cp936.json +0 -264
  142. package/node_modules/iconv-lite/encodings/tables/cp949.json +0 -273
  143. package/node_modules/iconv-lite/encodings/tables/cp950.json +0 -177
  144. package/node_modules/iconv-lite/encodings/tables/eucjp.json +0 -182
  145. package/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +0 -1
  146. package/node_modules/iconv-lite/encodings/tables/gbk-added.json +0 -55
  147. package/node_modules/iconv-lite/encodings/tables/shiftjis.json +0 -125
  148. package/node_modules/iconv-lite/encodings/utf16.js +0 -177
  149. package/node_modules/iconv-lite/encodings/utf7.js +0 -290
  150. package/node_modules/iconv-lite/lib/bom-handling.js +0 -52
  151. package/node_modules/iconv-lite/lib/extend-node.js +0 -217
  152. package/node_modules/iconv-lite/lib/index.d.ts +0 -24
  153. package/node_modules/iconv-lite/lib/index.js +0 -153
  154. package/node_modules/iconv-lite/lib/streams.js +0 -121
  155. package/node_modules/iconv-lite/package.json +0 -79
  156. package/node_modules/ignore-walk/LICENSE +0 -15
  157. package/node_modules/ignore-walk/README.md +0 -60
  158. package/node_modules/ignore-walk/index.js +0 -265
  159. package/node_modules/ignore-walk/package.json +0 -74
  160. package/node_modules/inflight/LICENSE +0 -15
  161. package/node_modules/inflight/README.md +0 -37
  162. package/node_modules/inflight/inflight.js +0 -54
  163. package/node_modules/inflight/package.json +0 -61
  164. package/node_modules/inherits/LICENSE +0 -16
  165. package/node_modules/inherits/README.md +0 -42
  166. package/node_modules/inherits/inherits.js +0 -7
  167. package/node_modules/inherits/inherits_browser.js +0 -23
  168. package/node_modules/inherits/package.json +0 -65
  169. package/node_modules/ini/LICENSE +0 -15
  170. package/node_modules/ini/README.md +0 -102
  171. package/node_modules/ini/ini.js +0 -194
  172. package/node_modules/ini/package.json +0 -66
  173. package/node_modules/is-fullwidth-code-point/index.js +0 -46
  174. package/node_modules/is-fullwidth-code-point/license +0 -21
  175. package/node_modules/is-fullwidth-code-point/package.json +0 -80
  176. package/node_modules/is-fullwidth-code-point/readme.md +0 -39
  177. package/node_modules/isarray/.npmignore +0 -1
  178. package/node_modules/isarray/.travis.yml +0 -4
  179. package/node_modules/isarray/Makefile +0 -6
  180. package/node_modules/isarray/README.md +0 -60
  181. package/node_modules/isarray/component.json +0 -19
  182. package/node_modules/isarray/index.js +0 -5
  183. package/node_modules/isarray/package.json +0 -76
  184. package/node_modules/isarray/test.js +0 -20
  185. package/node_modules/minimatch/LICENSE +0 -15
  186. package/node_modules/minimatch/README.md +0 -209
  187. package/node_modules/minimatch/minimatch.js +0 -923
  188. package/node_modules/minimatch/package.json +0 -67
  189. package/node_modules/minimist/.travis.yml +0 -4
  190. package/node_modules/minimist/LICENSE +0 -18
  191. package/node_modules/minimist/example/parse.js +0 -2
  192. package/node_modules/minimist/index.js +0 -187
  193. package/node_modules/minimist/package.json +0 -74
  194. package/node_modules/minimist/readme.markdown +0 -73
  195. package/node_modules/minimist/test/dash.js +0 -24
  196. package/node_modules/minimist/test/default_bool.js +0 -20
  197. package/node_modules/minimist/test/dotted.js +0 -16
  198. package/node_modules/minimist/test/long.js +0 -31
  199. package/node_modules/minimist/test/parse.js +0 -318
  200. package/node_modules/minimist/test/parse_modified.js +0 -9
  201. package/node_modules/minimist/test/short.js +0 -67
  202. package/node_modules/minimist/test/whitespace.js +0 -8
  203. package/node_modules/minipass/LICENSE +0 -15
  204. package/node_modules/minipass/README.md +0 -124
  205. package/node_modules/minipass/index.js +0 -375
  206. package/node_modules/minipass/package.json +0 -72
  207. package/node_modules/minizlib/LICENSE +0 -26
  208. package/node_modules/minizlib/README.md +0 -44
  209. package/node_modules/minizlib/constants.js +0 -46
  210. package/node_modules/minizlib/index.js +0 -335
  211. package/node_modules/minizlib/package.json +0 -74
  212. package/node_modules/mkdirp/.travis.yml +0 -8
  213. package/node_modules/mkdirp/LICENSE +0 -21
  214. package/node_modules/mkdirp/bin/cmd.js +0 -33
  215. package/node_modules/mkdirp/bin/usage.txt +0 -12
  216. package/node_modules/mkdirp/examples/pow.js +0 -6
  217. package/node_modules/mkdirp/index.js +0 -98
  218. package/node_modules/mkdirp/package.json +0 -66
  219. package/node_modules/mkdirp/readme.markdown +0 -100
  220. package/node_modules/mkdirp/test/chmod.js +0 -41
  221. package/node_modules/mkdirp/test/clobber.js +0 -38
  222. package/node_modules/mkdirp/test/mkdirp.js +0 -28
  223. package/node_modules/mkdirp/test/opts_fs.js +0 -29
  224. package/node_modules/mkdirp/test/opts_fs_sync.js +0 -27
  225. package/node_modules/mkdirp/test/perm.js +0 -32
  226. package/node_modules/mkdirp/test/perm_sync.js +0 -36
  227. package/node_modules/mkdirp/test/race.js +0 -37
  228. package/node_modules/mkdirp/test/rel.js +0 -32
  229. package/node_modules/mkdirp/test/return.js +0 -25
  230. package/node_modules/mkdirp/test/return_sync.js +0 -24
  231. package/node_modules/mkdirp/test/root.js +0 -19
  232. package/node_modules/mkdirp/test/sync.js +0 -32
  233. package/node_modules/mkdirp/test/umask.js +0 -28
  234. package/node_modules/mkdirp/test/umask_sync.js +0 -32
  235. package/node_modules/ms/index.js +0 -162
  236. package/node_modules/ms/license.md +0 -21
  237. package/node_modules/ms/package.json +0 -72
  238. package/node_modules/ms/readme.md +0 -60
  239. package/node_modules/needle/.npmignore +0 -6
  240. package/node_modules/needle/README.md +0 -593
  241. package/node_modules/needle/bin/needle +0 -40
  242. package/node_modules/needle/examples/deflated-stream.js +0 -22
  243. package/node_modules/needle/examples/digest-auth.js +0 -16
  244. package/node_modules/needle/examples/download-to-file.js +0 -18
  245. package/node_modules/needle/examples/multipart-stream.js +0 -25
  246. package/node_modules/needle/examples/parsed-stream.js +0 -23
  247. package/node_modules/needle/examples/parsed-stream2.js +0 -21
  248. package/node_modules/needle/examples/stream-events.js +0 -23
  249. package/node_modules/needle/examples/stream-to-file.js +0 -14
  250. package/node_modules/needle/examples/upload-image.js +0 -51
  251. package/node_modules/needle/lib/auth.js +0 -110
  252. package/node_modules/needle/lib/cookies.js +0 -79
  253. package/node_modules/needle/lib/decoder.js +0 -53
  254. package/node_modules/needle/lib/multipart.js +0 -98
  255. package/node_modules/needle/lib/needle.js +0 -795
  256. package/node_modules/needle/lib/parsers.js +0 -120
  257. package/node_modules/needle/lib/querystring.js +0 -49
  258. package/node_modules/needle/license.txt +0 -19
  259. package/node_modules/needle/package-lock.json +0 -395
  260. package/node_modules/needle/package.json +0 -105
  261. package/node_modules/needle/test/basic_auth_spec.js +0 -196
  262. package/node_modules/needle/test/compression_spec.js +0 -94
  263. package/node_modules/needle/test/cookies_spec.js +0 -305
  264. package/node_modules/needle/test/decoder_spec.js +0 -86
  265. package/node_modules/needle/test/errors_spec.js +0 -286
  266. package/node_modules/needle/test/headers_spec.js +0 -198
  267. package/node_modules/needle/test/helpers.js +0 -72
  268. package/node_modules/needle/test/keys/ssl.cert +0 -21
  269. package/node_modules/needle/test/keys/ssl.key +0 -27
  270. package/node_modules/needle/test/long_string_spec.js +0 -34
  271. package/node_modules/needle/test/output_spec.js +0 -254
  272. package/node_modules/needle/test/parsing_spec.js +0 -494
  273. package/node_modules/needle/test/post_data_spec.js +0 -1021
  274. package/node_modules/needle/test/proxy_spec.js +0 -202
  275. package/node_modules/needle/test/querystring_spec.js +0 -128
  276. package/node_modules/needle/test/redirect_spec.js +0 -392
  277. package/node_modules/needle/test/redirect_with_timeout.js +0 -45
  278. package/node_modules/needle/test/request_stream_spec.js +0 -202
  279. package/node_modules/needle/test/response_stream_spec.js +0 -139
  280. package/node_modules/needle/test/socket_pool_spec.js +0 -66
  281. package/node_modules/needle/test/url_spec.js +0 -155
  282. package/node_modules/needle/test/utils/formidable.js +0 -17
  283. package/node_modules/needle/test/utils/proxy.js +0 -62
  284. package/node_modules/needle/test/utils/test.js +0 -104
  285. package/node_modules/node-pre-gyp/CHANGELOG.md +0 -432
  286. package/node_modules/node-pre-gyp/LICENSE +0 -27
  287. package/node_modules/node-pre-gyp/README.md +0 -693
  288. package/node_modules/node-pre-gyp/appveyor.yml +0 -30
  289. package/node_modules/node-pre-gyp/bin/node-pre-gyp +0 -134
  290. package/node_modules/node-pre-gyp/bin/node-pre-gyp.cmd +0 -2
  291. package/node_modules/node-pre-gyp/contributing.md +0 -10
  292. package/node_modules/node-pre-gyp/lib/build.js +0 -51
  293. package/node_modules/node-pre-gyp/lib/clean.js +0 -32
  294. package/node_modules/node-pre-gyp/lib/configure.js +0 -52
  295. package/node_modules/node-pre-gyp/lib/info.js +0 -40
  296. package/node_modules/node-pre-gyp/lib/install.js +0 -255
  297. package/node_modules/node-pre-gyp/lib/node-pre-gyp.js +0 -203
  298. package/node_modules/node-pre-gyp/lib/package.js +0 -56
  299. package/node_modules/node-pre-gyp/lib/pre-binding.js +0 -30
  300. package/node_modules/node-pre-gyp/lib/publish.js +0 -79
  301. package/node_modules/node-pre-gyp/lib/rebuild.js +0 -21
  302. package/node_modules/node-pre-gyp/lib/reinstall.js +0 -20
  303. package/node_modules/node-pre-gyp/lib/reveal.js +0 -33
  304. package/node_modules/node-pre-gyp/lib/testbinary.js +0 -81
  305. package/node_modules/node-pre-gyp/lib/testpackage.js +0 -55
  306. package/node_modules/node-pre-gyp/lib/unpublish.js +0 -43
  307. package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +0 -1830
  308. package/node_modules/node-pre-gyp/lib/util/compile.js +0 -87
  309. package/node_modules/node-pre-gyp/lib/util/handle_gyp_opts.js +0 -103
  310. package/node_modules/node-pre-gyp/lib/util/napi.js +0 -204
  311. package/node_modules/node-pre-gyp/lib/util/nw-pre-gyp/index.html +0 -26
  312. package/node_modules/node-pre-gyp/lib/util/nw-pre-gyp/package.json +0 -9
  313. package/node_modules/node-pre-gyp/lib/util/s3_setup.js +0 -27
  314. package/node_modules/node-pre-gyp/lib/util/versioning.js +0 -331
  315. package/node_modules/node-pre-gyp/package.json +0 -89
  316. package/node_modules/nopt/.npmignore +0 -1
  317. package/node_modules/nopt/.travis.yml +0 -8
  318. package/node_modules/nopt/CHANGELOG.md +0 -58
  319. package/node_modules/nopt/LICENSE +0 -15
  320. package/node_modules/nopt/README.md +0 -213
  321. package/node_modules/nopt/bin/nopt.js +0 -54
  322. package/node_modules/nopt/examples/my-program.js +0 -30
  323. package/node_modules/nopt/lib/nopt.js +0 -436
  324. package/node_modules/nopt/package.json +0 -61
  325. package/node_modules/nopt/test/basic.js +0 -303
  326. package/node_modules/npm-bundled/LICENSE +0 -15
  327. package/node_modules/npm-bundled/README.md +0 -48
  328. package/node_modules/npm-bundled/index.js +0 -241
  329. package/node_modules/npm-bundled/package.json +0 -63
  330. package/node_modules/npm-packlist/LICENSE +0 -15
  331. package/node_modules/npm-packlist/README.md +0 -68
  332. package/node_modules/npm-packlist/index.js +0 -250
  333. package/node_modules/npm-packlist/package.json +0 -69
  334. package/node_modules/npmlog/CHANGELOG.md +0 -49
  335. package/node_modules/npmlog/LICENSE +0 -15
  336. package/node_modules/npmlog/README.md +0 -216
  337. package/node_modules/npmlog/log.js +0 -309
  338. package/node_modules/npmlog/package.json +0 -64
  339. package/node_modules/number-is-nan/index.js +0 -4
  340. package/node_modules/number-is-nan/license +0 -21
  341. package/node_modules/number-is-nan/package.json +0 -70
  342. package/node_modules/number-is-nan/readme.md +0 -28
  343. package/node_modules/object-assign/index.js +0 -90
  344. package/node_modules/object-assign/license +0 -21
  345. package/node_modules/object-assign/package.json +0 -77
  346. package/node_modules/object-assign/readme.md +0 -61
  347. package/node_modules/once/LICENSE +0 -15
  348. package/node_modules/once/README.md +0 -79
  349. package/node_modules/once/once.js +0 -42
  350. package/node_modules/once/package.json +0 -70
  351. package/node_modules/os-homedir/index.js +0 -24
  352. package/node_modules/os-homedir/license +0 -21
  353. package/node_modules/os-homedir/package.json +0 -76
  354. package/node_modules/os-homedir/readme.md +0 -31
  355. package/node_modules/os-tmpdir/index.js +0 -25
  356. package/node_modules/os-tmpdir/license +0 -21
  357. package/node_modules/os-tmpdir/package.json +0 -76
  358. package/node_modules/os-tmpdir/readme.md +0 -32
  359. package/node_modules/osenv/LICENSE +0 -15
  360. package/node_modules/osenv/README.md +0 -63
  361. package/node_modules/osenv/osenv.js +0 -72
  362. package/node_modules/osenv/package.json +0 -76
  363. package/node_modules/path-is-absolute/index.js +0 -20
  364. package/node_modules/path-is-absolute/license +0 -21
  365. package/node_modules/path-is-absolute/package.json +0 -78
  366. package/node_modules/path-is-absolute/readme.md +0 -59
  367. package/node_modules/process-nextick-args/index.js +0 -44
  368. package/node_modules/process-nextick-args/license.md +0 -19
  369. package/node_modules/process-nextick-args/package.json +0 -53
  370. package/node_modules/process-nextick-args/readme.md +0 -18
  371. package/node_modules/rc/LICENSE.APACHE2 +0 -15
  372. package/node_modules/rc/LICENSE.BSD +0 -26
  373. package/node_modules/rc/LICENSE.MIT +0 -24
  374. package/node_modules/rc/README.md +0 -227
  375. package/node_modules/rc/browser.js +0 -7
  376. package/node_modules/rc/cli.js +0 -4
  377. package/node_modules/rc/index.js +0 -53
  378. package/node_modules/rc/lib/utils.js +0 -104
  379. package/node_modules/rc/node_modules/minimist/.travis.yml +0 -8
  380. package/node_modules/rc/node_modules/minimist/LICENSE +0 -18
  381. package/node_modules/rc/node_modules/minimist/example/parse.js +0 -2
  382. package/node_modules/rc/node_modules/minimist/index.js +0 -236
  383. package/node_modules/rc/node_modules/minimist/package.json +0 -76
  384. package/node_modules/rc/node_modules/minimist/readme.markdown +0 -91
  385. package/node_modules/rc/node_modules/minimist/test/all_bool.js +0 -32
  386. package/node_modules/rc/node_modules/minimist/test/bool.js +0 -166
  387. package/node_modules/rc/node_modules/minimist/test/dash.js +0 -31
  388. package/node_modules/rc/node_modules/minimist/test/default_bool.js +0 -35
  389. package/node_modules/rc/node_modules/minimist/test/dotted.js +0 -22
  390. package/node_modules/rc/node_modules/minimist/test/kv_short.js +0 -16
  391. package/node_modules/rc/node_modules/minimist/test/long.js +0 -31
  392. package/node_modules/rc/node_modules/minimist/test/num.js +0 -36
  393. package/node_modules/rc/node_modules/minimist/test/parse.js +0 -197
  394. package/node_modules/rc/node_modules/minimist/test/parse_modified.js +0 -9
  395. package/node_modules/rc/node_modules/minimist/test/short.js +0 -67
  396. package/node_modules/rc/node_modules/minimist/test/stop_early.js +0 -15
  397. package/node_modules/rc/node_modules/minimist/test/unknown.js +0 -102
  398. package/node_modules/rc/node_modules/minimist/test/whitespace.js +0 -8
  399. package/node_modules/rc/package.json +0 -67
  400. package/node_modules/rc/test/ini.js +0 -16
  401. package/node_modules/rc/test/nested-env-vars.js +0 -50
  402. package/node_modules/rc/test/test.js +0 -59
  403. package/node_modules/readable-stream/.travis.yml +0 -55
  404. package/node_modules/readable-stream/CONTRIBUTING.md +0 -38
  405. package/node_modules/readable-stream/GOVERNANCE.md +0 -136
  406. package/node_modules/readable-stream/LICENSE +0 -47
  407. package/node_modules/readable-stream/README.md +0 -58
  408. package/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +0 -60
  409. package/node_modules/readable-stream/duplex-browser.js +0 -1
  410. package/node_modules/readable-stream/duplex.js +0 -1
  411. package/node_modules/readable-stream/lib/_stream_duplex.js +0 -131
  412. package/node_modules/readable-stream/lib/_stream_passthrough.js +0 -47
  413. package/node_modules/readable-stream/lib/_stream_readable.js +0 -1019
  414. package/node_modules/readable-stream/lib/_stream_transform.js +0 -214
  415. package/node_modules/readable-stream/lib/_stream_writable.js +0 -687
  416. package/node_modules/readable-stream/lib/internal/streams/BufferList.js +0 -79
  417. package/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -74
  418. package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
  419. package/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
  420. package/node_modules/readable-stream/package.json +0 -84
  421. package/node_modules/readable-stream/passthrough.js +0 -1
  422. package/node_modules/readable-stream/readable-browser.js +0 -7
  423. package/node_modules/readable-stream/readable.js +0 -19
  424. package/node_modules/readable-stream/transform.js +0 -1
  425. package/node_modules/readable-stream/writable-browser.js +0 -1
  426. package/node_modules/readable-stream/writable.js +0 -8
  427. package/node_modules/rimraf/LICENSE +0 -15
  428. package/node_modules/rimraf/README.md +0 -101
  429. package/node_modules/rimraf/bin.js +0 -50
  430. package/node_modules/rimraf/package.json +0 -70
  431. package/node_modules/rimraf/rimraf.js +0 -364
  432. package/node_modules/safe-buffer/LICENSE +0 -21
  433. package/node_modules/safe-buffer/README.md +0 -584
  434. package/node_modules/safe-buffer/index.d.ts +0 -187
  435. package/node_modules/safe-buffer/index.js +0 -62
  436. package/node_modules/safe-buffer/package.json +0 -68
  437. package/node_modules/safer-buffer/LICENSE +0 -21
  438. package/node_modules/safer-buffer/Porting-Buffer.md +0 -268
  439. package/node_modules/safer-buffer/Readme.md +0 -156
  440. package/node_modules/safer-buffer/dangerous.js +0 -58
  441. package/node_modules/safer-buffer/package.json +0 -63
  442. package/node_modules/safer-buffer/safer.js +0 -77
  443. package/node_modules/safer-buffer/tests.js +0 -406
  444. package/node_modules/sax/LICENSE +0 -41
  445. package/node_modules/sax/README.md +0 -225
  446. package/node_modules/sax/lib/sax.js +0 -1565
  447. package/node_modules/sax/package.json +0 -64
  448. package/node_modules/semver/CHANGELOG.md +0 -39
  449. package/node_modules/semver/LICENSE +0 -15
  450. package/node_modules/semver/README.md +0 -411
  451. package/node_modules/semver/bin/semver +0 -160
  452. package/node_modules/semver/package.json +0 -63
  453. package/node_modules/semver/range.bnf +0 -16
  454. package/node_modules/semver/semver.js +0 -1483
  455. package/node_modules/set-blocking/CHANGELOG.md +0 -26
  456. package/node_modules/set-blocking/LICENSE.txt +0 -14
  457. package/node_modules/set-blocking/README.md +0 -31
  458. package/node_modules/set-blocking/index.js +0 -7
  459. package/node_modules/set-blocking/package.json +0 -73
  460. package/node_modules/signal-exit/CHANGELOG.md +0 -27
  461. package/node_modules/signal-exit/LICENSE.txt +0 -16
  462. package/node_modules/signal-exit/README.md +0 -40
  463. package/node_modules/signal-exit/index.js +0 -157
  464. package/node_modules/signal-exit/package.json +0 -69
  465. package/node_modules/signal-exit/signals.js +0 -53
  466. package/node_modules/string-width/index.js +0 -37
  467. package/node_modules/string-width/license +0 -21
  468. package/node_modules/string-width/package.json +0 -92
  469. package/node_modules/string-width/readme.md +0 -42
  470. package/node_modules/string_decoder/.travis.yml +0 -50
  471. package/node_modules/string_decoder/LICENSE +0 -48
  472. package/node_modules/string_decoder/README.md +0 -47
  473. package/node_modules/string_decoder/lib/string_decoder.js +0 -296
  474. package/node_modules/string_decoder/package.json +0 -62
  475. package/node_modules/strip-ansi/index.js +0 -6
  476. package/node_modules/strip-ansi/license +0 -21
  477. package/node_modules/strip-ansi/package.json +0 -105
  478. package/node_modules/strip-ansi/readme.md +0 -33
  479. package/node_modules/strip-json-comments/index.js +0 -70
  480. package/node_modules/strip-json-comments/license +0 -21
  481. package/node_modules/strip-json-comments/package.json +0 -77
  482. package/node_modules/strip-json-comments/readme.md +0 -64
  483. package/node_modules/tar/LICENSE +0 -15
  484. package/node_modules/tar/README.md +0 -954
  485. package/node_modules/tar/index.js +0 -18
  486. package/node_modules/tar/lib/buffer.js +0 -11
  487. package/node_modules/tar/lib/create.js +0 -105
  488. package/node_modules/tar/lib/extract.js +0 -112
  489. package/node_modules/tar/lib/header.js +0 -289
  490. package/node_modules/tar/lib/high-level-opt.js +0 -29
  491. package/node_modules/tar/lib/large-numbers.js +0 -92
  492. package/node_modules/tar/lib/list.js +0 -130
  493. package/node_modules/tar/lib/mkdir.js +0 -206
  494. package/node_modules/tar/lib/mode-fix.js +0 -14
  495. package/node_modules/tar/lib/pack.js +0 -404
  496. package/node_modules/tar/lib/parse.js +0 -423
  497. package/node_modules/tar/lib/pax.js +0 -146
  498. package/node_modules/tar/lib/read-entry.js +0 -94
  499. package/node_modules/tar/lib/replace.js +0 -220
  500. package/node_modules/tar/lib/types.js +0 -44
  501. package/node_modules/tar/lib/unpack.js +0 -621
  502. package/node_modules/tar/lib/update.js +0 -36
  503. package/node_modules/tar/lib/warn-mixin.js +0 -14
  504. package/node_modules/tar/lib/winchars.js +0 -23
  505. package/node_modules/tar/lib/write-entry.js +0 -422
  506. package/node_modules/tar/package.json +0 -81
  507. package/node_modules/util-deprecate/History.md +0 -16
  508. package/node_modules/util-deprecate/LICENSE +0 -24
  509. package/node_modules/util-deprecate/README.md +0 -53
  510. package/node_modules/util-deprecate/browser.js +0 -67
  511. package/node_modules/util-deprecate/node.js +0 -6
  512. package/node_modules/util-deprecate/package.json +0 -59
  513. package/node_modules/wide-align/LICENSE +0 -14
  514. package/node_modules/wide-align/README.md +0 -47
  515. package/node_modules/wide-align/align.js +0 -65
  516. package/node_modules/wide-align/package.json +0 -69
  517. package/node_modules/wrappy/LICENSE +0 -15
  518. package/node_modules/wrappy/README.md +0 -36
  519. package/node_modules/wrappy/package.json +0 -62
  520. package/node_modules/wrappy/wrappy.js +0 -33
  521. package/node_modules/yallist/LICENSE +0 -15
  522. package/node_modules/yallist/README.md +0 -204
  523. package/node_modules/yallist/iterator.js +0 -8
  524. package/node_modules/yallist/package.json +0 -66
  525. package/node_modules/yallist/yallist.js +0 -376
@@ -1,693 +0,0 @@
1
- # node-pre-gyp
2
-
3
- #### node-pre-gyp makes it easy to publish and install Node.js C++ addons from binaries
4
-
5
- [![NPM](https://nodei.co/npm/node-pre-gyp.png?downloads=true&downloadRank=true)](https://nodei.co/npm/node-pre-gyp/)
6
-
7
- [![Build Status](https://api.travis-ci.org/mapbox/node-pre-gyp.svg)](https://travis-ci.org/mapbox/node-pre-gyp)
8
- [![Build status](https://ci.appveyor.com/api/projects/status/3nxewb425y83c0gv)](https://ci.appveyor.com/project/Mapbox/node-pre-gyp)
9
- [![Dependencies](https://david-dm.org/mapbox/node-pre-gyp.svg)](https://david-dm.org/mapbox/node-pre-gyp)
10
-
11
- `node-pre-gyp` stands between [npm](https://github.com/npm/npm) and [node-gyp](https://github.com/Tootallnate/node-gyp) and offers a cross-platform method of binary deployment.
12
-
13
- ### Features
14
-
15
- - A command line tool called `node-pre-gyp` that can install your package's C++ module from a binary.
16
- - A variety of developer targeted commands for packaging, testing, and publishing binaries.
17
- - A JavaScript module that can dynamically require your installed binary: `require('node-pre-gyp').find`
18
-
19
- For a hello world example of a module packaged with `node-pre-gyp` see <https://github.com/springmeyer/node-addon-example> and [the wiki ](https://github.com/mapbox/node-pre-gyp/wiki/Modules-using-node-pre-gyp) for real world examples.
20
-
21
- ## Credits
22
-
23
- - The module is modeled after [node-gyp](https://github.com/Tootallnate/node-gyp) by [@Tootallnate](https://github.com/Tootallnate)
24
- - Motivation for initial development came from [@ErisDS](https://github.com/ErisDS) and the [Ghost Project](https://github.com/TryGhost/Ghost).
25
- - Development is sponsored by [Mapbox](https://www.mapbox.com/)
26
-
27
- ## FAQ
28
-
29
- See the [Frequently Ask Questions](https://github.com/mapbox/node-pre-gyp/wiki/FAQ).
30
-
31
- ## Depends
32
-
33
- - Node.js >= node v6.x
34
-
35
- ## Install
36
-
37
- `node-pre-gyp` is designed to be installed as a local dependency of your Node.js C++ addon and accessed like:
38
-
39
- ./node_modules/.bin/node-pre-gyp --help
40
-
41
- But you can also install it globally:
42
-
43
- npm install node-pre-gyp -g
44
-
45
- ## Usage
46
-
47
- ### Commands
48
-
49
- View all possible commands:
50
-
51
- node-pre-gyp --help
52
-
53
- - clean - Remove the entire folder containing the compiled .node module
54
- - install - Install pre-built binary for module
55
- - reinstall - Run "clean" and "install" at once
56
- - build - Compile the module by dispatching to node-gyp or nw-gyp
57
- - rebuild - Run "clean" and "build" at once
58
- - package - Pack binary into tarball
59
- - testpackage - Test that the staged package is valid
60
- - publish - Publish pre-built binary
61
- - unpublish - Unpublish pre-built binary
62
- - info - Fetch info on published binaries
63
-
64
- You can also chain commands:
65
-
66
- node-pre-gyp clean build unpublish publish info
67
-
68
- ### Options
69
-
70
- Options include:
71
-
72
- - `-C/--directory`: run the command in this directory
73
- - `--build-from-source`: build from source instead of using pre-built binary
74
- - `--update-binary`: reinstall by replacing previously installed local binary with remote binary
75
- - `--runtime=node-webkit`: customize the runtime: `node`, `electron` and `node-webkit` are the valid options
76
- - `--fallback-to-build`: fallback to building from source if pre-built binary is not available
77
- - `--target=0.4.0`: Pass the target node or node-webkit version to compile against
78
- - `--target_arch=ia32`: Pass the target arch and override the host `arch`. Valid values are 'ia32','x64', or `arm`.
79
- - `--target_platform=win32`: Pass the target platform and override the host `platform`. Valid values are `linux`, `darwin`, `win32`, `sunos`, `freebsd`, `openbsd`, and `aix`.
80
-
81
- Both `--build-from-source` and `--fallback-to-build` can be passed alone or they can provide values. You can pass `--fallback-to-build=false` to override the option as declared in package.json. In addition to being able to pass `--build-from-source` you can also pass `--build-from-source=myapp` where `myapp` is the name of your module.
82
-
83
- For example: `npm install --build-from-source=myapp`. This is useful if:
84
-
85
- - `myapp` is referenced in the package.json of a larger app and therefore `myapp` is being installed as a dependency with `npm install`.
86
- - The larger app also depends on other modules installed with `node-pre-gyp`
87
- - You only want to trigger a source compile for `myapp` and the other modules.
88
-
89
- ### Configuring
90
-
91
- This is a guide to configuring your module to use node-pre-gyp.
92
-
93
- #### 1) Add new entries to your `package.json`
94
-
95
- - Add `node-pre-gyp` to `dependencies`
96
- - Add `aws-sdk` as a `devDependency`
97
- - Add a custom `install` script
98
- - Declare a `binary` object
99
-
100
- This looks like:
101
-
102
- ```js
103
- "dependencies" : {
104
- "node-pre-gyp": "0.6.x"
105
- },
106
- "devDependencies": {
107
- "aws-sdk": "2.x"
108
- }
109
- "scripts": {
110
- "install": "node-pre-gyp install --fallback-to-build"
111
- },
112
- "binary": {
113
- "module_name": "your_module",
114
- "module_path": "./lib/binding/",
115
- "host": "https://your_module.s3-us-west-1.amazonaws.com"
116
- }
117
- ```
118
-
119
- For a full example see [node-addon-examples's package.json](https://github.com/springmeyer/node-addon-example/blob/master/package.json).
120
-
121
- Let's break this down:
122
-
123
- - Dependencies need to list `node-pre-gyp`
124
- - Your devDependencies should list `aws-sdk` so that you can run `node-pre-gyp publish` locally or a CI system. We recommend using `devDependencies` only since `aws-sdk` is large and not needed for `node-pre-gyp install` since it only uses http to fetch binaries
125
- - Your `scripts` section should override the `install` target with `"install": "node-pre-gyp install --fallback-to-build"`. This allows node-pre-gyp to be used instead of the default npm behavior of always source compiling with `node-gyp` directly.
126
- - Your package.json should contain a `binary` section describing key properties you provide to allow node-pre-gyp to package optimally. They are detailed below.
127
-
128
- Note: in the past we recommended putting `node-pre-gyp` in the `bundledDependencies`, but we no longer recommend this. In the past there were npm bugs (with node versions 0.10.x) that could lead to node-pre-gyp not being available at the right time during install (unless we bundled). This should no longer be the case. Also, for a time we recommended using `"preinstall": "npm install node-pre-gyp"` as an alternative method to avoid needing to bundle. But this did not behave predictably across all npm versions - see https://github.com/mapbox/node-pre-gyp/issues/260 for the details. So we do not recommend using `preinstall` to install `node-pre-gyp`. More history on this at https://github.com/strongloop/fsevents/issues/157#issuecomment-265545908.
129
-
130
- ##### The `binary` object has three required properties
131
-
132
- ###### module_name
133
-
134
- The name of your native node module. This value must:
135
-
136
- - Match the name passed to [the NODE_MODULE macro](http://nodejs.org/api/addons.html#addons_hello_world)
137
- - Must be a valid C variable name (e.g. it cannot contain `-`)
138
- - Should not include the `.node` extension.
139
-
140
- ###### module_path
141
-
142
- The location your native module is placed after a build. This should be an empty directory without other Javascript files. This entire directory will be packaged in the binary tarball. When installing from a remote package this directory will be overwritten with the contents of the tarball.
143
-
144
- Note: This property supports variables based on [Versioning](#versioning).
145
-
146
- ###### host
147
-
148
- A url to the remote location where you've published tarball binaries (must be `https` not `http`).
149
-
150
- It is highly recommended that you use Amazon S3. The reasons are:
151
-
152
- - Various node-pre-gyp commands like `publish` and `info` only work with an S3 host.
153
- - S3 is a very solid hosting platform for distributing large files.
154
- - We provide detail documentation for using [S3 hosting](#s3-hosting) with node-pre-gyp.
155
-
156
- Why then not require S3? Because while some applications using node-pre-gyp need to distribute binaries as large as 20-30 MB, others might have very small binaries and might wish to store them in a GitHub repo. This is not recommended, but if an author really wants to host in a non-S3 location then it should be possible.
157
-
158
- It should also be mentioned that there is an optional and entirely separate npm module called [node-pre-gyp-github](https://github.com/bchr02/node-pre-gyp-github) which is intended to complement node-pre-gyp and be installed along with it. It provides the ability to store and publish your binaries within your repositories GitHub Releases if you would rather not use S3 directly. Installation and usage instructions can be found [here](https://github.com/bchr02/node-pre-gyp-github), but the basic premise is that instead of using the ```node-pre-gyp publish``` command you would use ```node-pre-gyp-github publish```.
159
-
160
- ##### The `binary` object has two optional properties
161
-
162
- ###### remote_path
163
-
164
- It **is recommended** that you customize this property. This is an extra path to use for publishing and finding remote tarballs. The default value for `remote_path` is `""` meaning that if you do not provide it then all packages will be published at the base of the `host`. It is recommended to provide a value like `./{name}/v{version}` to help organize remote packages in the case that you choose to publish multiple node addons to the same `host`.
165
-
166
- Note: This property supports variables based on [Versioning](#versioning).
167
-
168
- ###### package_name
169
-
170
- It is **not recommended** to override this property unless you are also overriding the `remote_path`. This is the versioned name of the remote tarball containing the binary `.node` module and any supporting files you've placed inside the `module_path` directory. Unless you specify `package_name` in your `package.json` then it defaults to `{module_name}-v{version}-{node_abi}-{platform}-{arch}.tar.gz` which allows your binary to work across node versions, platforms, and architectures. If you are using `remote_path` that is also versioned by `./{module_name}/v{version}` then you could remove these variables from the `package_name` and just use: `{node_abi}-{platform}-{arch}.tar.gz`. Then your remote tarball will be looked up at, for example, `https://example.com/your-module/v0.1.0/node-v11-linux-x64.tar.gz`.
171
-
172
- Avoiding the version of your module in the `package_name` and instead only embedding in a directory name can be useful when you want to make a quick tag of your module that does not change any C++ code. In this case you can just copy binaries to the new version behind the scenes like:
173
-
174
- ```sh
175
- aws s3 sync --acl public-read s3://mapbox-node-binary/sqlite3/v3.0.3/ s3://mapbox-node-binary/sqlite3/v3.0.4/
176
- ```
177
-
178
- Note: This property supports variables based on [Versioning](#versioning).
179
-
180
- #### 2) Add a new target to binding.gyp
181
-
182
- `node-pre-gyp` calls out to `node-gyp` to compile the module and passes variables along like [module_name](#module_name) and [module_path](#module_path).
183
-
184
- A new target must be added to `binding.gyp` that moves the compiled `.node` module from `./build/Release/module_name.node` into the directory specified by `module_path`.
185
-
186
- Add a target like this at the end of your `targets` list:
187
-
188
- ```js
189
- {
190
- "target_name": "action_after_build",
191
- "type": "none",
192
- "dependencies": [ "<(module_name)" ],
193
- "copies": [
194
- {
195
- "files": [ "<(PRODUCT_DIR)/<(module_name).node" ],
196
- "destination": "<(module_path)"
197
- }
198
- ]
199
- }
200
- ```
201
-
202
- For a full example see [node-addon-example's binding.gyp](https://github.com/springmeyer/node-addon-example/blob/2ff60a8ded7f042864ad21db00c3a5a06cf47075/binding.gyp).
203
-
204
- #### 3) Dynamically require your `.node`
205
-
206
- Inside the main js file that requires your addon module you are likely currently doing:
207
-
208
- ```js
209
- var binding = require('../build/Release/binding.node');
210
- ```
211
-
212
- or:
213
-
214
- ```js
215
- var bindings = require('./bindings')
216
- ```
217
-
218
- Change those lines to:
219
-
220
- ```js
221
- var binary = require('node-pre-gyp');
222
- var path = require('path');
223
- var binding_path = binary.find(path.resolve(path.join(__dirname,'./package.json')));
224
- var binding = require(binding_path);
225
- ```
226
-
227
- For a full example see [node-addon-example's index.js](https://github.com/springmeyer/node-addon-example/blob/2ff60a8ded7f042864ad21db00c3a5a06cf47075/index.js#L1-L4)
228
-
229
- #### 4) Build and package your app
230
-
231
- Now build your module from source:
232
-
233
- npm install --build-from-source
234
-
235
- The `--build-from-source` tells `node-pre-gyp` to not look for a remote package and instead dispatch to node-gyp to build.
236
-
237
- Now `node-pre-gyp` should now also be installed as a local dependency so the command line tool it offers can be found at `./node_modules/.bin/node-pre-gyp`.
238
-
239
- #### 5) Test
240
-
241
- Now `npm test` should work just as it did before.
242
-
243
- #### 6) Publish the tarball
244
-
245
- Then package your app:
246
-
247
- ./node_modules/.bin/node-pre-gyp package
248
-
249
- Once packaged, now you can publish:
250
-
251
- ./node_modules/.bin/node-pre-gyp publish
252
-
253
- Currently the `publish` command pushes your binary to S3. This requires:
254
-
255
- - You have installed `aws-sdk` with `npm install aws-sdk`
256
- - You have created a bucket already.
257
- - The `host` points to an S3 http or https endpoint.
258
- - You have configured node-pre-gyp to read your S3 credentials (see [S3 hosting](#s3-hosting) for details).
259
-
260
- You can also host your binaries elsewhere. To do this requires:
261
-
262
- - You manually publish the binary created by the `package` command to an `https` endpoint
263
- - Ensure that the `host` value points to your custom `https` endpoint.
264
-
265
- #### 7) Automate builds
266
-
267
- Now you need to publish builds for all the platforms and node versions you wish to support. This is best automated.
268
-
269
- - See [Appveyor Automation](#appveyor-automation) for how to auto-publish builds on Windows.
270
- - See [Travis Automation](#travis-automation) for how to auto-publish builds on OS X and Linux.
271
-
272
- #### 8) You're done!
273
-
274
- Now publish your module to the npm registry. Users will now be able to install your module from a binary.
275
-
276
- What will happen is this:
277
-
278
- 1. `npm install <your package>` will pull from the npm registry
279
- 2. npm will run the `install` script which will call out to `node-pre-gyp`
280
- 3. `node-pre-gyp` will fetch the binary `.node` module and unpack in the right place
281
- 4. Assuming that all worked, you are done
282
-
283
- If a a binary was not available for a given platform and `--fallback-to-build` was used then `node-gyp rebuild` will be called to try to source compile the module.
284
-
285
- ## N-API Considerations
286
-
287
- [N-API](https://nodejs.org/api/n-api.html#n_api_n_api) is an ABI-stable alternative to previous technologies such as [nan](https://github.com/nodejs/nan) which are tied to a specific Node runtime engine. N-API is Node runtime engine agnostic and guarantees modules created today will continue to run, without changes, into the future.
288
-
289
- Using `node-pre-gyp` with N-API projects requires a handful of additional configuration values and imposes some additional requirements.
290
-
291
- The most significant difference is that an N-API module can be coded to target multiple N-API versions. Therefore, an N-API module must declare in its `package.json` file which N-API versions the module is designed to run against. In addition, since multiple builds may be required for a single module, path and file names must be specified in way that avoids naming conflicts.
292
-
293
- ### The `napi_versions` array property
294
-
295
- An N-API modules must declare in its `package.json` file, the N-API versions the module is intended to support. This is accomplished by including an `napi-versions` array property in the `binary` object. For example:
296
-
297
- ```js
298
- "binary": {
299
- "module_name": "your_module",
300
- "module_path": "your_module_path",
301
- "host": "https://your_bucket.s3-us-west-1.amazonaws.com",
302
- "napi_versions": [1,3]
303
- }
304
- ```
305
-
306
- If the `napi_versions` array property is *not* present, `node-pre-gyp` operates as it always has. Including the `napi_versions` array property instructs `node-pre-gyp` that this is a N-API module build.
307
-
308
- When the `napi_versions` array property is present, `node-pre-gyp` fires off multiple operations, one for each of the N-API versions in the array. In the example above, two operations are initiated, one for N-API version 1 and second for N-API version 3. How this version number is communicated is described next.
309
-
310
- ### The `napi_build_version` value
311
-
312
- For each of the N-API module operations `node-pre-gyp` initiates, it ensures that the `napi_build_version` is set appropriately.
313
-
314
- This value is of importance in two areas:
315
-
316
- 1. The C/C++ code which needs to know against which N-API version it should compile.
317
- 2. `node-pre-gyp` itself which must assign appropriate path and file names to avoid collisions.
318
-
319
- ### Defining `NAPI_VERSION` for the C/C++ code
320
-
321
- The `napi_build_version` value is communicated to the C/C++ code by adding this code to the `binding.gyp` file:
322
-
323
- ```
324
- "defines": [
325
- "NAPI_VERSION=<(napi_build_version)",
326
- ]
327
- ```
328
-
329
- This ensures that `NAPI_VERSION`, an integer value, is declared appropriately to the C/C++ code for each build.
330
-
331
- > Note that earlier versions of this document recommended defining the symbol `NAPI_BUILD_VERSION`. `NAPI_VERSION` is prefered because it used by the N-API C/C++ headers to configure the specific N-API veriosn being requested.
332
-
333
- ### Path and file naming requirements in `package.json`
334
-
335
- Since `node-pre-gyp` fires off multiple operations for each request, it is essential that path and file names be created in such a way as to avoid collisions. This is accomplished by imposing additional path and file naming requirements.
336
-
337
- Specifically, when performing N-API builds, the `{napi_build_version}` text configuration value *must* be present in the `module_path` property. In addition, the `{napi_build_version}` text configuration value *must* be present in either the `remote_path` or `package_name` property. (No problem if it's in both.)
338
-
339
- Here's an example:
340
-
341
- ```js
342
- "binary": {
343
- "module_name": "your_module",
344
- "module_path": "./lib/binding/napi-v{napi_build_version}",
345
- "remote_path": "./{module_name}/v{version}/{configuration}/",
346
- "package_name": "{platform}-{arch}-napi-v{napi_build_version}.tar.gz",
347
- "host": "https://your_bucket.s3-us-west-1.amazonaws.com",
348
- "napi_versions": [1,3]
349
- }
350
- ```
351
-
352
- ## Supporting both N-API and NAN builds
353
-
354
- You may have a legacy native add-on that you wish to continue supporting for those versions of Node that do not support N-API, as you add N-API support for later Node versions. This can be accomplished by specifying the `node_napi_label` configuration value in the package.json `binary.package_name` property.
355
-
356
- Placing the configuration value `node_napi_label` in the package.json `binary.package_name` property instructs `node-pre-gyp` to build all viable N-API binaries supported by the current Node instance. If the current Node instance does not support N-API, `node-pre-gyp` will request a traditional, non-N-API build.
357
-
358
- The configuration value `node_napi_label` is set by `node-pre-gyp` to the type of build created, `napi` or `node`, and the version number. For N-API builds, the string contains the N-API version nad has values like `napi-v3`. For traditional, non-N-API builds, the string contains the ABI version with values like `node-v46`.
359
-
360
- Here's how the `binary` configuration above might be changed to support both N-API and NAN builds:
361
-
362
- ```js
363
- "binary": {
364
- "module_name": "your_module",
365
- "module_path": "./lib/binding/{node_napi_label}",
366
- "remote_path": "./{module_name}/v{version}/{configuration}/",
367
- "package_name": "{platform}-{arch}-{node_napi_label}.tar.gz",
368
- "host": "https://your_bucket.s3-us-west-1.amazonaws.com",
369
- "napi_versions": [1,3]
370
- }
371
- ```
372
-
373
- The C/C++ symbol `NAPI_VERSION` can be used to distinguish N-API and non-N-API builds. The value of `NAPI_VERSION` is set to the integer N-API version for N-API builds and is set to `0` for non-N-API builds.
374
-
375
- For example:
376
-
377
- ```C
378
- #if NAPI_VERSION
379
- // N-API code goes here
380
- #else
381
- // NAN code goes here
382
- #endif
383
- ```
384
-
385
- ### Two additional configuration values
386
-
387
- The following two configuration values, which were implemented in previous versions of `node-pre-gyp`, continue to exist, but have been replaced by the `node_napi_label` configuration value described above.
388
-
389
- 1. `napi_version` If N-API is supported by the currently executing Node instance, this value is the N-API version number supported by Node. If N-API is not supported, this value is an empty string.
390
-
391
- 2. `node_abi_napi` If the value returned for `napi_version` is non empty, this value is `'napi'`. If the value returned for `napi_version` is empty, this value is the value returned for `node_abi`.
392
-
393
- These values are present for use in the `binding.gyp` file and may be used as `{napi_version}` and `{node_abi_napi}` for text substituion in the `binary` properties of the `package.json` file.
394
-
395
- ## S3 Hosting
396
-
397
- You can host wherever you choose but S3 is cheap, `node-pre-gyp publish` expects it, and S3 can be integrated well with [Travis.ci](http://travis-ci.org) to automate builds for OS X and Ubuntu, and with [Appveyor](http://appveyor.com) to automate builds for Windows. Here is an approach to do this:
398
-
399
- First, get setup locally and test the workflow:
400
-
401
- #### 1) Create an S3 bucket
402
-
403
- And have your **key** and **secret key** ready for writing to the bucket.
404
-
405
- It is recommended to create a IAM user with a policy that only gives permissions to the specific bucket you plan to publish to. This can be done in the [IAM console](https://console.aws.amazon.com/iam/) by: 1) adding a new user, 2) choosing `Attach User Policy`, 3) Using the `Policy Generator`, 4) selecting `Amazon S3` for the service, 5) adding the actions: `DeleteObject`, `GetObject`, `GetObjectAcl`, `ListBucket`, `PutObject`, `PutObjectAcl`, 6) adding an ARN of `arn:aws:s3:::bucket/*` (replacing `bucket` with your bucket name), and finally 7) clicking `Add Statement` and saving the policy. It should generate a policy like:
406
-
407
- ```js
408
- {
409
- "Version": "2012-10-17",
410
- "Statement": [
411
- {
412
- "Sid": "Stmt1394587197000",
413
- "Effect": "Allow",
414
- "Action": [
415
- "s3:DeleteObject",
416
- "s3:GetObject",
417
- "s3:GetObjectAcl",
418
- "s3:ListBucket",
419
- "s3:PutObject",
420
- "s3:PutObjectAcl"
421
- ],
422
- "Resource": [
423
- "arn:aws:s3:::node-pre-gyp-tests/*"
424
- ]
425
- }
426
- ]
427
- }
428
- ```
429
-
430
- #### 2) Install node-pre-gyp
431
-
432
- Either install it globally:
433
-
434
- npm install node-pre-gyp -g
435
-
436
- Or put the local version on your PATH
437
-
438
- export PATH=`pwd`/node_modules/.bin/:$PATH
439
-
440
- #### 3) Configure AWS credentials
441
-
442
- There are several ways to do this.
443
-
444
- You can use any of the methods described at http://docs.aws.amazon.com/AWSJavaScriptSDK/guide/node-configuring.html.
445
-
446
- Or you can create a `~/.node_pre_gyprc`
447
-
448
- Or pass options in any way supported by [RC](https://github.com/dominictarr/rc#standards)
449
-
450
- A `~/.node_pre_gyprc` looks like:
451
-
452
- ```js
453
- {
454
- "accessKeyId": "xxx",
455
- "secretAccessKey": "xxx"
456
- }
457
- ```
458
-
459
- Another way is to use your environment:
460
-
461
- export node_pre_gyp_accessKeyId=xxx
462
- export node_pre_gyp_secretAccessKey=xxx
463
-
464
- You may also need to specify the `region` if it is not explicit in the `host` value you use. The `bucket` can also be specified but it is optional because `node-pre-gyp` will detect it from the `host` value.
465
-
466
- #### 4) Package and publish your build
467
-
468
- Install the `aws-sdk`:
469
-
470
- npm install aws-sdk
471
-
472
- Then publish:
473
-
474
- node-pre-gyp package publish
475
-
476
- Note: if you hit an error like `Hostname/IP doesn't match certificate's altnames` it may mean that you need to provide the `region` option in your config.
477
-
478
- ## Appveyor Automation
479
-
480
- [Appveyor](http://www.appveyor.com/) can build binaries and publish the results per commit and supports:
481
-
482
- - Windows Visual Studio 2013 and related compilers
483
- - Both 64 bit (x64) and 32 bit (x86) build configurations
484
- - Multiple Node.js versions
485
-
486
- For an example of doing this see [node-sqlite3's appveyor.yml](https://github.com/mapbox/node-sqlite3/blob/master/appveyor.yml).
487
-
488
- Below is a guide to getting set up:
489
-
490
- #### 1) Create a free Appveyor account
491
-
492
- Go to https://ci.appveyor.com/signup/free and sign in with your GitHub account.
493
-
494
- #### 2) Create a new project
495
-
496
- Go to https://ci.appveyor.com/projects/new and select the GitHub repo for your module
497
-
498
- #### 3) Add appveyor.yml and push it
499
-
500
- Once you have committed an `appveyor.yml` ([appveyor.yml reference](http://www.appveyor.com/docs/appveyor-yml)) to your GitHub repo and pushed it AppVeyor should automatically start building your project.
501
-
502
- #### 4) Create secure variables
503
-
504
- Encrypt your S3 AWS keys by going to <https://ci.appveyor.com/tools/encrypt> and hitting the `encrypt` button.
505
-
506
- Then paste the result into your `appveyor.yml`
507
-
508
- ```yml
509
- environment:
510
- node_pre_gyp_accessKeyId:
511
- secure: Dn9HKdLNYvDgPdQOzRq/DqZ/MPhjknRHB1o+/lVU8MA=
512
- node_pre_gyp_secretAccessKey:
513
- secure: W1rwNoSnOku1r+28gnoufO8UA8iWADmL1LiiwH9IOkIVhDTNGdGPJqAlLjNqwLnL
514
- ```
515
-
516
- NOTE: keys are per account but not per repo (this is difference than Travis where keys are per repo but not related to the account used to encrypt them).
517
-
518
- #### 5) Hook up publishing
519
-
520
- Just put `node-pre-gyp package publish` in your `appveyor.yml` after `npm install`.
521
-
522
- #### 6) Publish when you want
523
-
524
- You might wish to publish binaries only on a specific commit. To do this you could borrow from the [Travis CI idea of commit keywords](http://about.travis-ci.org/docs/user/how-to-skip-a-build/) and add special handling for commit messages with `[publish binary]`:
525
-
526
- SET CM=%APPVEYOR_REPO_COMMIT_MESSAGE%
527
- if not "%CM%" == "%CM:[publish binary]=%" node-pre-gyp --msvs_version=2013 publish
528
-
529
- If your commit message contains special characters (e.g. `&`) this method might fail. An alternative is to use PowerShell, which gives you additional possibilities, like ignoring case by using `ToLower()`:
530
-
531
- ps: if($env:APPVEYOR_REPO_COMMIT_MESSAGE.ToLower().Contains('[publish binary]')) { node-pre-gyp --msvs_version=2013 publish }
532
-
533
- Remember this publishing is not the same as `npm publish`. We're just talking about the binary module here and not your entire npm package.
534
-
535
- ## Travis Automation
536
-
537
- [Travis](https://travis-ci.org/) can push to S3 after a successful build and supports both:
538
-
539
- - Ubuntu Precise and OS X (64 bit)
540
- - Multiple Node.js versions
541
-
542
- For an example of doing this see [node-add-example's .travis.yml](https://github.com/springmeyer/node-addon-example/blob/2ff60a8ded7f042864ad21db00c3a5a06cf47075/.travis.yml).
543
-
544
- Note: if you need 32 bit binaries, this can be done from a 64 bit Travis machine. See [the node-sqlite3 scripts for an example of doing this](https://github.com/mapbox/node-sqlite3/blob/bae122aa6a2b8a45f6b717fab24e207740e32b5d/scripts/build_against_node.sh#L54-L74).
545
-
546
- Below is a guide to getting set up:
547
-
548
- #### 1) Install the Travis gem
549
-
550
- gem install travis
551
-
552
- #### 2) Create secure variables
553
-
554
- Make sure you run this command from within the directory of your module.
555
-
556
- Use `travis-encrypt` like:
557
-
558
- travis encrypt node_pre_gyp_accessKeyId=${node_pre_gyp_accessKeyId}
559
- travis encrypt node_pre_gyp_secretAccessKey=${node_pre_gyp_secretAccessKey}
560
-
561
- Then put those values in your `.travis.yml` like:
562
-
563
- ```yaml
564
- env:
565
- global:
566
- - secure: F+sEL/v56CzHqmCSSES4pEyC9NeQlkoR0Gs/ZuZxX1ytrj8SKtp3MKqBj7zhIclSdXBz4Ev966Da5ctmcTd410p0b240MV6BVOkLUtkjZJyErMBOkeb8n8yVfSoeMx8RiIhBmIvEn+rlQq+bSFis61/JkE9rxsjkGRZi14hHr4M=
567
- - secure: o2nkUQIiABD139XS6L8pxq3XO5gch27hvm/gOdV+dzNKc/s2KomVPWcOyXNxtJGhtecAkABzaW8KHDDi5QL1kNEFx6BxFVMLO8rjFPsMVaBG9Ks6JiDQkkmrGNcnVdxI/6EKTLHTH5WLsz8+J7caDBzvKbEfTux5EamEhxIWgrI=
568
- ```
569
-
570
- More details on Travis encryption at http://about.travis-ci.org/docs/user/encryption-keys/.
571
-
572
- #### 3) Hook up publishing
573
-
574
- Just put `node-pre-gyp package publish` in your `.travis.yml` after `npm install`.
575
-
576
- ##### OS X publishing
577
-
578
- If you want binaries for OS X in addition to linux you can enable [multi-os for Travis](http://docs.travis-ci.com/user/multi-os/#Setting-.travis.yml)
579
-
580
- Use a configuration like:
581
-
582
- ```yml
583
-
584
- language: cpp
585
-
586
- os:
587
- - linux
588
- - osx
589
-
590
- env:
591
- matrix:
592
- - NODE_VERSION="4"
593
- - NODE_VERSION="6"
594
-
595
- before_install:
596
- - rm -rf ~/.nvm/ && git clone --depth 1 https://github.com/creationix/nvm.git ~/.nvm
597
- - source ~/.nvm/nvm.sh
598
- - nvm install $NODE_VERSION
599
- - nvm use $NODE_VERSION
600
- ```
601
-
602
- See [Travis OS X Gotchas](#travis-os-x-gotchas) for why we replace `language: node_js` and `node_js:` sections with `language: cpp` and a custom matrix.
603
-
604
- Also create platform specific sections for any deps that need install. For example if you need libpng:
605
-
606
- ```yml
607
- - if [ $(uname -s) == 'Linux' ]; then apt-get install libpng-dev; fi;
608
- - if [ $(uname -s) == 'Darwin' ]; then brew install libpng; fi;
609
- ```
610
-
611
- For detailed multi-OS examples see [node-mapnik](https://github.com/mapnik/node-mapnik/blob/master/.travis.yml) and [node-sqlite3](https://github.com/mapbox/node-sqlite3/blob/master/.travis.yml).
612
-
613
- ##### Travis OS X Gotchas
614
-
615
- First, unlike the Travis Linux machines, the OS X machines do not put `node-pre-gyp` on PATH by default. To do so you will need to:
616
-
617
- ```sh
618
- export PATH=$(pwd)/node_modules/.bin:${PATH}
619
- ```
620
-
621
- Second, the OS X machines do not support using a matrix for installing different Node.js versions. So you need to bootstrap the installation of Node.js in a cross platform way.
622
-
623
- By doing:
624
-
625
- ```yml
626
- env:
627
- matrix:
628
- - NODE_VERSION="4"
629
- - NODE_VERSION="6"
630
-
631
- before_install:
632
- - rm -rf ~/.nvm/ && git clone --depth 1 https://github.com/creationix/nvm.git ~/.nvm
633
- - source ~/.nvm/nvm.sh
634
- - nvm install $NODE_VERSION
635
- - nvm use $NODE_VERSION
636
- ```
637
-
638
- You can easily recreate the previous behavior of this matrix:
639
-
640
- ```yml
641
- node_js:
642
- - "4"
643
- - "6"
644
- ```
645
-
646
- #### 4) Publish when you want
647
-
648
- You might wish to publish binaries only on a specific commit. To do this you could borrow from the [Travis CI idea of commit keywords](http://about.travis-ci.org/docs/user/how-to-skip-a-build/) and add special handling for commit messages with `[publish binary]`:
649
-
650
- COMMIT_MESSAGE=$(git log --format=%B --no-merges -n 1 | tr -d '\n')
651
- if [[ ${COMMIT_MESSAGE} =~ "[publish binary]" ]]; then node-pre-gyp publish; fi;
652
-
653
- Then you can trigger new binaries to be built like:
654
-
655
- git commit -a -m "[publish binary]"
656
-
657
- Or, if you don't have any changes to make simply run:
658
-
659
- git commit --allow-empty -m "[publish binary]"
660
-
661
- WARNING: if you are working in a pull request and publishing binaries from there then you will want to avoid double publishing when Travis CI builds both the `push` and `pr`. You only want to run the publish on the `push` commit. See https://github.com/Project-OSRM/node-osrm/blob/8eb837abe2e2e30e595093d16e5354bc5c573575/scripts/is_pr_merge.sh which is called from https://github.com/Project-OSRM/node-osrm/blob/8eb837abe2e2e30e595093d16e5354bc5c573575/scripts/publish.sh for an example of how to do this.
662
-
663
- Remember this publishing is not the same as `npm publish`. We're just talking about the binary module here and not your entire npm package. To automate the publishing of your entire package to npm on Travis see http://about.travis-ci.org/docs/user/deployment/npm/
664
-
665
- # Versioning
666
-
667
- The `binary` properties of `module_path`, `remote_path`, and `package_name` support variable substitution. The strings are evaluated by `node-pre-gyp` depending on your system and any custom build flags you passed.
668
-
669
- - `node_abi`: The node C++ `ABI` number. This value is available in Javascript as `process.versions.modules` as of [`>= v0.10.4 >= v0.11.7`](https://github.com/joyent/node/commit/ccabd4a6fa8a6eb79d29bc3bbe9fe2b6531c2d8e) and in C++ as the `NODE_MODULE_VERSION` define much earlier. For versions of Node before this was available we fallback to the V8 major and minor version.
670
- - `platform` matches node's `process.platform` like `linux`, `darwin`, and `win32` unless the user passed the `--target_platform` option to override.
671
- - `arch` matches node's `process.arch` like `x64` or `ia32` unless the user passes the `--target_arch` option to override.
672
- - `libc` matches `require('detect-libc').family` like `glibc` or `musl` unless the user passes the `--target_libc` option to override.
673
- - `configuration` - Either 'Release' or 'Debug' depending on if `--debug` is passed during the build.
674
- - `module_name` - the `binary.module_name` attribute from `package.json`.
675
- - `version` - the semver `version` value for your module from `package.json` (NOTE: ignores the `semver.build` property).
676
- - `major`, `minor`, `patch`, and `prelease` match the individual semver values for your module's `version`
677
- - `build` - the sevmer `build` value. For example it would be `this.that` if your package.json `version` was `v1.0.0+this.that`
678
- - `prerelease` - the semver `prerelease` value. For example it would be `alpha.beta` if your package.json `version` was `v1.0.0-alpha.beta`
679
-
680
-
681
- The options are visible in the code at <https://github.com/mapbox/node-pre-gyp/blob/612b7bca2604508d881e1187614870ba19a7f0c5/lib/util/versioning.js#L114-L127>
682
-
683
- # Download binary files from a mirror
684
-
685
- S3 is broken in China for the well known reason.
686
-
687
- Using the `npm` config argument: `--{module_name}_binary_host_mirror` can download binary files through a mirror.
688
-
689
- e.g.: Install [v8-profiler](https://www.npmjs.com/package/v8-profiler) from `npm`.
690
-
691
- ```bash
692
- $ npm install v8-profiler --profiler_binary_host_mirror=https://npm.taobao.org/mirrors/node-inspector/
693
- ```