@prismer/sdk 2.0.7 → 2.2.55

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 (387) hide show
  1. package/README.md +13 -7
  2. package/dist/chunk-R7POPVJR.mjs +35 -0
  3. package/dist/cli.js +59723 -8280
  4. package/dist/index.d.mts +724 -229
  5. package/dist/index.d.ts +724 -229
  6. package/dist/index.js +325 -23
  7. package/dist/index.mjs +324 -23
  8. package/dist/katex-OIP2Q473.mjs +14515 -0
  9. package/dist/pkf-schema.json +35 -0
  10. package/dist/pkf.d.mts +1 -0
  11. package/dist/pkf.d.ts +1 -0
  12. package/dist/pkf.js +48370 -0
  13. package/dist/pkf.mjs +33683 -0
  14. package/node_modules/@clack/core/CHANGELOG.md +249 -0
  15. package/node_modules/@clack/core/LICENSE +9 -0
  16. package/node_modules/@clack/core/README.md +22 -0
  17. package/node_modules/@clack/core/dist/index.cjs +15 -0
  18. package/node_modules/@clack/core/dist/index.cjs.map +1 -0
  19. package/node_modules/@clack/core/dist/index.d.cts +209 -0
  20. package/node_modules/@clack/core/dist/index.d.mts +209 -0
  21. package/node_modules/@clack/core/dist/index.d.ts +209 -0
  22. package/node_modules/@clack/core/dist/index.mjs +15 -0
  23. package/node_modules/@clack/core/dist/index.mjs.map +1 -0
  24. package/node_modules/@clack/core/package.json +62 -0
  25. package/node_modules/@clack/prompts/CHANGELOG.md +374 -0
  26. package/node_modules/@clack/prompts/LICENSE +9 -0
  27. package/node_modules/@clack/prompts/README.md +191 -0
  28. package/node_modules/@clack/prompts/dist/index.cjs +80 -0
  29. package/node_modules/@clack/prompts/dist/index.cjs.map +1 -0
  30. package/node_modules/@clack/prompts/dist/index.d.cts +151 -0
  31. package/node_modules/@clack/prompts/dist/index.d.mts +151 -0
  32. package/node_modules/@clack/prompts/dist/index.d.ts +151 -0
  33. package/node_modules/@clack/prompts/dist/index.mjs +80 -0
  34. package/node_modules/@clack/prompts/dist/index.mjs.map +1 -0
  35. package/node_modules/@clack/prompts/package.json +61 -0
  36. package/node_modules/@iarna/toml/LICENSE +14 -0
  37. package/node_modules/@iarna/toml/README.md +301 -0
  38. package/node_modules/@iarna/toml/index.d.ts +57 -0
  39. package/node_modules/@iarna/toml/lib/create-date.js +23 -0
  40. package/node_modules/@iarna/toml/lib/create-datetime-float.js +24 -0
  41. package/node_modules/@iarna/toml/lib/create-datetime.js +10 -0
  42. package/node_modules/@iarna/toml/lib/create-time.js +22 -0
  43. package/node_modules/@iarna/toml/lib/format-num.js +6 -0
  44. package/node_modules/@iarna/toml/lib/parser-debug.js +60 -0
  45. package/node_modules/@iarna/toml/lib/parser.js +127 -0
  46. package/node_modules/@iarna/toml/lib/toml-parser.js +1379 -0
  47. package/node_modules/@iarna/toml/package.json +82 -0
  48. package/node_modules/@iarna/toml/parse-async.js +30 -0
  49. package/node_modules/@iarna/toml/parse-pretty-error.js +33 -0
  50. package/node_modules/@iarna/toml/parse-stream.js +80 -0
  51. package/node_modules/@iarna/toml/parse-string.js +18 -0
  52. package/node_modules/@iarna/toml/parse.js +5 -0
  53. package/node_modules/@iarna/toml/stringify.js +296 -0
  54. package/node_modules/@iarna/toml/toml.js +3 -0
  55. package/node_modules/@prismer/aip-sdk/README.md +36 -0
  56. package/node_modules/@prismer/aip-sdk/dist/cli/chunk-LIJDUCHB.js +104 -0
  57. package/node_modules/@prismer/aip-sdk/dist/cli/chunk-QUQXZ2LD.js +99 -0
  58. package/node_modules/@prismer/aip-sdk/dist/cli/credentials-5GGZEJFG.js +56 -0
  59. package/node_modules/@prismer/aip-sdk/dist/cli/delegation-3J35VGBZ.js +64 -0
  60. package/node_modules/@prismer/aip-sdk/dist/cli/identity-LXVWKSVB.js +7 -0
  61. package/node_modules/@prismer/aip-sdk/dist/cli/index.js +259 -0
  62. package/node_modules/@prismer/aip-sdk/dist/cli/resolver-TGOPKW52.js +26 -0
  63. package/node_modules/@prismer/aip-sdk/dist/index.cjs +368 -0
  64. package/node_modules/@prismer/aip-sdk/dist/index.d.cts +174 -0
  65. package/node_modules/@prismer/aip-sdk/dist/index.d.ts +174 -0
  66. package/node_modules/@prismer/aip-sdk/dist/index.js +322 -0
  67. package/node_modules/@prismer/aip-sdk/package.json +53 -0
  68. package/node_modules/ansi-regex/index.d.ts +37 -0
  69. package/node_modules/ansi-regex/index.js +10 -0
  70. package/node_modules/ansi-regex/license +9 -0
  71. package/node_modules/ansi-regex/package.json +55 -0
  72. package/node_modules/ansi-regex/readme.md +78 -0
  73. package/node_modules/camelcase/index.d.ts +63 -0
  74. package/node_modules/camelcase/index.js +76 -0
  75. package/node_modules/camelcase/license +9 -0
  76. package/node_modules/camelcase/package.json +43 -0
  77. package/node_modules/camelcase/readme.md +99 -0
  78. package/node_modules/cliui/LICENSE.txt +14 -0
  79. package/node_modules/cliui/README.md +115 -0
  80. package/node_modules/cliui/index.js +354 -0
  81. package/node_modules/cliui/package.json +65 -0
  82. package/node_modules/color-convert/LICENSE +21 -0
  83. package/node_modules/color-convert/README.md +68 -0
  84. package/node_modules/color-convert/conversions.js +839 -0
  85. package/node_modules/color-convert/index.js +81 -0
  86. package/node_modules/color-convert/package.json +48 -0
  87. package/node_modules/color-convert/route.js +97 -0
  88. package/node_modules/color-name/LICENSE +8 -0
  89. package/node_modules/color-name/README.md +11 -0
  90. package/node_modules/color-name/index.js +152 -0
  91. package/node_modules/color-name/package.json +28 -0
  92. package/node_modules/commander/LICENSE +22 -0
  93. package/node_modules/commander/Readme.md +1157 -0
  94. package/node_modules/commander/esm.mjs +16 -0
  95. package/node_modules/commander/index.js +24 -0
  96. package/node_modules/commander/lib/argument.js +149 -0
  97. package/node_modules/commander/lib/command.js +2509 -0
  98. package/node_modules/commander/lib/error.js +39 -0
  99. package/node_modules/commander/lib/help.js +520 -0
  100. package/node_modules/commander/lib/option.js +330 -0
  101. package/node_modules/commander/lib/suggestSimilar.js +101 -0
  102. package/node_modules/commander/package-support.json +16 -0
  103. package/node_modules/commander/package.json +84 -0
  104. package/node_modules/commander/typings/esm.d.mts +3 -0
  105. package/node_modules/commander/typings/index.d.ts +969 -0
  106. package/node_modules/decamelize/index.js +13 -0
  107. package/node_modules/decamelize/license +21 -0
  108. package/node_modules/decamelize/package.json +38 -0
  109. package/node_modules/decamelize/readme.md +48 -0
  110. package/node_modules/dijkstrajs/.travis.yml +4 -0
  111. package/node_modules/dijkstrajs/CONTRIBUTING.md +8 -0
  112. package/node_modules/dijkstrajs/LICENSE.md +19 -0
  113. package/node_modules/dijkstrajs/README.md +18 -0
  114. package/node_modules/dijkstrajs/dijkstra.js +165 -0
  115. package/node_modules/dijkstrajs/package.json +60 -0
  116. package/node_modules/dijkstrajs/test/dijkstra.test.js +96 -0
  117. package/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
  118. package/node_modules/emoji-regex/README.md +73 -0
  119. package/node_modules/emoji-regex/es2015/index.js +6 -0
  120. package/node_modules/emoji-regex/es2015/text.js +6 -0
  121. package/node_modules/emoji-regex/index.d.ts +23 -0
  122. package/node_modules/emoji-regex/index.js +6 -0
  123. package/node_modules/emoji-regex/package.json +50 -0
  124. package/node_modules/emoji-regex/text.js +6 -0
  125. package/node_modules/find-up/index.d.ts +137 -0
  126. package/node_modules/find-up/index.js +89 -0
  127. package/node_modules/find-up/license +9 -0
  128. package/node_modules/find-up/package.json +53 -0
  129. package/node_modules/find-up/readme.md +156 -0
  130. package/node_modules/get-caller-file/LICENSE.md +6 -0
  131. package/node_modules/get-caller-file/README.md +41 -0
  132. package/node_modules/get-caller-file/index.d.ts +2 -0
  133. package/node_modules/get-caller-file/index.js +22 -0
  134. package/node_modules/get-caller-file/index.js.map +1 -0
  135. package/node_modules/get-caller-file/package.json +42 -0
  136. package/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
  137. package/node_modules/is-fullwidth-code-point/index.js +50 -0
  138. package/node_modules/is-fullwidth-code-point/license +9 -0
  139. package/node_modules/is-fullwidth-code-point/package.json +42 -0
  140. package/node_modules/is-fullwidth-code-point/readme.md +39 -0
  141. package/node_modules/locate-path/index.d.ts +83 -0
  142. package/node_modules/locate-path/index.js +65 -0
  143. package/node_modules/locate-path/license +9 -0
  144. package/node_modules/locate-path/package.json +45 -0
  145. package/node_modules/locate-path/readme.md +122 -0
  146. package/node_modules/p-locate/index.d.ts +64 -0
  147. package/node_modules/p-locate/index.js +52 -0
  148. package/node_modules/p-locate/license +9 -0
  149. package/node_modules/p-locate/node_modules/p-limit/index.d.ts +38 -0
  150. package/node_modules/p-locate/node_modules/p-limit/index.js +57 -0
  151. package/node_modules/p-locate/node_modules/p-limit/license +9 -0
  152. package/node_modules/p-locate/node_modules/p-limit/package.json +52 -0
  153. package/node_modules/p-locate/node_modules/p-limit/readme.md +101 -0
  154. package/node_modules/p-locate/package.json +53 -0
  155. package/node_modules/p-locate/readme.md +90 -0
  156. package/node_modules/p-try/index.d.ts +39 -0
  157. package/node_modules/p-try/index.js +9 -0
  158. package/node_modules/p-try/license +9 -0
  159. package/node_modules/p-try/package.json +42 -0
  160. package/node_modules/p-try/readme.md +58 -0
  161. package/node_modules/path-exists/index.d.ts +28 -0
  162. package/node_modules/path-exists/index.js +23 -0
  163. package/node_modules/path-exists/license +9 -0
  164. package/node_modules/path-exists/package.json +39 -0
  165. package/node_modules/path-exists/readme.md +52 -0
  166. package/node_modules/picocolors/LICENSE +15 -0
  167. package/node_modules/picocolors/README.md +21 -0
  168. package/node_modules/picocolors/package.json +25 -0
  169. package/node_modules/picocolors/picocolors.browser.js +4 -0
  170. package/node_modules/picocolors/picocolors.d.ts +5 -0
  171. package/node_modules/picocolors/picocolors.js +75 -0
  172. package/node_modules/picocolors/types.d.ts +51 -0
  173. package/node_modules/pngjs/.eslintignore +2 -0
  174. package/node_modules/pngjs/.eslintrc.json +19 -0
  175. package/node_modules/pngjs/.prettierignore +3 -0
  176. package/node_modules/pngjs/LICENSE +20 -0
  177. package/node_modules/pngjs/README.md +429 -0
  178. package/node_modules/pngjs/browser.js +16096 -0
  179. package/node_modules/pngjs/coverage/lcov-report/base.css +354 -0
  180. package/node_modules/pngjs/coverage/lcov-report/bitmapper.js.html +881 -0
  181. package/node_modules/pngjs/coverage/lcov-report/bitpacker.js.html +554 -0
  182. package/node_modules/pngjs/coverage/lcov-report/block-navigation.js +77 -0
  183. package/node_modules/pngjs/coverage/lcov-report/chunkstream.js.html +647 -0
  184. package/node_modules/pngjs/coverage/lcov-report/constants.js.html +176 -0
  185. package/node_modules/pngjs/coverage/lcov-report/crc.js.html +200 -0
  186. package/node_modules/pngjs/coverage/lcov-report/favicon.png +0 -0
  187. package/node_modules/pngjs/coverage/lcov-report/filter-pack.js.html +593 -0
  188. package/node_modules/pngjs/coverage/lcov-report/filter-parse-async.js.html +152 -0
  189. package/node_modules/pngjs/coverage/lcov-report/filter-parse-sync.js.html +143 -0
  190. package/node_modules/pngjs/coverage/lcov-report/filter-parse.js.html +611 -0
  191. package/node_modules/pngjs/coverage/lcov-report/format-normaliser.js.html +359 -0
  192. package/node_modules/pngjs/coverage/lcov-report/index.html +426 -0
  193. package/node_modules/pngjs/coverage/lcov-report/interlace.js.html +365 -0
  194. package/node_modules/pngjs/coverage/lcov-report/packer-async.js.html +230 -0
  195. package/node_modules/pngjs/coverage/lcov-report/packer-sync.js.html +248 -0
  196. package/node_modules/pngjs/coverage/lcov-report/packer.js.html +467 -0
  197. package/node_modules/pngjs/coverage/lcov-report/paeth-predictor.js.html +128 -0
  198. package/node_modules/pngjs/coverage/lcov-report/parser-async.js.html +575 -0
  199. package/node_modules/pngjs/coverage/lcov-report/parser-sync.js.html +404 -0
  200. package/node_modules/pngjs/coverage/lcov-report/parser.js.html +950 -0
  201. package/node_modules/pngjs/coverage/lcov-report/png-sync.js.html +116 -0
  202. package/node_modules/pngjs/coverage/lcov-report/png.js.html +662 -0
  203. package/node_modules/pngjs/coverage/lcov-report/prettify.css +101 -0
  204. package/node_modules/pngjs/coverage/lcov-report/prettify.js +1007 -0
  205. package/node_modules/pngjs/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  206. package/node_modules/pngjs/coverage/lcov-report/sorter.js +169 -0
  207. package/node_modules/pngjs/coverage/lcov-report/sync-inflate.js.html +584 -0
  208. package/node_modules/pngjs/coverage/lcov-report/sync-reader.js.html +215 -0
  209. package/node_modules/pngjs/coverage/lcov.info +2177 -0
  210. package/node_modules/pngjs/lib/bitmapper.js +267 -0
  211. package/node_modules/pngjs/lib/bitpacker.js +158 -0
  212. package/node_modules/pngjs/lib/chunkstream.js +189 -0
  213. package/node_modules/pngjs/lib/constants.js +32 -0
  214. package/node_modules/pngjs/lib/crc.js +40 -0
  215. package/node_modules/pngjs/lib/filter-pack.js +171 -0
  216. package/node_modules/pngjs/lib/filter-parse-async.js +24 -0
  217. package/node_modules/pngjs/lib/filter-parse-sync.js +21 -0
  218. package/node_modules/pngjs/lib/filter-parse.js +177 -0
  219. package/node_modules/pngjs/lib/format-normaliser.js +93 -0
  220. package/node_modules/pngjs/lib/interlace.js +95 -0
  221. package/node_modules/pngjs/lib/packer-async.js +50 -0
  222. package/node_modules/pngjs/lib/packer-sync.js +56 -0
  223. package/node_modules/pngjs/lib/packer.js +129 -0
  224. package/node_modules/pngjs/lib/paeth-predictor.js +16 -0
  225. package/node_modules/pngjs/lib/parser-async.js +165 -0
  226. package/node_modules/pngjs/lib/parser-sync.js +108 -0
  227. package/node_modules/pngjs/lib/parser.js +290 -0
  228. package/node_modules/pngjs/lib/png-sync.js +12 -0
  229. package/node_modules/pngjs/lib/png.js +194 -0
  230. package/node_modules/pngjs/lib/sync-inflate.js +168 -0
  231. package/node_modules/pngjs/lib/sync-reader.js +45 -0
  232. package/node_modules/pngjs/package.json +73 -0
  233. package/node_modules/qrcode/README.md +770 -0
  234. package/node_modules/qrcode/bin/qrcode +159 -0
  235. package/node_modules/qrcode/helper/to-sjis-browser.js +2 -0
  236. package/node_modules/qrcode/helper/to-sjis.js +105 -0
  237. package/node_modules/qrcode/lib/browser.js +76 -0
  238. package/node_modules/qrcode/lib/can-promise.js +7 -0
  239. package/node_modules/qrcode/lib/core/alignment-pattern.js +83 -0
  240. package/node_modules/qrcode/lib/core/alphanumeric-data.js +59 -0
  241. package/node_modules/qrcode/lib/core/bit-buffer.js +37 -0
  242. package/node_modules/qrcode/lib/core/bit-matrix.js +65 -0
  243. package/node_modules/qrcode/lib/core/byte-data.js +30 -0
  244. package/node_modules/qrcode/lib/core/error-correction-code.js +135 -0
  245. package/node_modules/qrcode/lib/core/error-correction-level.js +50 -0
  246. package/node_modules/qrcode/lib/core/finder-pattern.js +22 -0
  247. package/node_modules/qrcode/lib/core/format-info.js +29 -0
  248. package/node_modules/qrcode/lib/core/galois-field.js +69 -0
  249. package/node_modules/qrcode/lib/core/kanji-data.js +54 -0
  250. package/node_modules/qrcode/lib/core/mask-pattern.js +234 -0
  251. package/node_modules/qrcode/lib/core/mode.js +167 -0
  252. package/node_modules/qrcode/lib/core/numeric-data.js +43 -0
  253. package/node_modules/qrcode/lib/core/polynomial.js +62 -0
  254. package/node_modules/qrcode/lib/core/qrcode.js +495 -0
  255. package/node_modules/qrcode/lib/core/reed-solomon-encoder.js +56 -0
  256. package/node_modules/qrcode/lib/core/regex.js +31 -0
  257. package/node_modules/qrcode/lib/core/segments.js +330 -0
  258. package/node_modules/qrcode/lib/core/utils.js +63 -0
  259. package/node_modules/qrcode/lib/core/version-check.js +9 -0
  260. package/node_modules/qrcode/lib/core/version.js +163 -0
  261. package/node_modules/qrcode/lib/index.js +12 -0
  262. package/node_modules/qrcode/lib/renderer/canvas.js +63 -0
  263. package/node_modules/qrcode/lib/renderer/png.js +78 -0
  264. package/node_modules/qrcode/lib/renderer/svg-tag.js +81 -0
  265. package/node_modules/qrcode/lib/renderer/svg.js +19 -0
  266. package/node_modules/qrcode/lib/renderer/terminal/terminal-small.js +85 -0
  267. package/node_modules/qrcode/lib/renderer/terminal/terminal.js +49 -0
  268. package/node_modules/qrcode/lib/renderer/terminal.js +9 -0
  269. package/node_modules/qrcode/lib/renderer/utf8.js +71 -0
  270. package/node_modules/qrcode/lib/renderer/utils.js +99 -0
  271. package/node_modules/qrcode/lib/server.js +138 -0
  272. package/node_modules/qrcode/license +10 -0
  273. package/node_modules/qrcode/package.json +77 -0
  274. package/node_modules/require-directory/.jshintrc +67 -0
  275. package/node_modules/require-directory/.npmignore +1 -0
  276. package/node_modules/require-directory/.travis.yml +3 -0
  277. package/node_modules/require-directory/LICENSE +22 -0
  278. package/node_modules/require-directory/README.markdown +184 -0
  279. package/node_modules/require-directory/index.js +86 -0
  280. package/node_modules/require-directory/package.json +40 -0
  281. package/node_modules/require-main-filename/LICENSE.txt +14 -0
  282. package/node_modules/require-main-filename/README.md +26 -0
  283. package/node_modules/require-main-filename/index.js +18 -0
  284. package/node_modules/require-main-filename/package.json +35 -0
  285. package/node_modules/set-blocking/LICENSE.txt +14 -0
  286. package/node_modules/set-blocking/README.md +31 -0
  287. package/node_modules/set-blocking/index.js +7 -0
  288. package/node_modules/set-blocking/package.json +42 -0
  289. package/node_modules/sisteransi/license +21 -0
  290. package/node_modules/sisteransi/package.json +34 -0
  291. package/node_modules/sisteransi/readme.md +113 -0
  292. package/node_modules/sisteransi/src/index.js +58 -0
  293. package/node_modules/sisteransi/src/sisteransi.d.ts +35 -0
  294. package/node_modules/string-width/index.d.ts +29 -0
  295. package/node_modules/string-width/index.js +47 -0
  296. package/node_modules/string-width/license +9 -0
  297. package/node_modules/string-width/package.json +56 -0
  298. package/node_modules/string-width/readme.md +50 -0
  299. package/node_modules/strip-ansi/index.d.ts +17 -0
  300. package/node_modules/strip-ansi/index.js +4 -0
  301. package/node_modules/strip-ansi/license +9 -0
  302. package/node_modules/strip-ansi/package.json +54 -0
  303. package/node_modules/strip-ansi/readme.md +46 -0
  304. package/node_modules/which-module/LICENSE +13 -0
  305. package/node_modules/which-module/README.md +58 -0
  306. package/node_modules/which-module/index.js +9 -0
  307. package/node_modules/which-module/package.json +41 -0
  308. package/node_modules/wrap-ansi/index.js +186 -0
  309. package/node_modules/wrap-ansi/license +9 -0
  310. package/node_modules/wrap-ansi/node_modules/ansi-styles/index.d.ts +345 -0
  311. package/node_modules/wrap-ansi/node_modules/ansi-styles/index.js +163 -0
  312. package/node_modules/wrap-ansi/node_modules/ansi-styles/license +9 -0
  313. package/node_modules/wrap-ansi/node_modules/ansi-styles/package.json +56 -0
  314. package/node_modules/wrap-ansi/node_modules/ansi-styles/readme.md +152 -0
  315. package/node_modules/wrap-ansi/package.json +61 -0
  316. package/node_modules/wrap-ansi/readme.md +97 -0
  317. package/node_modules/y18n/LICENSE +13 -0
  318. package/node_modules/y18n/README.md +109 -0
  319. package/node_modules/y18n/index.js +188 -0
  320. package/node_modules/y18n/package.json +39 -0
  321. package/node_modules/yargs/LICENSE +21 -0
  322. package/node_modules/yargs/README.md +140 -0
  323. package/node_modules/yargs/build/lib/apply-extends.d.ts +2 -0
  324. package/node_modules/yargs/build/lib/apply-extends.js +65 -0
  325. package/node_modules/yargs/build/lib/argsert.d.ts +2 -0
  326. package/node_modules/yargs/build/lib/argsert.js +65 -0
  327. package/node_modules/yargs/build/lib/command.d.ts +64 -0
  328. package/node_modules/yargs/build/lib/command.js +416 -0
  329. package/node_modules/yargs/build/lib/common-types.d.ts +36 -0
  330. package/node_modules/yargs/build/lib/common-types.js +25 -0
  331. package/node_modules/yargs/build/lib/completion-templates.d.ts +2 -0
  332. package/node_modules/yargs/build/lib/completion-templates.js +50 -0
  333. package/node_modules/yargs/build/lib/completion.d.ts +21 -0
  334. package/node_modules/yargs/build/lib/completion.js +135 -0
  335. package/node_modules/yargs/build/lib/is-promise.d.ts +1 -0
  336. package/node_modules/yargs/build/lib/is-promise.js +9 -0
  337. package/node_modules/yargs/build/lib/levenshtein.d.ts +1 -0
  338. package/node_modules/yargs/build/lib/levenshtein.js +58 -0
  339. package/node_modules/yargs/build/lib/middleware.d.ts +10 -0
  340. package/node_modules/yargs/build/lib/middleware.js +57 -0
  341. package/node_modules/yargs/build/lib/obj-filter.d.ts +1 -0
  342. package/node_modules/yargs/build/lib/obj-filter.js +14 -0
  343. package/node_modules/yargs/build/lib/parse-command.d.ts +11 -0
  344. package/node_modules/yargs/build/lib/parse-command.js +36 -0
  345. package/node_modules/yargs/build/lib/process-argv.d.ts +2 -0
  346. package/node_modules/yargs/build/lib/process-argv.js +31 -0
  347. package/node_modules/yargs/build/lib/usage.d.ts +49 -0
  348. package/node_modules/yargs/build/lib/usage.js +540 -0
  349. package/node_modules/yargs/build/lib/validation.d.ts +34 -0
  350. package/node_modules/yargs/build/lib/validation.js +330 -0
  351. package/node_modules/yargs/build/lib/yargs.d.ts +274 -0
  352. package/node_modules/yargs/build/lib/yargs.js +1190 -0
  353. package/node_modules/yargs/build/lib/yerror.d.ts +4 -0
  354. package/node_modules/yargs/build/lib/yerror.js +11 -0
  355. package/node_modules/yargs/index.js +40 -0
  356. package/node_modules/yargs/locales/be.json +46 -0
  357. package/node_modules/yargs/locales/de.json +46 -0
  358. package/node_modules/yargs/locales/en.json +51 -0
  359. package/node_modules/yargs/locales/es.json +46 -0
  360. package/node_modules/yargs/locales/fi.json +49 -0
  361. package/node_modules/yargs/locales/fr.json +53 -0
  362. package/node_modules/yargs/locales/hi.json +49 -0
  363. package/node_modules/yargs/locales/hu.json +46 -0
  364. package/node_modules/yargs/locales/id.json +50 -0
  365. package/node_modules/yargs/locales/it.json +46 -0
  366. package/node_modules/yargs/locales/ja.json +51 -0
  367. package/node_modules/yargs/locales/ko.json +49 -0
  368. package/node_modules/yargs/locales/nb.json +44 -0
  369. package/node_modules/yargs/locales/nl.json +49 -0
  370. package/node_modules/yargs/locales/nn.json +44 -0
  371. package/node_modules/yargs/locales/pirate.json +13 -0
  372. package/node_modules/yargs/locales/pl.json +49 -0
  373. package/node_modules/yargs/locales/pt.json +45 -0
  374. package/node_modules/yargs/locales/pt_BR.json +48 -0
  375. package/node_modules/yargs/locales/ru.json +46 -0
  376. package/node_modules/yargs/locales/th.json +46 -0
  377. package/node_modules/yargs/locales/tr.json +48 -0
  378. package/node_modules/yargs/locales/zh_CN.json +48 -0
  379. package/node_modules/yargs/locales/zh_TW.json +47 -0
  380. package/node_modules/yargs/package.json +92 -0
  381. package/node_modules/yargs/yargs.js +14 -0
  382. package/node_modules/yargs-parser/LICENSE.txt +14 -0
  383. package/node_modules/yargs-parser/README.md +449 -0
  384. package/node_modules/yargs-parser/index.js +1032 -0
  385. package/node_modules/yargs-parser/lib/tokenize-arg-string.js +40 -0
  386. package/node_modules/yargs-parser/package.json +46 -0
  387. package/package.json +28 -5
@@ -0,0 +1,77 @@
1
+ {
2
+ "name": "qrcode",
3
+ "description": "QRCode / 2d Barcode api with both server side and client side support using canvas",
4
+ "version": "1.5.4",
5
+ "author": "Ryan Day <soldair@gmail.com>",
6
+ "contributors": [
7
+ "Vincenzo Greco <greco.vincenzo@gmail.com>",
8
+ "Linus Unnebäck <linus@folkdatorn.se>"
9
+ ],
10
+ "keywords": [
11
+ "qr",
12
+ "code",
13
+ "canvas",
14
+ "qrcode"
15
+ ],
16
+ "main": "./lib/index.js",
17
+ "browser": {
18
+ "./lib/index.js": "./lib/browser.js",
19
+ "fs": false
20
+ },
21
+ "files": [
22
+ "bin",
23
+ "build",
24
+ "lib",
25
+ "helper"
26
+ ],
27
+ "homepage": "http://github.com/soldair/node-qrcode",
28
+ "license": "MIT",
29
+ "scripts": {
30
+ "lint": "standard",
31
+ "pretest": "npm run lint",
32
+ "test": "node --throw-deprecation test.js",
33
+ "build": "rollup -c",
34
+ "prepublish": "npm run build",
35
+ "browser": "node examples/clientsideserver.js"
36
+ },
37
+ "bin": {
38
+ "qrcode": "./bin/qrcode"
39
+ },
40
+ "dependencies": {
41
+ "dijkstrajs": "^1.0.1",
42
+ "pngjs": "^5.0.0",
43
+ "yargs": "^15.3.1"
44
+ },
45
+ "devDependencies": {
46
+ "@babel/core": "^7.9.0",
47
+ "@babel/preset-env": "^7.9.5",
48
+ "@rollup/plugin-commonjs": "^11.1.0",
49
+ "@rollup/plugin-node-resolve": "^7.1.3",
50
+ "browserify": "^16.5.1",
51
+ "canvas": "^2.8.0",
52
+ "canvasutil": "0.0.4",
53
+ "colors": "^1.4.0",
54
+ "express": "^4.17.1",
55
+ "htmlparser2": "^4.1.0",
56
+ "rollup": "^2.6.1",
57
+ "rollup-plugin-babel": "^4.4.0",
58
+ "rollup-plugin-terser": "^5.3.0",
59
+ "sinon": "^9.0.2",
60
+ "standard": "^16.0.4",
61
+ "tap": "^16.2.0"
62
+ },
63
+ "repository": {
64
+ "type": "git",
65
+ "url": "git://github.com/soldair/node-qrcode.git"
66
+ },
67
+ "engines": {
68
+ "node": ">=10.13.0"
69
+ },
70
+ "standard": {
71
+ "ignore": [
72
+ "build/",
73
+ "examples/vendors/",
74
+ "lib/core/regex.js"
75
+ ]
76
+ }
77
+ }
@@ -0,0 +1,67 @@
1
+ {
2
+ "maxerr" : 50,
3
+ "bitwise" : true,
4
+ "camelcase" : true,
5
+ "curly" : true,
6
+ "eqeqeq" : true,
7
+ "forin" : true,
8
+ "immed" : true,
9
+ "indent" : 2,
10
+ "latedef" : true,
11
+ "newcap" : true,
12
+ "noarg" : true,
13
+ "noempty" : true,
14
+ "nonew" : true,
15
+ "plusplus" : true,
16
+ "quotmark" : true,
17
+ "undef" : true,
18
+ "unused" : true,
19
+ "strict" : true,
20
+ "trailing" : true,
21
+ "maxparams" : false,
22
+ "maxdepth" : false,
23
+ "maxstatements" : false,
24
+ "maxcomplexity" : false,
25
+ "maxlen" : false,
26
+ "asi" : false,
27
+ "boss" : false,
28
+ "debug" : false,
29
+ "eqnull" : true,
30
+ "es5" : false,
31
+ "esnext" : false,
32
+ "moz" : false,
33
+ "evil" : false,
34
+ "expr" : true,
35
+ "funcscope" : true,
36
+ "globalstrict" : true,
37
+ "iterator" : true,
38
+ "lastsemic" : false,
39
+ "laxbreak" : false,
40
+ "laxcomma" : false,
41
+ "loopfunc" : false,
42
+ "multistr" : false,
43
+ "proto" : false,
44
+ "scripturl" : false,
45
+ "smarttabs" : false,
46
+ "shadow" : false,
47
+ "sub" : false,
48
+ "supernew" : false,
49
+ "validthis" : false,
50
+ "browser" : true,
51
+ "couch" : false,
52
+ "devel" : true,
53
+ "dojo" : false,
54
+ "jquery" : false,
55
+ "mootools" : false,
56
+ "node" : true,
57
+ "nonstandard" : false,
58
+ "prototypejs" : false,
59
+ "rhino" : false,
60
+ "worker" : false,
61
+ "wsh" : false,
62
+ "yui" : false,
63
+ "nomen" : true,
64
+ "onevar" : true,
65
+ "passfail" : false,
66
+ "white" : true
67
+ }
@@ -0,0 +1 @@
1
+ test/**
@@ -0,0 +1,3 @@
1
+ language: node_js
2
+ node_js:
3
+ - 0.10
@@ -0,0 +1,22 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2011 Troy Goode <troygoode@gmail.com>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a
6
+ copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included
14
+ in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,184 @@
1
+ # require-directory
2
+
3
+ Recursively iterates over specified directory, `require()`'ing each file, and returning a nested hash structure containing those modules.
4
+
5
+ **[Follow me (@troygoode) on Twitter!](https://twitter.com/intent/user?screen_name=troygoode)**
6
+
7
+ [![NPM](https://nodei.co/npm/require-directory.png?downloads=true&stars=true)](https://nodei.co/npm/require-directory/)
8
+
9
+ [![build status](https://secure.travis-ci.org/troygoode/node-require-directory.png)](http://travis-ci.org/troygoode/node-require-directory)
10
+
11
+ ## How To Use
12
+
13
+ ### Installation (via [npm](https://npmjs.org/package/require-directory))
14
+
15
+ ```bash
16
+ $ npm install require-directory
17
+ ```
18
+
19
+ ### Usage
20
+
21
+ A common pattern in node.js is to include an index file which creates a hash of the files in its current directory. Given a directory structure like so:
22
+
23
+ * app.js
24
+ * routes/
25
+ * index.js
26
+ * home.js
27
+ * auth/
28
+ * login.js
29
+ * logout.js
30
+ * register.js
31
+
32
+ `routes/index.js` uses `require-directory` to build the hash (rather than doing so manually) like so:
33
+
34
+ ```javascript
35
+ var requireDirectory = require('require-directory');
36
+ module.exports = requireDirectory(module);
37
+ ```
38
+
39
+ `app.js` references `routes/index.js` like any other module, but it now has a hash/tree of the exports from the `./routes/` directory:
40
+
41
+ ```javascript
42
+ var routes = require('./routes');
43
+
44
+ // snip
45
+
46
+ app.get('/', routes.home);
47
+ app.get('/register', routes.auth.register);
48
+ app.get('/login', routes.auth.login);
49
+ app.get('/logout', routes.auth.logout);
50
+ ```
51
+
52
+ The `routes` variable above is the equivalent of this:
53
+
54
+ ```javascript
55
+ var routes = {
56
+ home: require('routes/home.js'),
57
+ auth: {
58
+ login: require('routes/auth/login.js'),
59
+ logout: require('routes/auth/logout.js'),
60
+ register: require('routes/auth/register.js')
61
+ }
62
+ };
63
+ ```
64
+
65
+ *Note that `routes.index` will be `undefined` as you would hope.*
66
+
67
+ ### Specifying Another Directory
68
+
69
+ You can specify which directory you want to build a tree of (if it isn't the current directory for whatever reason) by passing it as the second parameter. Not specifying the path (`requireDirectory(module)`) is the equivelant of `requireDirectory(module, __dirname)`:
70
+
71
+ ```javascript
72
+ var requireDirectory = require('require-directory');
73
+ module.exports = requireDirectory(module, './some/subdirectory');
74
+ ```
75
+
76
+ For example, in the [example in the Usage section](#usage) we could have avoided creating `routes/index.js` and instead changed the first lines of `app.js` to:
77
+
78
+ ```javascript
79
+ var requireDirectory = require('require-directory');
80
+ var routes = requireDirectory(module, './routes');
81
+ ```
82
+
83
+ ## Options
84
+
85
+ You can pass an options hash to `require-directory` as the 2nd parameter (or 3rd if you're passing the path to another directory as the 2nd parameter already). Here are the available options:
86
+
87
+ ### Whitelisting
88
+
89
+ Whitelisting (either via RegExp or function) allows you to specify that only certain files be loaded.
90
+
91
+ ```javascript
92
+ var requireDirectory = require('require-directory'),
93
+ whitelist = /onlyinclude.js$/,
94
+ hash = requireDirectory(module, {include: whitelist});
95
+ ```
96
+
97
+ ```javascript
98
+ var requireDirectory = require('require-directory'),
99
+ check = function(path){
100
+ if(/onlyinclude.js$/.test(path)){
101
+ return true; // don't include
102
+ }else{
103
+ return false; // go ahead and include
104
+ }
105
+ },
106
+ hash = requireDirectory(module, {include: check});
107
+ ```
108
+
109
+ ### Blacklisting
110
+
111
+ Blacklisting (either via RegExp or function) allows you to specify that all but certain files should be loaded.
112
+
113
+ ```javascript
114
+ var requireDirectory = require('require-directory'),
115
+ blacklist = /dontinclude\.js$/,
116
+ hash = requireDirectory(module, {exclude: blacklist});
117
+ ```
118
+
119
+ ```javascript
120
+ var requireDirectory = require('require-directory'),
121
+ check = function(path){
122
+ if(/dontinclude\.js$/.test(path)){
123
+ return false; // don't include
124
+ }else{
125
+ return true; // go ahead and include
126
+ }
127
+ },
128
+ hash = requireDirectory(module, {exclude: check});
129
+ ```
130
+
131
+ ### Visiting Objects As They're Loaded
132
+
133
+ `require-directory` takes a function as the `visit` option that will be called for each module that is added to module.exports.
134
+
135
+ ```javascript
136
+ var requireDirectory = require('require-directory'),
137
+ visitor = function(obj) {
138
+ console.log(obj); // will be called for every module that is loaded
139
+ },
140
+ hash = requireDirectory(module, {visit: visitor});
141
+ ```
142
+
143
+ The visitor can also transform the objects by returning a value:
144
+
145
+ ```javascript
146
+ var requireDirectory = require('require-directory'),
147
+ visitor = function(obj) {
148
+ return obj(new Date());
149
+ },
150
+ hash = requireDirectory(module, {visit: visitor});
151
+ ```
152
+
153
+ ### Renaming Keys
154
+
155
+ ```javascript
156
+ var requireDirectory = require('require-directory'),
157
+ renamer = function(name) {
158
+ return name.toUpperCase();
159
+ },
160
+ hash = requireDirectory(module, {rename: renamer});
161
+ ```
162
+
163
+ ### No Recursion
164
+
165
+ ```javascript
166
+ var requireDirectory = require('require-directory'),
167
+ hash = requireDirectory(module, {recurse: false});
168
+ ```
169
+
170
+ ## Run Unit Tests
171
+
172
+ ```bash
173
+ $ npm run lint
174
+ $ npm test
175
+ ```
176
+
177
+ ## License
178
+
179
+ [MIT License](http://www.opensource.org/licenses/mit-license.php)
180
+
181
+ ## Author
182
+
183
+ [Troy Goode](https://github.com/TroyGoode) ([troygoode@gmail.com](mailto:troygoode@gmail.com))
184
+
@@ -0,0 +1,86 @@
1
+ 'use strict';
2
+
3
+ var fs = require('fs'),
4
+ join = require('path').join,
5
+ resolve = require('path').resolve,
6
+ dirname = require('path').dirname,
7
+ defaultOptions = {
8
+ extensions: ['js', 'json', 'coffee'],
9
+ recurse: true,
10
+ rename: function (name) {
11
+ return name;
12
+ },
13
+ visit: function (obj) {
14
+ return obj;
15
+ }
16
+ };
17
+
18
+ function checkFileInclusion(path, filename, options) {
19
+ return (
20
+ // verify file has valid extension
21
+ (new RegExp('\\.(' + options.extensions.join('|') + ')$', 'i').test(filename)) &&
22
+
23
+ // if options.include is a RegExp, evaluate it and make sure the path passes
24
+ !(options.include && options.include instanceof RegExp && !options.include.test(path)) &&
25
+
26
+ // if options.include is a function, evaluate it and make sure the path passes
27
+ !(options.include && typeof options.include === 'function' && !options.include(path, filename)) &&
28
+
29
+ // if options.exclude is a RegExp, evaluate it and make sure the path doesn't pass
30
+ !(options.exclude && options.exclude instanceof RegExp && options.exclude.test(path)) &&
31
+
32
+ // if options.exclude is a function, evaluate it and make sure the path doesn't pass
33
+ !(options.exclude && typeof options.exclude === 'function' && options.exclude(path, filename))
34
+ );
35
+ }
36
+
37
+ function requireDirectory(m, path, options) {
38
+ var retval = {};
39
+
40
+ // path is optional
41
+ if (path && !options && typeof path !== 'string') {
42
+ options = path;
43
+ path = null;
44
+ }
45
+
46
+ // default options
47
+ options = options || {};
48
+ for (var prop in defaultOptions) {
49
+ if (typeof options[prop] === 'undefined') {
50
+ options[prop] = defaultOptions[prop];
51
+ }
52
+ }
53
+
54
+ // if no path was passed in, assume the equivelant of __dirname from caller
55
+ // otherwise, resolve path relative to the equivalent of __dirname
56
+ path = !path ? dirname(m.filename) : resolve(dirname(m.filename), path);
57
+
58
+ // get the path of each file in specified directory, append to current tree node, recurse
59
+ fs.readdirSync(path).forEach(function (filename) {
60
+ var joined = join(path, filename),
61
+ files,
62
+ key,
63
+ obj;
64
+
65
+ if (fs.statSync(joined).isDirectory() && options.recurse) {
66
+ // this node is a directory; recurse
67
+ files = requireDirectory(m, joined, options);
68
+ // exclude empty directories
69
+ if (Object.keys(files).length) {
70
+ retval[options.rename(filename, joined, filename)] = files;
71
+ }
72
+ } else {
73
+ if (joined !== m.filename && checkFileInclusion(joined, filename, options)) {
74
+ // hash node key shouldn't include file extension
75
+ key = filename.substring(0, filename.lastIndexOf('.'));
76
+ obj = m.require(joined);
77
+ retval[options.rename(key, joined, filename)] = options.visit(obj, joined, filename) || obj;
78
+ }
79
+ }
80
+ });
81
+
82
+ return retval;
83
+ }
84
+
85
+ module.exports = requireDirectory;
86
+ module.exports.defaults = defaultOptions;
@@ -0,0 +1,40 @@
1
+ {
2
+ "author": "Troy Goode <troygoode@gmail.com> (http://github.com/troygoode/)",
3
+ "name": "require-directory",
4
+ "version": "2.1.1",
5
+ "description": "Recursively iterates over specified directory, require()'ing each file, and returning a nested hash structure containing those modules.",
6
+ "keywords": [
7
+ "require",
8
+ "directory",
9
+ "library",
10
+ "recursive"
11
+ ],
12
+ "homepage": "https://github.com/troygoode/node-require-directory/",
13
+ "main": "index.js",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git://github.com/troygoode/node-require-directory.git"
17
+ },
18
+ "contributors": [
19
+ {
20
+ "name": "Troy Goode",
21
+ "email": "troygoode@gmail.com",
22
+ "web": "http://github.com/troygoode/"
23
+ }
24
+ ],
25
+ "license": "MIT",
26
+ "bugs": {
27
+ "url": "http://github.com/troygoode/node-require-directory/issues/"
28
+ },
29
+ "engines": {
30
+ "node": ">=0.10.0"
31
+ },
32
+ "devDependencies": {
33
+ "jshint": "^2.6.0",
34
+ "mocha": "^2.1.0"
35
+ },
36
+ "scripts": {
37
+ "test": "mocha",
38
+ "lint": "jshint index.js test/test.js"
39
+ }
40
+ }
@@ -0,0 +1,14 @@
1
+ Copyright (c) 2016, Contributors
2
+
3
+ Permission to use, copy, modify, and/or distribute this software
4
+ for any purpose with or without fee is hereby granted, provided
5
+ that the above copyright notice and this permission notice
6
+ appear in all copies.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
10
+ OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE
11
+ LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
12
+ OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
13
+ WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
14
+ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -0,0 +1,26 @@
1
+ # require-main-filename
2
+
3
+ [![Build Status](https://travis-ci.org/yargs/require-main-filename.png)](https://travis-ci.org/yargs/require-main-filename)
4
+ [![Coverage Status](https://coveralls.io/repos/yargs/require-main-filename/badge.svg?branch=master)](https://coveralls.io/r/yargs/require-main-filename?branch=master)
5
+ [![NPM version](https://img.shields.io/npm/v/require-main-filename.svg)](https://www.npmjs.com/package/require-main-filename)
6
+
7
+ `require.main.filename` is great for figuring out the entry
8
+ point for the current application. This can be combined with a module like
9
+ [pkg-conf](https://www.npmjs.com/package/pkg-conf) to, _as if by magic_, load
10
+ top-level configuration.
11
+
12
+ Unfortunately, `require.main.filename` sometimes fails when an application is
13
+ executed with an alternative process manager, e.g., [iisnode](https://github.com/tjanczuk/iisnode).
14
+
15
+ `require-main-filename` is a shim that addresses this problem.
16
+
17
+ ## Usage
18
+
19
+ ```js
20
+ var main = require('require-main-filename')()
21
+ // use main as an alternative to require.main.filename.
22
+ ```
23
+
24
+ ## License
25
+
26
+ ISC
@@ -0,0 +1,18 @@
1
+ module.exports = function (_require) {
2
+ _require = _require || require
3
+ var main = _require.main
4
+ if (main && isIISNode(main)) return handleIISNode(main)
5
+ else return main ? main.filename : process.cwd()
6
+ }
7
+
8
+ function isIISNode (main) {
9
+ return /\\iisnode\\/.test(main.filename)
10
+ }
11
+
12
+ function handleIISNode (main) {
13
+ if (!main.children.length) {
14
+ return main.filename
15
+ } else {
16
+ return main.children[0].filename
17
+ }
18
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "require-main-filename",
3
+ "version": "2.0.0",
4
+ "description": "shim for require.main.filename() that works in as many environments as possible",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "pretest": "standard",
8
+ "test": "tap --coverage test.js",
9
+ "release": "standard-version"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+ssh://git@github.com/yargs/require-main-filename.git"
14
+ },
15
+ "keywords": [
16
+ "require",
17
+ "shim",
18
+ "iisnode"
19
+ ],
20
+ "files": [
21
+ "index.js"
22
+ ],
23
+ "author": "Ben Coe <ben@npmjs.com>",
24
+ "license": "ISC",
25
+ "bugs": {
26
+ "url": "https://github.com/yargs/require-main-filename/issues"
27
+ },
28
+ "homepage": "https://github.com/yargs/require-main-filename#readme",
29
+ "devDependencies": {
30
+ "chai": "^4.0.0",
31
+ "standard": "^10.0.3",
32
+ "standard-version": "^4.0.0",
33
+ "tap": "^11.0.0"
34
+ }
35
+ }
@@ -0,0 +1,14 @@
1
+ Copyright (c) 2016, Contributors
2
+
3
+ Permission to use, copy, modify, and/or distribute this software
4
+ for any purpose with or without fee is hereby granted, provided
5
+ that the above copyright notice and this permission notice
6
+ appear in all copies.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
10
+ OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE
11
+ LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
12
+ OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
13
+ WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
14
+ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -0,0 +1,31 @@
1
+ # set-blocking
2
+
3
+ [![Build Status](https://travis-ci.org/yargs/set-blocking.svg)](https://travis-ci.org/yargs/set-blocking)
4
+ [![NPM version](https://img.shields.io/npm/v/set-blocking.svg)](https://www.npmjs.com/package/set-blocking)
5
+ [![Coverage Status](https://coveralls.io/repos/yargs/set-blocking/badge.svg?branch=)](https://coveralls.io/r/yargs/set-blocking?branch=master)
6
+ [![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg)](https://github.com/conventional-changelog/standard-version)
7
+
8
+ set blocking `stdio` and `stderr` ensuring that terminal output does not truncate.
9
+
10
+ ```js
11
+ const setBlocking = require('set-blocking')
12
+ setBlocking(true)
13
+ console.log(someLargeStringToOutput)
14
+ ```
15
+
16
+ ## Historical Context/Word of Warning
17
+
18
+ This was created as a shim to address the bug discussed in [node #6456](https://github.com/nodejs/node/issues/6456). This bug crops up on
19
+ newer versions of Node.js (`0.12+`), truncating terminal output.
20
+
21
+ You should be mindful of the side-effects caused by using `set-blocking`:
22
+
23
+ * if your module sets blocking to `true`, it will effect other modules
24
+ consuming your library. In [yargs](https://github.com/yargs/yargs/blob/master/yargs.js#L653) we only call
25
+ `setBlocking(true)` once we already know we are about to call `process.exit(code)`.
26
+ * this patch will not apply to subprocesses spawned with `isTTY = true`, this is
27
+ the [default `spawn()` behavior](https://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options).
28
+
29
+ ## License
30
+
31
+ ISC
@@ -0,0 +1,7 @@
1
+ module.exports = function (blocking) {
2
+ [process.stdout, process.stderr].forEach(function (stream) {
3
+ if (stream._handle && stream.isTTY && typeof stream._handle.setBlocking === 'function') {
4
+ stream._handle.setBlocking(blocking)
5
+ }
6
+ })
7
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "set-blocking",
3
+ "version": "2.0.0",
4
+ "description": "set blocking stdio and stderr ensuring that terminal output does not truncate",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "pretest": "standard",
8
+ "test": "nyc mocha ./test/*.js",
9
+ "coverage": "nyc report --reporter=text-lcov | coveralls",
10
+ "version": "standard-version"
11
+ },
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "git+https://github.com/yargs/set-blocking.git"
15
+ },
16
+ "keywords": [
17
+ "flush",
18
+ "terminal",
19
+ "blocking",
20
+ "shim",
21
+ "stdio",
22
+ "stderr"
23
+ ],
24
+ "author": "Ben Coe <ben@npmjs.com>",
25
+ "license": "ISC",
26
+ "bugs": {
27
+ "url": "https://github.com/yargs/set-blocking/issues"
28
+ },
29
+ "homepage": "https://github.com/yargs/set-blocking#readme",
30
+ "devDependencies": {
31
+ "chai": "^3.5.0",
32
+ "coveralls": "^2.11.9",
33
+ "mocha": "^2.4.5",
34
+ "nyc": "^6.4.4",
35
+ "standard": "^7.0.1",
36
+ "standard-version": "^2.2.1"
37
+ },
38
+ "files": [
39
+ "index.js",
40
+ "LICENSE.txt"
41
+ ]
42
+ }