@marktrue/dsh-mobile-remote 3.2.1-alpha.3 → 3.2.2-alpha.1-app

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 (349) hide show
  1. package/DSH-Remote-v3.2.2.apk +4 -0
  2. package/README.md +6 -253
  3. package/manifest.json +21 -0
  4. package/package.json +12 -65
  5. package/CHANGELOG.md +0 -810
  6. package/CONTRIBUTING.md +0 -59
  7. package/FAQ.md +0 -111
  8. package/cordis.patch.yml +0 -14
  9. package/docs/00-/345/274/200/345/217/221/346/200/273/347/272/262.md +0 -122
  10. package/docs/01-PRD.md +0 -148
  11. package/docs/02-architecture.md +0 -249
  12. package/docs/03-api.md +0 -816
  13. package/docs/04-security.md +0 -96
  14. package/docs/05-test-cases.md +0 -326
  15. package/docs/06-install-run.md +0 -308
  16. package/docs/07-user-manual.md +0 -65
  17. package/docs/08-/346/211/251/345/261/225/345/274/200/345/217/221/346/214/207/345/215/227.md +0 -86
  18. package/docs/09-compatibility.md +0 -195
  19. package/docs/10-release.md +0 -927
  20. package/docs/screenshots/01-home.png +0 -0
  21. package/docs/screenshots/02-notifications.png +0 -0
  22. package/docs/screenshots/03-sessions.png +0 -0
  23. package/docs/screenshots/04-chat.png +0 -0
  24. package/docs/screenshots/05-settings.png +0 -0
  25. package/docs/screenshots/06-new-session.png +0 -0
  26. package/docs/screenshots/pgy-appstore.jpg +0 -0
  27. package/docs/screenshots/pgy-mobile-app.jpg +0 -0
  28. package/docs/screenshots/pgy-pc-client.jpg +0 -0
  29. package/lib/account-usage.js +0 -145
  30. package/lib/app-alignment.js +0 -112
  31. package/lib/app-carrier-store.js +0 -1972
  32. package/lib/app-carrier.js +0 -602
  33. package/lib/client.js +0 -706
  34. package/lib/desktop-form.js +0 -738
  35. package/lib/endpoint-registry.js +0 -162
  36. package/lib/git-read-bundled-provider.js +0 -255
  37. package/lib/git-read-service.js +0 -322
  38. package/lib/index.js +0 -9292
  39. package/lib/plugin-content-digest.js +0 -80
  40. package/lib/plugin-self-update.js +0 -758
  41. package/lib/plugin-update-controller.js +0 -95
  42. package/lib/plugin-update-transaction.js +0 -322
  43. package/lib/plugin-update.js +0 -309
  44. package/lib/runtime-dependency-snapshot.js +0 -345
  45. package/lib/session-title-cache.js +0 -123
  46. package/lib/session-title-refresh.js +0 -261
  47. package/lib/update-fetch.js +0 -24
  48. package/lib/update-lock-arbiter.js +0 -158
  49. package/lib/update-supervisor.js +0 -312
  50. package/node_modules/ansi-regex/index.d.ts +0 -37
  51. package/node_modules/ansi-regex/index.js +0 -10
  52. package/node_modules/ansi-regex/license +0 -9
  53. package/node_modules/ansi-regex/package.json +0 -55
  54. package/node_modules/ansi-regex/readme.md +0 -78
  55. package/node_modules/ansi-styles/index.d.ts +0 -345
  56. package/node_modules/ansi-styles/index.js +0 -163
  57. package/node_modules/ansi-styles/license +0 -9
  58. package/node_modules/ansi-styles/package.json +0 -56
  59. package/node_modules/ansi-styles/readme.md +0 -152
  60. package/node_modules/camelcase/index.d.ts +0 -63
  61. package/node_modules/camelcase/index.js +0 -76
  62. package/node_modules/camelcase/license +0 -9
  63. package/node_modules/camelcase/package.json +0 -43
  64. package/node_modules/camelcase/readme.md +0 -99
  65. package/node_modules/cliui/CHANGELOG.md +0 -76
  66. package/node_modules/cliui/LICENSE.txt +0 -14
  67. package/node_modules/cliui/README.md +0 -115
  68. package/node_modules/cliui/index.js +0 -354
  69. package/node_modules/cliui/package.json +0 -65
  70. package/node_modules/color-convert/CHANGELOG.md +0 -54
  71. package/node_modules/color-convert/LICENSE +0 -21
  72. package/node_modules/color-convert/README.md +0 -68
  73. package/node_modules/color-convert/conversions.js +0 -839
  74. package/node_modules/color-convert/index.js +0 -81
  75. package/node_modules/color-convert/package.json +0 -48
  76. package/node_modules/color-convert/route.js +0 -97
  77. package/node_modules/color-name/LICENSE +0 -8
  78. package/node_modules/color-name/README.md +0 -11
  79. package/node_modules/color-name/index.js +0 -152
  80. package/node_modules/color-name/package.json +0 -28
  81. package/node_modules/decamelize/index.js +0 -13
  82. package/node_modules/decamelize/license +0 -21
  83. package/node_modules/decamelize/package.json +0 -38
  84. package/node_modules/decamelize/readme.md +0 -48
  85. package/node_modules/dijkstrajs/.travis.yml +0 -4
  86. package/node_modules/dijkstrajs/CONTRIBUTING.md +0 -8
  87. package/node_modules/dijkstrajs/LICENSE.md +0 -19
  88. package/node_modules/dijkstrajs/README.md +0 -18
  89. package/node_modules/dijkstrajs/dijkstra.js +0 -165
  90. package/node_modules/dijkstrajs/package.json +0 -60
  91. package/node_modules/dijkstrajs/test/dijkstra.test.js +0 -96
  92. package/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
  93. package/node_modules/emoji-regex/README.md +0 -73
  94. package/node_modules/emoji-regex/es2015/index.js +0 -6
  95. package/node_modules/emoji-regex/es2015/text.js +0 -6
  96. package/node_modules/emoji-regex/index.d.ts +0 -23
  97. package/node_modules/emoji-regex/index.js +0 -6
  98. package/node_modules/emoji-regex/package.json +0 -50
  99. package/node_modules/emoji-regex/text.js +0 -6
  100. package/node_modules/find-up/index.d.ts +0 -137
  101. package/node_modules/find-up/index.js +0 -89
  102. package/node_modules/find-up/license +0 -9
  103. package/node_modules/find-up/package.json +0 -53
  104. package/node_modules/find-up/readme.md +0 -156
  105. package/node_modules/get-caller-file/LICENSE.md +0 -6
  106. package/node_modules/get-caller-file/README.md +0 -41
  107. package/node_modules/get-caller-file/index.d.ts +0 -2
  108. package/node_modules/get-caller-file/index.js +0 -22
  109. package/node_modules/get-caller-file/index.js.map +0 -1
  110. package/node_modules/get-caller-file/package.json +0 -42
  111. package/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
  112. package/node_modules/is-fullwidth-code-point/index.js +0 -50
  113. package/node_modules/is-fullwidth-code-point/license +0 -9
  114. package/node_modules/is-fullwidth-code-point/package.json +0 -42
  115. package/node_modules/is-fullwidth-code-point/readme.md +0 -39
  116. package/node_modules/locate-path/index.d.ts +0 -83
  117. package/node_modules/locate-path/index.js +0 -65
  118. package/node_modules/locate-path/license +0 -9
  119. package/node_modules/locate-path/package.json +0 -45
  120. package/node_modules/locate-path/readme.md +0 -122
  121. package/node_modules/p-limit/index.d.ts +0 -38
  122. package/node_modules/p-limit/index.js +0 -57
  123. package/node_modules/p-limit/license +0 -9
  124. package/node_modules/p-limit/package.json +0 -52
  125. package/node_modules/p-limit/readme.md +0 -101
  126. package/node_modules/p-locate/index.d.ts +0 -64
  127. package/node_modules/p-locate/index.js +0 -52
  128. package/node_modules/p-locate/license +0 -9
  129. package/node_modules/p-locate/package.json +0 -53
  130. package/node_modules/p-locate/readme.md +0 -90
  131. package/node_modules/p-try/index.d.ts +0 -39
  132. package/node_modules/p-try/index.js +0 -9
  133. package/node_modules/p-try/license +0 -9
  134. package/node_modules/p-try/package.json +0 -42
  135. package/node_modules/p-try/readme.md +0 -58
  136. package/node_modules/path-exists/index.d.ts +0 -28
  137. package/node_modules/path-exists/index.js +0 -23
  138. package/node_modules/path-exists/license +0 -9
  139. package/node_modules/path-exists/package.json +0 -39
  140. package/node_modules/path-exists/readme.md +0 -52
  141. package/node_modules/pngjs/.eslintignore +0 -2
  142. package/node_modules/pngjs/.eslintrc.json +0 -19
  143. package/node_modules/pngjs/.prettierignore +0 -3
  144. package/node_modules/pngjs/LICENSE +0 -20
  145. package/node_modules/pngjs/README.md +0 -429
  146. package/node_modules/pngjs/browser.js +0 -16096
  147. package/node_modules/pngjs/coverage/lcov-report/base.css +0 -354
  148. package/node_modules/pngjs/coverage/lcov-report/bitmapper.js.html +0 -881
  149. package/node_modules/pngjs/coverage/lcov-report/bitpacker.js.html +0 -554
  150. package/node_modules/pngjs/coverage/lcov-report/block-navigation.js +0 -77
  151. package/node_modules/pngjs/coverage/lcov-report/chunkstream.js.html +0 -647
  152. package/node_modules/pngjs/coverage/lcov-report/constants.js.html +0 -176
  153. package/node_modules/pngjs/coverage/lcov-report/crc.js.html +0 -200
  154. package/node_modules/pngjs/coverage/lcov-report/favicon.png +0 -0
  155. package/node_modules/pngjs/coverage/lcov-report/filter-pack.js.html +0 -593
  156. package/node_modules/pngjs/coverage/lcov-report/filter-parse-async.js.html +0 -152
  157. package/node_modules/pngjs/coverage/lcov-report/filter-parse-sync.js.html +0 -143
  158. package/node_modules/pngjs/coverage/lcov-report/filter-parse.js.html +0 -611
  159. package/node_modules/pngjs/coverage/lcov-report/format-normaliser.js.html +0 -359
  160. package/node_modules/pngjs/coverage/lcov-report/index.html +0 -426
  161. package/node_modules/pngjs/coverage/lcov-report/interlace.js.html +0 -365
  162. package/node_modules/pngjs/coverage/lcov-report/packer-async.js.html +0 -230
  163. package/node_modules/pngjs/coverage/lcov-report/packer-sync.js.html +0 -248
  164. package/node_modules/pngjs/coverage/lcov-report/packer.js.html +0 -467
  165. package/node_modules/pngjs/coverage/lcov-report/paeth-predictor.js.html +0 -128
  166. package/node_modules/pngjs/coverage/lcov-report/parser-async.js.html +0 -575
  167. package/node_modules/pngjs/coverage/lcov-report/parser-sync.js.html +0 -404
  168. package/node_modules/pngjs/coverage/lcov-report/parser.js.html +0 -950
  169. package/node_modules/pngjs/coverage/lcov-report/png-sync.js.html +0 -116
  170. package/node_modules/pngjs/coverage/lcov-report/png.js.html +0 -662
  171. package/node_modules/pngjs/coverage/lcov-report/prettify.css +0 -101
  172. package/node_modules/pngjs/coverage/lcov-report/prettify.js +0 -1007
  173. package/node_modules/pngjs/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  174. package/node_modules/pngjs/coverage/lcov-report/sorter.js +0 -169
  175. package/node_modules/pngjs/coverage/lcov-report/sync-inflate.js.html +0 -584
  176. package/node_modules/pngjs/coverage/lcov-report/sync-reader.js.html +0 -215
  177. package/node_modules/pngjs/coverage/lcov.info +0 -2177
  178. package/node_modules/pngjs/lib/bitmapper.js +0 -267
  179. package/node_modules/pngjs/lib/bitpacker.js +0 -158
  180. package/node_modules/pngjs/lib/chunkstream.js +0 -189
  181. package/node_modules/pngjs/lib/constants.js +0 -32
  182. package/node_modules/pngjs/lib/crc.js +0 -40
  183. package/node_modules/pngjs/lib/filter-pack.js +0 -171
  184. package/node_modules/pngjs/lib/filter-parse-async.js +0 -24
  185. package/node_modules/pngjs/lib/filter-parse-sync.js +0 -21
  186. package/node_modules/pngjs/lib/filter-parse.js +0 -177
  187. package/node_modules/pngjs/lib/format-normaliser.js +0 -93
  188. package/node_modules/pngjs/lib/interlace.js +0 -95
  189. package/node_modules/pngjs/lib/packer-async.js +0 -50
  190. package/node_modules/pngjs/lib/packer-sync.js +0 -56
  191. package/node_modules/pngjs/lib/packer.js +0 -129
  192. package/node_modules/pngjs/lib/paeth-predictor.js +0 -16
  193. package/node_modules/pngjs/lib/parser-async.js +0 -165
  194. package/node_modules/pngjs/lib/parser-sync.js +0 -108
  195. package/node_modules/pngjs/lib/parser.js +0 -290
  196. package/node_modules/pngjs/lib/png-sync.js +0 -12
  197. package/node_modules/pngjs/lib/png.js +0 -194
  198. package/node_modules/pngjs/lib/sync-inflate.js +0 -168
  199. package/node_modules/pngjs/lib/sync-reader.js +0 -45
  200. package/node_modules/pngjs/package.json +0 -73
  201. package/node_modules/qrcode/README.md +0 -770
  202. package/node_modules/qrcode/bin/qrcode +0 -159
  203. package/node_modules/qrcode/helper/to-sjis-browser.js +0 -2
  204. package/node_modules/qrcode/helper/to-sjis.js +0 -105
  205. package/node_modules/qrcode/lib/browser.js +0 -76
  206. package/node_modules/qrcode/lib/can-promise.js +0 -7
  207. package/node_modules/qrcode/lib/core/alignment-pattern.js +0 -83
  208. package/node_modules/qrcode/lib/core/alphanumeric-data.js +0 -59
  209. package/node_modules/qrcode/lib/core/bit-buffer.js +0 -37
  210. package/node_modules/qrcode/lib/core/bit-matrix.js +0 -65
  211. package/node_modules/qrcode/lib/core/byte-data.js +0 -30
  212. package/node_modules/qrcode/lib/core/error-correction-code.js +0 -135
  213. package/node_modules/qrcode/lib/core/error-correction-level.js +0 -50
  214. package/node_modules/qrcode/lib/core/finder-pattern.js +0 -22
  215. package/node_modules/qrcode/lib/core/format-info.js +0 -29
  216. package/node_modules/qrcode/lib/core/galois-field.js +0 -69
  217. package/node_modules/qrcode/lib/core/kanji-data.js +0 -54
  218. package/node_modules/qrcode/lib/core/mask-pattern.js +0 -234
  219. package/node_modules/qrcode/lib/core/mode.js +0 -167
  220. package/node_modules/qrcode/lib/core/numeric-data.js +0 -43
  221. package/node_modules/qrcode/lib/core/polynomial.js +0 -62
  222. package/node_modules/qrcode/lib/core/qrcode.js +0 -495
  223. package/node_modules/qrcode/lib/core/reed-solomon-encoder.js +0 -56
  224. package/node_modules/qrcode/lib/core/regex.js +0 -31
  225. package/node_modules/qrcode/lib/core/segments.js +0 -330
  226. package/node_modules/qrcode/lib/core/utils.js +0 -63
  227. package/node_modules/qrcode/lib/core/version-check.js +0 -9
  228. package/node_modules/qrcode/lib/core/version.js +0 -163
  229. package/node_modules/qrcode/lib/index.js +0 -12
  230. package/node_modules/qrcode/lib/renderer/canvas.js +0 -63
  231. package/node_modules/qrcode/lib/renderer/png.js +0 -78
  232. package/node_modules/qrcode/lib/renderer/svg-tag.js +0 -81
  233. package/node_modules/qrcode/lib/renderer/svg.js +0 -19
  234. package/node_modules/qrcode/lib/renderer/terminal/terminal-small.js +0 -85
  235. package/node_modules/qrcode/lib/renderer/terminal/terminal.js +0 -49
  236. package/node_modules/qrcode/lib/renderer/terminal.js +0 -9
  237. package/node_modules/qrcode/lib/renderer/utf8.js +0 -71
  238. package/node_modules/qrcode/lib/renderer/utils.js +0 -99
  239. package/node_modules/qrcode/lib/server.js +0 -138
  240. package/node_modules/qrcode/license +0 -10
  241. package/node_modules/qrcode/package.json +0 -77
  242. package/node_modules/require-directory/.jshintrc +0 -67
  243. package/node_modules/require-directory/.npmignore +0 -1
  244. package/node_modules/require-directory/.travis.yml +0 -3
  245. package/node_modules/require-directory/LICENSE +0 -22
  246. package/node_modules/require-directory/README.markdown +0 -184
  247. package/node_modules/require-directory/index.js +0 -86
  248. package/node_modules/require-directory/package.json +0 -40
  249. package/node_modules/require-main-filename/CHANGELOG.md +0 -26
  250. package/node_modules/require-main-filename/LICENSE.txt +0 -14
  251. package/node_modules/require-main-filename/README.md +0 -26
  252. package/node_modules/require-main-filename/index.js +0 -18
  253. package/node_modules/require-main-filename/package.json +0 -35
  254. package/node_modules/set-blocking/CHANGELOG.md +0 -26
  255. package/node_modules/set-blocking/LICENSE.txt +0 -14
  256. package/node_modules/set-blocking/README.md +0 -31
  257. package/node_modules/set-blocking/index.js +0 -7
  258. package/node_modules/set-blocking/package.json +0 -42
  259. package/node_modules/string-width/index.d.ts +0 -29
  260. package/node_modules/string-width/index.js +0 -47
  261. package/node_modules/string-width/license +0 -9
  262. package/node_modules/string-width/package.json +0 -56
  263. package/node_modules/string-width/readme.md +0 -50
  264. package/node_modules/strip-ansi/index.d.ts +0 -17
  265. package/node_modules/strip-ansi/index.js +0 -4
  266. package/node_modules/strip-ansi/license +0 -9
  267. package/node_modules/strip-ansi/package.json +0 -54
  268. package/node_modules/strip-ansi/readme.md +0 -46
  269. package/node_modules/which-module/LICENSE +0 -13
  270. package/node_modules/which-module/README.md +0 -58
  271. package/node_modules/which-module/index.js +0 -9
  272. package/node_modules/which-module/package.json +0 -41
  273. package/node_modules/wrap-ansi/index.js +0 -186
  274. package/node_modules/wrap-ansi/license +0 -9
  275. package/node_modules/wrap-ansi/package.json +0 -61
  276. package/node_modules/wrap-ansi/readme.md +0 -97
  277. package/node_modules/y18n/CHANGELOG.md +0 -35
  278. package/node_modules/y18n/LICENSE +0 -13
  279. package/node_modules/y18n/README.md +0 -109
  280. package/node_modules/y18n/index.js +0 -188
  281. package/node_modules/y18n/package.json +0 -39
  282. package/node_modules/yargs/CHANGELOG.md +0 -420
  283. package/node_modules/yargs/LICENSE +0 -21
  284. package/node_modules/yargs/README.md +0 -140
  285. package/node_modules/yargs/build/lib/apply-extends.d.ts +0 -2
  286. package/node_modules/yargs/build/lib/apply-extends.js +0 -65
  287. package/node_modules/yargs/build/lib/argsert.d.ts +0 -2
  288. package/node_modules/yargs/build/lib/argsert.js +0 -65
  289. package/node_modules/yargs/build/lib/command.d.ts +0 -64
  290. package/node_modules/yargs/build/lib/command.js +0 -416
  291. package/node_modules/yargs/build/lib/common-types.d.ts +0 -36
  292. package/node_modules/yargs/build/lib/common-types.js +0 -25
  293. package/node_modules/yargs/build/lib/completion-templates.d.ts +0 -2
  294. package/node_modules/yargs/build/lib/completion-templates.js +0 -50
  295. package/node_modules/yargs/build/lib/completion.d.ts +0 -21
  296. package/node_modules/yargs/build/lib/completion.js +0 -135
  297. package/node_modules/yargs/build/lib/is-promise.d.ts +0 -1
  298. package/node_modules/yargs/build/lib/is-promise.js +0 -9
  299. package/node_modules/yargs/build/lib/levenshtein.d.ts +0 -1
  300. package/node_modules/yargs/build/lib/levenshtein.js +0 -58
  301. package/node_modules/yargs/build/lib/middleware.d.ts +0 -10
  302. package/node_modules/yargs/build/lib/middleware.js +0 -57
  303. package/node_modules/yargs/build/lib/obj-filter.d.ts +0 -1
  304. package/node_modules/yargs/build/lib/obj-filter.js +0 -14
  305. package/node_modules/yargs/build/lib/parse-command.d.ts +0 -11
  306. package/node_modules/yargs/build/lib/parse-command.js +0 -36
  307. package/node_modules/yargs/build/lib/process-argv.d.ts +0 -2
  308. package/node_modules/yargs/build/lib/process-argv.js +0 -31
  309. package/node_modules/yargs/build/lib/usage.d.ts +0 -49
  310. package/node_modules/yargs/build/lib/usage.js +0 -540
  311. package/node_modules/yargs/build/lib/validation.d.ts +0 -34
  312. package/node_modules/yargs/build/lib/validation.js +0 -330
  313. package/node_modules/yargs/build/lib/yargs.d.ts +0 -274
  314. package/node_modules/yargs/build/lib/yargs.js +0 -1190
  315. package/node_modules/yargs/build/lib/yerror.d.ts +0 -4
  316. package/node_modules/yargs/build/lib/yerror.js +0 -11
  317. package/node_modules/yargs/index.js +0 -40
  318. package/node_modules/yargs/locales/be.json +0 -46
  319. package/node_modules/yargs/locales/de.json +0 -46
  320. package/node_modules/yargs/locales/en.json +0 -51
  321. package/node_modules/yargs/locales/es.json +0 -46
  322. package/node_modules/yargs/locales/fi.json +0 -49
  323. package/node_modules/yargs/locales/fr.json +0 -53
  324. package/node_modules/yargs/locales/hi.json +0 -49
  325. package/node_modules/yargs/locales/hu.json +0 -46
  326. package/node_modules/yargs/locales/id.json +0 -50
  327. package/node_modules/yargs/locales/it.json +0 -46
  328. package/node_modules/yargs/locales/ja.json +0 -51
  329. package/node_modules/yargs/locales/ko.json +0 -49
  330. package/node_modules/yargs/locales/nb.json +0 -44
  331. package/node_modules/yargs/locales/nl.json +0 -49
  332. package/node_modules/yargs/locales/nn.json +0 -44
  333. package/node_modules/yargs/locales/pirate.json +0 -13
  334. package/node_modules/yargs/locales/pl.json +0 -49
  335. package/node_modules/yargs/locales/pt.json +0 -45
  336. package/node_modules/yargs/locales/pt_BR.json +0 -48
  337. package/node_modules/yargs/locales/ru.json +0 -46
  338. package/node_modules/yargs/locales/th.json +0 -46
  339. package/node_modules/yargs/locales/tr.json +0 -48
  340. package/node_modules/yargs/locales/zh_CN.json +0 -48
  341. package/node_modules/yargs/locales/zh_TW.json +0 -47
  342. package/node_modules/yargs/package.json +0 -92
  343. package/node_modules/yargs/yargs.js +0 -14
  344. package/node_modules/yargs-parser/CHANGELOG.md +0 -601
  345. package/node_modules/yargs-parser/LICENSE.txt +0 -14
  346. package/node_modules/yargs-parser/README.md +0 -449
  347. package/node_modules/yargs-parser/index.js +0 -1032
  348. package/node_modules/yargs-parser/lib/tokenize-arg-string.js +0 -40
  349. package/node_modules/yargs-parser/package.json +0 -46
@@ -1,152 +0,0 @@
1
- # ansi-styles [![Build Status](https://travis-ci.org/chalk/ansi-styles.svg?branch=master)](https://travis-ci.org/chalk/ansi-styles)
2
-
3
- > [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles) for styling strings in the terminal
4
-
5
- You probably want the higher-level [chalk](https://github.com/chalk/chalk) module for styling your strings.
6
-
7
- <img src="screenshot.svg" width="900">
8
-
9
- ## Install
10
-
11
- ```
12
- $ npm install ansi-styles
13
- ```
14
-
15
- ## Usage
16
-
17
- ```js
18
- const style = require('ansi-styles');
19
-
20
- console.log(`${style.green.open}Hello world!${style.green.close}`);
21
-
22
-
23
- // Color conversion between 16/256/truecolor
24
- // NOTE: If conversion goes to 16 colors or 256 colors, the original color
25
- // may be degraded to fit that color palette. This means terminals
26
- // that do not support 16 million colors will best-match the
27
- // original color.
28
- console.log(style.bgColor.ansi.hsl(120, 80, 72) + 'Hello world!' + style.bgColor.close);
29
- console.log(style.color.ansi256.rgb(199, 20, 250) + 'Hello world!' + style.color.close);
30
- console.log(style.color.ansi16m.hex('#abcdef') + 'Hello world!' + style.color.close);
31
- ```
32
-
33
- ## API
34
-
35
- Each style has an `open` and `close` property.
36
-
37
- ## Styles
38
-
39
- ### Modifiers
40
-
41
- - `reset`
42
- - `bold`
43
- - `dim`
44
- - `italic` *(Not widely supported)*
45
- - `underline`
46
- - `inverse`
47
- - `hidden`
48
- - `strikethrough` *(Not widely supported)*
49
-
50
- ### Colors
51
-
52
- - `black`
53
- - `red`
54
- - `green`
55
- - `yellow`
56
- - `blue`
57
- - `magenta`
58
- - `cyan`
59
- - `white`
60
- - `blackBright` (alias: `gray`, `grey`)
61
- - `redBright`
62
- - `greenBright`
63
- - `yellowBright`
64
- - `blueBright`
65
- - `magentaBright`
66
- - `cyanBright`
67
- - `whiteBright`
68
-
69
- ### Background colors
70
-
71
- - `bgBlack`
72
- - `bgRed`
73
- - `bgGreen`
74
- - `bgYellow`
75
- - `bgBlue`
76
- - `bgMagenta`
77
- - `bgCyan`
78
- - `bgWhite`
79
- - `bgBlackBright` (alias: `bgGray`, `bgGrey`)
80
- - `bgRedBright`
81
- - `bgGreenBright`
82
- - `bgYellowBright`
83
- - `bgBlueBright`
84
- - `bgMagentaBright`
85
- - `bgCyanBright`
86
- - `bgWhiteBright`
87
-
88
- ## Advanced usage
89
-
90
- By default, you get a map of styles, but the styles are also available as groups. They are non-enumerable so they don't show up unless you access them explicitly. This makes it easier to expose only a subset in a higher-level module.
91
-
92
- - `style.modifier`
93
- - `style.color`
94
- - `style.bgColor`
95
-
96
- ###### Example
97
-
98
- ```js
99
- console.log(style.color.green.open);
100
- ```
101
-
102
- Raw escape codes (i.e. without the CSI escape prefix `\u001B[` and render mode postfix `m`) are available under `style.codes`, which returns a `Map` with the open codes as keys and close codes as values.
103
-
104
- ###### Example
105
-
106
- ```js
107
- console.log(style.codes.get(36));
108
- //=> 39
109
- ```
110
-
111
- ## [256 / 16 million (TrueColor) support](https://gist.github.com/XVilka/8346728)
112
-
113
- `ansi-styles` uses the [`color-convert`](https://github.com/Qix-/color-convert) package to allow for converting between various colors and ANSI escapes, with support for 256 and 16 million colors.
114
-
115
- The following color spaces from `color-convert` are supported:
116
-
117
- - `rgb`
118
- - `hex`
119
- - `keyword`
120
- - `hsl`
121
- - `hsv`
122
- - `hwb`
123
- - `ansi`
124
- - `ansi256`
125
-
126
- To use these, call the associated conversion function with the intended output, for example:
127
-
128
- ```js
129
- style.color.ansi.rgb(100, 200, 15); // RGB to 16 color ansi foreground code
130
- style.bgColor.ansi.rgb(100, 200, 15); // RGB to 16 color ansi background code
131
-
132
- style.color.ansi256.hsl(120, 100, 60); // HSL to 256 color ansi foreground code
133
- style.bgColor.ansi256.hsl(120, 100, 60); // HSL to 256 color ansi foreground code
134
-
135
- style.color.ansi16m.hex('#C0FFEE'); // Hex (RGB) to 16 million color foreground code
136
- style.bgColor.ansi16m.hex('#C0FFEE'); // Hex (RGB) to 16 million color background code
137
- ```
138
-
139
- ## Related
140
-
141
- - [ansi-escapes](https://github.com/sindresorhus/ansi-escapes) - ANSI escape codes for manipulating the terminal
142
-
143
- ## Maintainers
144
-
145
- - [Sindre Sorhus](https://github.com/sindresorhus)
146
- - [Josh Junon](https://github.com/qix-)
147
-
148
- ## For enterprise
149
-
150
- Available as part of the Tidelift Subscription.
151
-
152
- The maintainers of `ansi-styles` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-ansi-styles?utm_source=npm-ansi-styles&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
@@ -1,63 +0,0 @@
1
- declare namespace camelcase {
2
- interface Options {
3
- /**
4
- Uppercase the first character: `foo-bar` → `FooBar`.
5
-
6
- @default false
7
- */
8
- readonly pascalCase?: boolean;
9
- }
10
- }
11
-
12
- declare const camelcase: {
13
- /**
14
- Convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar` → `fooBar`.
15
-
16
- @param input - String to convert to camel case.
17
-
18
- @example
19
- ```
20
- import camelCase = require('camelcase');
21
-
22
- camelCase('foo-bar');
23
- //=> 'fooBar'
24
-
25
- camelCase('foo_bar');
26
- //=> 'fooBar'
27
-
28
- camelCase('Foo-Bar');
29
- //=> 'fooBar'
30
-
31
- camelCase('Foo-Bar', {pascalCase: true});
32
- //=> 'FooBar'
33
-
34
- camelCase('--foo.bar', {pascalCase: false});
35
- //=> 'fooBar'
36
-
37
- camelCase('foo bar');
38
- //=> 'fooBar'
39
-
40
- console.log(process.argv[3]);
41
- //=> '--foo-bar'
42
- camelCase(process.argv[3]);
43
- //=> 'fooBar'
44
-
45
- camelCase(['foo', 'bar']);
46
- //=> 'fooBar'
47
-
48
- camelCase(['__foo__', '--bar'], {pascalCase: true});
49
- //=> 'FooBar'
50
- ```
51
- */
52
- (input: string | ReadonlyArray<string>, options?: camelcase.Options): string;
53
-
54
- // TODO: Remove this for the next major release, refactor the whole definition to:
55
- // declare function camelcase(
56
- // input: string | ReadonlyArray<string>,
57
- // options?: camelcase.Options
58
- // ): string;
59
- // export = camelcase;
60
- default: typeof camelcase;
61
- };
62
-
63
- export = camelcase;
@@ -1,76 +0,0 @@
1
- 'use strict';
2
-
3
- const preserveCamelCase = string => {
4
- let isLastCharLower = false;
5
- let isLastCharUpper = false;
6
- let isLastLastCharUpper = false;
7
-
8
- for (let i = 0; i < string.length; i++) {
9
- const character = string[i];
10
-
11
- if (isLastCharLower && /[a-zA-Z]/.test(character) && character.toUpperCase() === character) {
12
- string = string.slice(0, i) + '-' + string.slice(i);
13
- isLastCharLower = false;
14
- isLastLastCharUpper = isLastCharUpper;
15
- isLastCharUpper = true;
16
- i++;
17
- } else if (isLastCharUpper && isLastLastCharUpper && /[a-zA-Z]/.test(character) && character.toLowerCase() === character) {
18
- string = string.slice(0, i - 1) + '-' + string.slice(i - 1);
19
- isLastLastCharUpper = isLastCharUpper;
20
- isLastCharUpper = false;
21
- isLastCharLower = true;
22
- } else {
23
- isLastCharLower = character.toLowerCase() === character && character.toUpperCase() !== character;
24
- isLastLastCharUpper = isLastCharUpper;
25
- isLastCharUpper = character.toUpperCase() === character && character.toLowerCase() !== character;
26
- }
27
- }
28
-
29
- return string;
30
- };
31
-
32
- const camelCase = (input, options) => {
33
- if (!(typeof input === 'string' || Array.isArray(input))) {
34
- throw new TypeError('Expected the input to be `string | string[]`');
35
- }
36
-
37
- options = Object.assign({
38
- pascalCase: false
39
- }, options);
40
-
41
- const postProcess = x => options.pascalCase ? x.charAt(0).toUpperCase() + x.slice(1) : x;
42
-
43
- if (Array.isArray(input)) {
44
- input = input.map(x => x.trim())
45
- .filter(x => x.length)
46
- .join('-');
47
- } else {
48
- input = input.trim();
49
- }
50
-
51
- if (input.length === 0) {
52
- return '';
53
- }
54
-
55
- if (input.length === 1) {
56
- return options.pascalCase ? input.toUpperCase() : input.toLowerCase();
57
- }
58
-
59
- const hasUpperCase = input !== input.toLowerCase();
60
-
61
- if (hasUpperCase) {
62
- input = preserveCamelCase(input);
63
- }
64
-
65
- input = input
66
- .replace(/^[_.\- ]+/, '')
67
- .toLowerCase()
68
- .replace(/[_.\- ]+(\w|$)/g, (_, p1) => p1.toUpperCase())
69
- .replace(/\d+(\w|$)/g, m => m.toUpperCase());
70
-
71
- return postProcess(input);
72
- };
73
-
74
- module.exports = camelCase;
75
- // TODO: Remove this for the next major release
76
- module.exports.default = camelCase;
@@ -1,9 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
-
7
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
-
9
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,43 +0,0 @@
1
- {
2
- "name": "camelcase",
3
- "version": "5.3.1",
4
- "description": "Convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar` → `fooBar`",
5
- "license": "MIT",
6
- "repository": "sindresorhus/camelcase",
7
- "author": {
8
- "name": "Sindre Sorhus",
9
- "email": "sindresorhus@gmail.com",
10
- "url": "sindresorhus.com"
11
- },
12
- "engines": {
13
- "node": ">=6"
14
- },
15
- "scripts": {
16
- "test": "xo && ava && tsd"
17
- },
18
- "files": [
19
- "index.js",
20
- "index.d.ts"
21
- ],
22
- "keywords": [
23
- "camelcase",
24
- "camel-case",
25
- "camel",
26
- "case",
27
- "dash",
28
- "hyphen",
29
- "dot",
30
- "underscore",
31
- "separator",
32
- "string",
33
- "text",
34
- "convert",
35
- "pascalcase",
36
- "pascal-case"
37
- ],
38
- "devDependencies": {
39
- "ava": "^1.4.1",
40
- "tsd": "^0.7.1",
41
- "xo": "^0.24.0"
42
- }
43
- }
@@ -1,99 +0,0 @@
1
- # camelcase [![Build Status](https://travis-ci.org/sindresorhus/camelcase.svg?branch=master)](https://travis-ci.org/sindresorhus/camelcase)
2
-
3
- > Convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar` → `fooBar`
4
-
5
- ---
6
-
7
- <div align="center">
8
- <b>
9
- <a href="https://tidelift.com/subscription/pkg/npm-camelcase?utm_source=npm-camelcase&utm_medium=referral&utm_campaign=readme">Get professional support for 'camelcase' with a Tidelift subscription</a>
10
- </b>
11
- <br>
12
- <sub>
13
- Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
14
- </sub>
15
- </div>
16
-
17
- ---
18
-
19
- ## Install
20
-
21
- ```
22
- $ npm install camelcase
23
- ```
24
-
25
-
26
- ## Usage
27
-
28
- ```js
29
- const camelCase = require('camelcase');
30
-
31
- camelCase('foo-bar');
32
- //=> 'fooBar'
33
-
34
- camelCase('foo_bar');
35
- //=> 'fooBar'
36
-
37
- camelCase('Foo-Bar');
38
- //=> 'fooBar'
39
-
40
- camelCase('Foo-Bar', {pascalCase: true});
41
- //=> 'FooBar'
42
-
43
- camelCase('--foo.bar', {pascalCase: false});
44
- //=> 'fooBar'
45
-
46
- camelCase('foo bar');
47
- //=> 'fooBar'
48
-
49
- console.log(process.argv[3]);
50
- //=> '--foo-bar'
51
- camelCase(process.argv[3]);
52
- //=> 'fooBar'
53
-
54
- camelCase(['foo', 'bar']);
55
- //=> 'fooBar'
56
-
57
- camelCase(['__foo__', '--bar'], {pascalCase: true});
58
- //=> 'FooBar'
59
- ```
60
-
61
-
62
- ## API
63
-
64
- ### camelCase(input, [options])
65
-
66
- #### input
67
-
68
- Type: `string` `string[]`
69
-
70
- String to convert to camel case.
71
-
72
- #### options
73
-
74
- Type: `Object`
75
-
76
- ##### pascalCase
77
-
78
- Type: `boolean`<br>
79
- Default: `false`
80
-
81
- Uppercase the first character: `foo-bar` → `FooBar`
82
-
83
-
84
- ## Security
85
-
86
- To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.
87
-
88
-
89
- ## Related
90
-
91
- - [decamelize](https://github.com/sindresorhus/decamelize) - The inverse of this module
92
- - [uppercamelcase](https://github.com/SamVerschueren/uppercamelcase) - Like this module, but to PascalCase instead of camelCase
93
- - [titleize](https://github.com/sindresorhus/titleize) - Capitalize every word in string
94
- - [humanize-string](https://github.com/sindresorhus/humanize-string) - Convert a camelized/dasherized/underscored string into a humanized one
95
-
96
-
97
- ## License
98
-
99
- MIT © [Sindre Sorhus](https://sindresorhus.com)
@@ -1,76 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
-
5
- ## [6.0.0](https://www.github.com/yargs/cliui/compare/v5.0.0...v6.0.0) (2019-11-10)
6
-
7
-
8
- ### ⚠ BREAKING CHANGES
9
-
10
- * update deps, drop Node 6
11
-
12
- ### Code Refactoring
13
-
14
- * update deps, drop Node 6 ([62056df](https://www.github.com/yargs/cliui/commit/62056df))
15
-
16
- ## [5.0.0](https://github.com/yargs/cliui/compare/v4.1.0...v5.0.0) (2019-04-10)
17
-
18
-
19
- ### Bug Fixes
20
-
21
- * Update wrap-ansi to fix compatibility with latest versions of chalk. ([#60](https://github.com/yargs/cliui/issues/60)) ([7bf79ae](https://github.com/yargs/cliui/commit/7bf79ae))
22
-
23
-
24
- ### BREAKING CHANGES
25
-
26
- * Drop support for node < 6.
27
-
28
-
29
-
30
- <a name="4.1.0"></a>
31
- ## [4.1.0](https://github.com/yargs/cliui/compare/v4.0.0...v4.1.0) (2018-04-23)
32
-
33
-
34
- ### Features
35
-
36
- * add resetOutput method ([#57](https://github.com/yargs/cliui/issues/57)) ([7246902](https://github.com/yargs/cliui/commit/7246902))
37
-
38
-
39
-
40
- <a name="4.0.0"></a>
41
- ## [4.0.0](https://github.com/yargs/cliui/compare/v3.2.0...v4.0.0) (2017-12-18)
42
-
43
-
44
- ### Bug Fixes
45
-
46
- * downgrades strip-ansi to version 3.0.1 ([#54](https://github.com/yargs/cliui/issues/54)) ([5764c46](https://github.com/yargs/cliui/commit/5764c46))
47
- * set env variable FORCE_COLOR. ([#56](https://github.com/yargs/cliui/issues/56)) ([7350e36](https://github.com/yargs/cliui/commit/7350e36))
48
-
49
-
50
- ### Chores
51
-
52
- * drop support for node < 4 ([#53](https://github.com/yargs/cliui/issues/53)) ([b105376](https://github.com/yargs/cliui/commit/b105376))
53
-
54
-
55
- ### Features
56
-
57
- * add fallback for window width ([#45](https://github.com/yargs/cliui/issues/45)) ([d064922](https://github.com/yargs/cliui/commit/d064922))
58
-
59
-
60
- ### BREAKING CHANGES
61
-
62
- * officially drop support for Node < 4
63
-
64
-
65
-
66
- <a name="3.2.0"></a>
67
- ## [3.2.0](https://github.com/yargs/cliui/compare/v3.1.2...v3.2.0) (2016-04-11)
68
-
69
-
70
- ### Bug Fixes
71
-
72
- * reduces tarball size ([acc6c33](https://github.com/yargs/cliui/commit/acc6c33))
73
-
74
- ### Features
75
-
76
- * adds standard-version for release management ([ff84e32](https://github.com/yargs/cliui/commit/ff84e32))
@@ -1,14 +0,0 @@
1
- Copyright (c) 2015, 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.
@@ -1,115 +0,0 @@
1
- # cliui
2
-
3
- [![Build Status](https://travis-ci.org/yargs/cliui.svg)](https://travis-ci.org/yargs/cliui)
4
- [![Coverage Status](https://coveralls.io/repos/yargs/cliui/badge.svg?branch=)](https://coveralls.io/r/yargs/cliui?branch=)
5
- [![NPM version](https://img.shields.io/npm/v/cliui.svg)](https://www.npmjs.com/package/cliui)
6
- [![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg)](https://github.com/conventional-changelog/standard-version)
7
-
8
- easily create complex multi-column command-line-interfaces.
9
-
10
- ## Example
11
-
12
- ```js
13
- var ui = require('cliui')()
14
-
15
- ui.div('Usage: $0 [command] [options]')
16
-
17
- ui.div({
18
- text: 'Options:',
19
- padding: [2, 0, 2, 0]
20
- })
21
-
22
- ui.div(
23
- {
24
- text: "-f, --file",
25
- width: 20,
26
- padding: [0, 4, 0, 4]
27
- },
28
- {
29
- text: "the file to load." +
30
- chalk.green("(if this description is long it wraps).")
31
- ,
32
- width: 20
33
- },
34
- {
35
- text: chalk.red("[required]"),
36
- align: 'right'
37
- }
38
- )
39
-
40
- console.log(ui.toString())
41
- ```
42
-
43
- <img width="500" src="screenshot.png">
44
-
45
- ## Layout DSL
46
-
47
- cliui exposes a simple layout DSL:
48
-
49
- If you create a single `ui.div`, passing a string rather than an
50
- object:
51
-
52
- * `\n`: characters will be interpreted as new rows.
53
- * `\t`: characters will be interpreted as new columns.
54
- * `\s`: characters will be interpreted as padding.
55
-
56
- **as an example...**
57
-
58
- ```js
59
- var ui = require('./')({
60
- width: 60
61
- })
62
-
63
- ui.div(
64
- 'Usage: node ./bin/foo.js\n' +
65
- ' <regex>\t provide a regex\n' +
66
- ' <glob>\t provide a glob\t [required]'
67
- )
68
-
69
- console.log(ui.toString())
70
- ```
71
-
72
- **will output:**
73
-
74
- ```shell
75
- Usage: node ./bin/foo.js
76
- <regex> provide a regex
77
- <glob> provide a glob [required]
78
- ```
79
-
80
- ## Methods
81
-
82
- ```js
83
- cliui = require('cliui')
84
- ```
85
-
86
- ### cliui({width: integer})
87
-
88
- Specify the maximum width of the UI being generated.
89
- If no width is provided, cliui will try to get the current window's width and use it, and if that doesn't work, width will be set to `80`.
90
-
91
- ### cliui({wrap: boolean})
92
-
93
- Enable or disable the wrapping of text in a column.
94
-
95
- ### cliui.div(column, column, column)
96
-
97
- Create a row with any number of columns, a column
98
- can either be a string, or an object with the following
99
- options:
100
-
101
- * **text:** some text to place in the column.
102
- * **width:** the width of a column.
103
- * **align:** alignment, `right` or `center`.
104
- * **padding:** `[top, right, bottom, left]`.
105
- * **border:** should a border be placed around the div?
106
-
107
- ### cliui.span(column, column, column)
108
-
109
- Similar to `div`, except the next row will be appended without
110
- a new line being created.
111
-
112
- ### cliui.resetOutput()
113
-
114
- Resets the UI elements of the current cliui instance, maintaining the values
115
- set for `width` and `wrap`.