@kaeawc/auto-mobile 0.0.91 → 0.0.92

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 (267) hide show
  1. package/dist/build-info.json +12 -12
  2. package/dist/schemas/README.md +16 -0
  3. package/dist/schemas/prototype-icon-names.json +302 -0
  4. package/dist/src/chunk-09442h7v.js +4 -0
  5. package/dist/src/chunk-0dfnyfkh.js +5 -0
  6. package/dist/src/chunk-0e4gm1kj.js +5 -0
  7. package/dist/src/chunk-0eb8576f.js +4 -0
  8. package/dist/src/chunk-0rjm4nx7.js +5 -0
  9. package/dist/src/chunk-0w1spptt.js +6 -0
  10. package/dist/src/chunk-1zmh2eak.js +4 -0
  11. package/dist/src/chunk-28k63ha3.js +5 -0
  12. package/dist/src/chunk-2d4wmp8b.js +4 -0
  13. package/dist/src/chunk-2e6s75qv.js +78 -0
  14. package/dist/src/chunk-2v7tw1nj.js +5 -0
  15. package/dist/src/chunk-32jpxz2y.js +323 -0
  16. package/dist/src/chunk-34zxqcmq.js +5 -0
  17. package/dist/src/chunk-3jmvqygr.js +238 -0
  18. package/dist/src/chunk-3swvfhqt.js +5 -0
  19. package/dist/src/chunk-44bt78m9.js +5 -0
  20. package/dist/src/chunk-488vt2bp.js +4 -0
  21. package/dist/src/chunk-4fgdhcwx.js +5 -0
  22. package/dist/src/chunk-4jp2se4w.js +4 -0
  23. package/dist/src/chunk-4pfftt07.js +5 -0
  24. package/dist/src/chunk-4vhr9e4t.js +4 -0
  25. package/dist/src/chunk-4xd6zs3y.js +15 -0
  26. package/dist/src/chunk-51567pg8.js +4 -0
  27. package/dist/src/chunk-5agqsfev.js +4 -0
  28. package/dist/src/chunk-5d706gmr.js +4 -0
  29. package/dist/src/chunk-5kd4rqk7.js +5 -0
  30. package/dist/src/chunk-5s645vr4.js +4 -0
  31. package/dist/src/chunk-61t538bm.js +4 -0
  32. package/dist/src/chunk-6d3mmqxt.js +54 -0
  33. package/dist/src/chunk-6hyt398x.js +5 -0
  34. package/dist/src/chunk-6mnr8kpm.js +4 -0
  35. package/dist/src/chunk-6pg7bqck.js +4 -0
  36. package/dist/src/chunk-79q5xsdc.js +42 -0
  37. package/dist/src/chunk-7bdgand3.js +4 -0
  38. package/dist/src/chunk-84cp9dw5.js +4 -0
  39. package/dist/src/chunk-86f2h5ww.js +5 -0
  40. package/dist/src/chunk-8cghfzb2.js +19 -0
  41. package/dist/src/chunk-8en08r7q.js +5 -0
  42. package/dist/src/chunk-950qcq1e.js +10 -0
  43. package/dist/src/chunk-9rkfyt6q.js +5 -0
  44. package/dist/src/chunk-9tf2p9y9.js +5 -0
  45. package/dist/src/chunk-9y5bcy28.js +6 -0
  46. package/dist/src/chunk-a2sc4jm0.js +5 -0
  47. package/dist/src/chunk-a4k9rt7z.js +5 -0
  48. package/dist/src/chunk-aa5ng3d1.js +4 -0
  49. package/dist/src/chunk-ajsrz473.js +5 -0
  50. package/dist/src/chunk-b3h0a6ca.js +4 -0
  51. package/dist/src/chunk-b4cxdzwy.js +20 -0
  52. package/dist/src/chunk-b6a737qt.js +4 -0
  53. package/dist/src/chunk-bn64x5z5.js +5 -0
  54. package/dist/src/chunk-bvh649za.js +12 -0
  55. package/dist/src/chunk-c9nk1r78.js +5 -0
  56. package/dist/src/chunk-c9tyfg4j.js +26 -0
  57. package/dist/src/chunk-cfsdfqnm.js +4 -0
  58. package/dist/src/chunk-cxyf04jc.js +7 -0
  59. package/dist/src/chunk-d57432wq.js +4 -0
  60. package/dist/src/chunk-da08tx5v.js +4 -0
  61. package/dist/src/chunk-eka89q3k.js +4 -0
  62. package/dist/src/chunk-f2tc08m2.js +4 -0
  63. package/dist/src/chunk-f8tnk179.js +5 -0
  64. package/dist/src/chunk-f9s1kkhx.js +5 -0
  65. package/dist/src/chunk-fbp8a4rx.js +4 -0
  66. package/dist/src/chunk-fd2z0sze.js +4 -0
  67. package/dist/src/chunk-fk927f4q.js +54 -0
  68. package/dist/src/chunk-fxmr3a0f.js +4 -0
  69. package/dist/src/chunk-gaqwhd44.js +4 -0
  70. package/dist/src/chunk-ggtd5x5a.js +5 -0
  71. package/dist/src/chunk-gndcfrm7.js +4 -0
  72. package/dist/src/chunk-h3n4adc6.js +310 -0
  73. package/dist/src/chunk-h5pjbb83.js +4 -0
  74. package/dist/src/chunk-hgnnh302.js +4 -0
  75. package/dist/src/chunk-hmke8nhx.js +5 -0
  76. package/dist/src/chunk-j2bx12hn.js +4 -0
  77. package/dist/src/chunk-j70y1a2g.js +4 -0
  78. package/dist/src/chunk-jdqvcq0a.js +5 -0
  79. package/dist/src/chunk-jhnbfj19.js +55 -0
  80. package/dist/src/chunk-js1jpyxp.js +6 -0
  81. package/dist/src/chunk-kbjq0qvb.js +4 -0
  82. package/dist/src/chunk-kfwx57xd.js +4 -0
  83. package/dist/src/chunk-km0dy5vc.js +71 -0
  84. package/dist/src/chunk-kzwctna2.js +4 -0
  85. package/dist/src/chunk-m9ehyehy.js +4 -0
  86. package/dist/src/chunk-mct91p1f.js +4 -0
  87. package/dist/src/chunk-mf9spd4g.js +5 -0
  88. package/dist/src/chunk-mgrcansb.js +4 -0
  89. package/dist/src/chunk-mqc1d0eb.js +6 -0
  90. package/dist/src/chunk-n1zmpk0z.js +4 -0
  91. package/dist/src/chunk-ncyjf63g.js +4 -0
  92. package/dist/src/chunk-nr64d21q.js +973 -0
  93. package/dist/src/chunk-nwm2pq5v.js +168 -0
  94. package/dist/src/chunk-pm06b05d.js +9 -0
  95. package/dist/src/chunk-q50s00ry.js +4 -0
  96. package/dist/src/chunk-qv2918jt.js +4 -0
  97. package/dist/src/chunk-qwye1958.js +14 -0
  98. package/dist/src/chunk-r0f1q783.js +5 -0
  99. package/dist/src/chunk-r14wwk37.js +18 -0
  100. package/dist/src/chunk-r20pe1nv.js +5 -0
  101. package/dist/src/chunk-r8z9pfve.js +5 -0
  102. package/dist/src/chunk-rdpgkjf6.js +4 -0
  103. package/dist/src/chunk-rkr0dks9.js +5 -0
  104. package/dist/src/chunk-rn84t3sf.js +11 -0
  105. package/dist/src/chunk-s123kn7n.js +4 -0
  106. package/dist/src/chunk-s1zq65ny.js +4 -0
  107. package/dist/src/chunk-s73qn3fx.js +4 -0
  108. package/dist/src/chunk-sjn0nj4p.js +5 -0
  109. package/dist/src/chunk-sns0c35v.js +7 -0
  110. package/dist/src/chunk-stfzjr9y.js +8 -0
  111. package/dist/src/chunk-sz1a7p43.js +4 -0
  112. package/dist/src/chunk-t4dr5c8v.js +8 -0
  113. package/dist/src/chunk-tc8k9c1j.js +4 -0
  114. package/dist/src/chunk-teznhase.js +4 -0
  115. package/dist/src/chunk-ty9xgmz4.js +4 -0
  116. package/dist/src/chunk-tyazf3sk.js +145 -0
  117. package/dist/src/chunk-v6npjrjm.js +5 -0
  118. package/dist/src/chunk-v90es00d.js +4 -0
  119. package/dist/src/chunk-vbvtzkwz.js +5 -0
  120. package/dist/src/chunk-vefd8qee.js +8 -0
  121. package/dist/src/chunk-vs9r72ta.js +17 -0
  122. package/dist/src/chunk-w2mwa0jk.js +4 -0
  123. package/dist/src/chunk-w7zsh13a.js +9 -0
  124. package/dist/src/chunk-w88k0bgr.js +4 -0
  125. package/dist/src/chunk-wry6skrm.js +4 -0
  126. package/dist/src/chunk-wzdt0enk.js +4 -0
  127. package/dist/src/chunk-xhhv854c.js +4 -0
  128. package/dist/src/chunk-y58270hd.js +4 -0
  129. package/dist/src/chunk-yk0hmbex.js +4 -0
  130. package/dist/src/chunk-ympy4fdz.js +28 -0
  131. package/dist/src/chunk-yw436axy.js +4 -0
  132. package/dist/src/chunk-z04jrpjy.js +5 -0
  133. package/dist/src/chunk-z2xznczw.js +4 -0
  134. package/dist/src/chunk-z4xnrgps.js +4 -0
  135. package/dist/src/chunk-z7csyszv.js +4 -0
  136. package/dist/src/chunk-z8t0v07j.js +11 -0
  137. package/dist/src/chunk-z916af47.js +228 -0
  138. package/dist/src/chunk-zcr8he8q.js +5 -0
  139. package/dist/src/chunk-zd9vmkzn.js +9 -0
  140. package/dist/src/chunk-zg67wjkh.js +5 -0
  141. package/dist/src/chunk-zj939v0h.js +5 -0
  142. package/dist/src/chunk-zkdjwtc1.js +4 -0
  143. package/dist/src/chunk-zkv5kzt6.js +4 -0
  144. package/dist/src/daemon/processEntry.js +4 -0
  145. package/dist/src/index.js +4 -2843
  146. package/dist/src/runtime/bunRuntimeGuard.js +4 -0
  147. package/dist/src/utils/workers/iosBundleExtractWorker.js +2 -3
  148. package/package.json +5 -5
  149. package/schemas/README.md +16 -0
  150. package/schemas/prototype-icon-names.json +302 -0
  151. package/node_modules/@borewit/text-codec/README.md +0 -87
  152. package/node_modules/@jimp/diff/node_modules/pixelmatch/README.md +0 -110
  153. package/node_modules/@jimp/diff/node_modules/pixelmatch/node_modules/pngjs/README.md +0 -433
  154. package/node_modules/@jimp/file-ops/dist/browser/index.js +0 -8
  155. package/node_modules/@jimp/js-png/README.md +0 -35
  156. package/node_modules/@jimp/js-png/src/__image_snapshots__/index-node-test-ts-png-should-use-png-options-1-snap.png +0 -0
  157. package/node_modules/@jimp/js-png/src/output.png +0 -0
  158. package/node_modules/@jimp/js-png/vitest.config.browser.mjs +0 -3
  159. package/node_modules/@jimp/plugin-resize/README.md +0 -12
  160. package/node_modules/@jimp/plugin-resize/vitest.config.browser.mjs +0 -3
  161. package/node_modules/@tokenizer/inflate/README.md +0 -114
  162. package/node_modules/@tokenizer/token/README.md +0 -19
  163. package/node_modules/await-to-js/README.md +0 -82
  164. package/node_modules/debug/README.md +0 -481
  165. package/node_modules/exif-parser/README.md +0 -83
  166. package/node_modules/file-type/readme.md +0 -667
  167. package/node_modules/ieee754/README.md +0 -51
  168. package/node_modules/mime/README.md +0 -178
  169. package/node_modules/ms/readme.md +0 -59
  170. package/node_modules/parse-bmfont-xml/README.md +0 -74
  171. package/node_modules/parse-bmfont-xml/lib/browser.js +0 -85
  172. package/node_modules/parse-bmfont-xml/node_modules/xml2js/README.md +0 -507
  173. package/node_modules/pngjs/README.md +0 -287
  174. package/node_modules/sax/README.md +0 -228
  175. package/node_modules/strtok3/README.md +0 -795
  176. package/node_modules/tinycolor2/README.md +0 -492
  177. package/node_modules/tinycolor2/cjs/test.js +0 -2191
  178. package/node_modules/tinycolor2/cjs/test_template.js +0 -26
  179. package/node_modules/tinycolor2/deno_asserts@0.168.0.mjs +0 -807
  180. package/node_modules/tinycolor2/esm/test.js +0 -2189
  181. package/node_modules/tinycolor2/esm/test_template.js +0 -24
  182. package/node_modules/tinycolor2/tinycolor.js +0 -1191
  183. package/node_modules/token-types/README.md +0 -160
  184. package/node_modules/uint8array-extras/readme.md +0 -318
  185. package/node_modules/xml-parse-from-string/README.md +0 -35
  186. package/node_modules/xmlbuilder/README.md +0 -86
  187. package/node_modules/zod/README.md +0 -208
  188. package/node_modules/zod/v4/locales/ar.d.cts +0 -4
  189. package/node_modules/zod/v4/locales/ar.d.ts +0 -4
  190. package/node_modules/zod/v4/locales/az.d.cts +0 -4
  191. package/node_modules/zod/v4/locales/az.d.ts +0 -4
  192. package/node_modules/zod/v4/locales/be.d.cts +0 -4
  193. package/node_modules/zod/v4/locales/be.d.ts +0 -4
  194. package/node_modules/zod/v4/locales/ca.d.cts +0 -4
  195. package/node_modules/zod/v4/locales/ca.d.ts +0 -4
  196. package/node_modules/zod/v4/locales/cs.d.cts +0 -4
  197. package/node_modules/zod/v4/locales/cs.d.ts +0 -4
  198. package/node_modules/zod/v4/locales/de.d.cts +0 -4
  199. package/node_modules/zod/v4/locales/de.d.ts +0 -4
  200. package/node_modules/zod/v4/locales/en.d.cts +0 -5
  201. package/node_modules/zod/v4/locales/en.d.ts +0 -5
  202. package/node_modules/zod/v4/locales/eo.d.cts +0 -5
  203. package/node_modules/zod/v4/locales/eo.d.ts +0 -5
  204. package/node_modules/zod/v4/locales/es.d.cts +0 -4
  205. package/node_modules/zod/v4/locales/es.d.ts +0 -4
  206. package/node_modules/zod/v4/locales/fa.d.cts +0 -4
  207. package/node_modules/zod/v4/locales/fa.d.ts +0 -4
  208. package/node_modules/zod/v4/locales/fi.d.cts +0 -4
  209. package/node_modules/zod/v4/locales/fi.d.ts +0 -4
  210. package/node_modules/zod/v4/locales/fr-CA.d.cts +0 -4
  211. package/node_modules/zod/v4/locales/fr-CA.d.ts +0 -4
  212. package/node_modules/zod/v4/locales/fr.d.cts +0 -4
  213. package/node_modules/zod/v4/locales/fr.d.ts +0 -4
  214. package/node_modules/zod/v4/locales/he.d.cts +0 -4
  215. package/node_modules/zod/v4/locales/he.d.ts +0 -4
  216. package/node_modules/zod/v4/locales/hu.d.cts +0 -4
  217. package/node_modules/zod/v4/locales/hu.d.ts +0 -4
  218. package/node_modules/zod/v4/locales/id.d.cts +0 -4
  219. package/node_modules/zod/v4/locales/id.d.ts +0 -4
  220. package/node_modules/zod/v4/locales/index.d.cts +0 -39
  221. package/node_modules/zod/v4/locales/index.d.ts +0 -39
  222. package/node_modules/zod/v4/locales/it.d.cts +0 -4
  223. package/node_modules/zod/v4/locales/it.d.ts +0 -4
  224. package/node_modules/zod/v4/locales/ja.d.cts +0 -4
  225. package/node_modules/zod/v4/locales/ja.d.ts +0 -4
  226. package/node_modules/zod/v4/locales/kh.d.cts +0 -4
  227. package/node_modules/zod/v4/locales/kh.d.ts +0 -4
  228. package/node_modules/zod/v4/locales/ko.d.cts +0 -4
  229. package/node_modules/zod/v4/locales/ko.d.ts +0 -4
  230. package/node_modules/zod/v4/locales/mk.d.cts +0 -4
  231. package/node_modules/zod/v4/locales/mk.d.ts +0 -4
  232. package/node_modules/zod/v4/locales/ms.d.cts +0 -4
  233. package/node_modules/zod/v4/locales/ms.d.ts +0 -4
  234. package/node_modules/zod/v4/locales/nl.d.cts +0 -4
  235. package/node_modules/zod/v4/locales/nl.d.ts +0 -4
  236. package/node_modules/zod/v4/locales/no.d.cts +0 -4
  237. package/node_modules/zod/v4/locales/no.d.ts +0 -4
  238. package/node_modules/zod/v4/locales/ota.d.cts +0 -4
  239. package/node_modules/zod/v4/locales/ota.d.ts +0 -4
  240. package/node_modules/zod/v4/locales/pl.d.cts +0 -4
  241. package/node_modules/zod/v4/locales/pl.d.ts +0 -4
  242. package/node_modules/zod/v4/locales/ps.d.cts +0 -4
  243. package/node_modules/zod/v4/locales/ps.d.ts +0 -4
  244. package/node_modules/zod/v4/locales/pt.d.cts +0 -4
  245. package/node_modules/zod/v4/locales/pt.d.ts +0 -4
  246. package/node_modules/zod/v4/locales/ru.d.cts +0 -4
  247. package/node_modules/zod/v4/locales/ru.d.ts +0 -4
  248. package/node_modules/zod/v4/locales/sl.d.cts +0 -4
  249. package/node_modules/zod/v4/locales/sl.d.ts +0 -4
  250. package/node_modules/zod/v4/locales/sv.d.cts +0 -4
  251. package/node_modules/zod/v4/locales/sv.d.ts +0 -4
  252. package/node_modules/zod/v4/locales/ta.d.cts +0 -4
  253. package/node_modules/zod/v4/locales/ta.d.ts +0 -4
  254. package/node_modules/zod/v4/locales/th.d.cts +0 -4
  255. package/node_modules/zod/v4/locales/th.d.ts +0 -4
  256. package/node_modules/zod/v4/locales/tr.d.cts +0 -5
  257. package/node_modules/zod/v4/locales/tr.d.ts +0 -5
  258. package/node_modules/zod/v4/locales/ua.d.cts +0 -4
  259. package/node_modules/zod/v4/locales/ua.d.ts +0 -4
  260. package/node_modules/zod/v4/locales/ur.d.cts +0 -4
  261. package/node_modules/zod/v4/locales/ur.d.ts +0 -4
  262. package/node_modules/zod/v4/locales/vi.d.cts +0 -4
  263. package/node_modules/zod/v4/locales/vi.d.ts +0 -4
  264. package/node_modules/zod/v4/locales/zh-CN.d.cts +0 -4
  265. package/node_modules/zod/v4/locales/zh-CN.d.ts +0 -4
  266. package/node_modules/zod/v4/locales/zh-TW.d.cts +0 -4
  267. package/node_modules/zod/v4/locales/zh-TW.d.ts +0 -4
@@ -1,433 +0,0 @@
1
- [![Build Status](https://travis-ci.com/lukeapage/pngjs.svg?branch=master)](https://travis-ci.com/lukeapage/pngjs) [![Build status](https://ci.appveyor.com/api/projects/status/qo5x8ayutr028108/branch/master?svg=true)](https://ci.appveyor.com/project/lukeapage/pngjs/branch/master) [![codecov](https://codecov.io/gh/lukeapage/pngjs/branch/master/graph/badge.svg)](https://codecov.io/gh/lukeapage/pngjs) [![npm version](https://badge.fury.io/js/pngjs.svg)](http://badge.fury.io/js/pngjs)
2
-
3
- # pngjs
4
-
5
- Simple PNG encoder/decoder for Node.js with no dependencies.
6
-
7
- Based on the original [pngjs](https://github.com/niegowski/node-pngjs) with the follow enhancements.
8
-
9
- - Support for reading 1,2,4 & 16 bit files
10
- - Support for reading interlace files
11
- - Support for reading `tTRNS` transparent colours
12
- - Support for writing colortype 0 (grayscale), colortype 2 (RGB), colortype 4 (grayscale alpha) and colortype 6 (RGBA)
13
- - Sync interface as well as async
14
- - API compatible with pngjs and node-pngjs
15
-
16
- Known lack of support for:
17
-
18
- - Extended PNG e.g. Animation
19
- - Writing in colortype 3 (indexed color)
20
-
21
- # Table of Contents
22
-
23
- - [Requirements](#requirements)
24
- - [Comparison Table](#comparison-table)
25
- - [Tests](#tests)
26
- - [Installation](#installation)
27
- - [Browser](#browser)
28
- - [Example](#example)
29
- - [Async API](#async-api)
30
- - [Sync API](#sync-api)
31
- - [Changelog](#changelog)
32
-
33
- # Comparison Table
34
-
35
- | Name | Forked From | Sync | Async | 16 Bit | 1/2/4 Bit | Interlace | Gamma | Encodes | Tested |
36
- | ------------- | ----------- | ---- | ----- | ------ | --------- | --------- | ------ | ------- | ------ |
37
- | pngjs | | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
38
- | node-png | pngjs | No | Yes | No | No | No | Hidden | Yes | Manual |
39
- | png-coder | pngjs | No | Yes | Yes | No | No | Hidden | Yes | Manual |
40
- | pngparse | | No | Yes | No | Yes | No | No | No | Yes |
41
- | pngparse-sync | pngparse | Yes | No | No | Yes | No | No | No | Yes |
42
- | png-async | | No | Yes | No | No | No | No | Yes | Yes |
43
- | png-js | | No | Yes | No | No | No | No | No | No |
44
-
45
- Native C++ node decoders:
46
-
47
- - png
48
- - png-sync (sync version of above)
49
- - pixel-png
50
- - png-img
51
-
52
- # Tests
53
-
54
- Tested using [PNG Suite](http://www.schaik.com/pngsuite/). We read every file into pngjs, output it in standard 8bit colour, synchronously and asynchronously, then compare the original with the newly saved images.
55
-
56
- To run the tests, fetch the repo (tests are not distributed via npm) and install with `npm i`, run `npm test`.
57
-
58
- The only thing not converted is gamma correction - this is because multiple vendors will do gamma correction differently, so the tests will have different results on different browsers.
59
-
60
- # Installation
61
-
62
- ```
63
- $ npm install pngjs --save
64
- ```
65
-
66
- # Browser
67
-
68
- The package has been build with a [Browserify](browserify.org) version (`npm run browserify`) and you can use the browser version by including in your code:
69
-
70
- ```
71
- import { PNG } from 'pngjs/browser';
72
- ```
73
-
74
- # Example
75
-
76
- ```js
77
- var fs = require("fs"),
78
- PNG = require("pngjs").PNG;
79
-
80
- fs.createReadStream("in.png")
81
- .pipe(
82
- new PNG({
83
- filterType: 4,
84
- })
85
- )
86
- .on("parsed", function () {
87
- for (var y = 0; y < this.height; y++) {
88
- for (var x = 0; x < this.width; x++) {
89
- var idx = (this.width * y + x) << 2;
90
-
91
- // invert color
92
- this.data[idx] = 255 - this.data[idx];
93
- this.data[idx + 1] = 255 - this.data[idx + 1];
94
- this.data[idx + 2] = 255 - this.data[idx + 2];
95
-
96
- // and reduce opacity
97
- this.data[idx + 3] = this.data[idx + 3] >> 1;
98
- }
99
- }
100
-
101
- this.pack().pipe(fs.createWriteStream("out.png"));
102
- });
103
- ```
104
-
105
- For more examples see `examples` folder.
106
-
107
- # Async API
108
-
109
- As input any color type is accepted (grayscale, rgb, palette, grayscale with alpha, rgb with alpha) but 8 bit per sample (channel) is the only supported bit depth. Interlaced mode is not supported.
110
-
111
- ## Class: PNG
112
-
113
- `PNG` is readable and writable `Stream`.
114
-
115
- ### Options
116
-
117
- - `width` - use this with `height` if you want to create png from scratch
118
- - `height` - as above
119
- - `checkCRC` - whether parser should be strict about checksums in source stream (default: `true`)
120
- - `deflateChunkSize` - chunk size used for deflating data chunks, this should be power of 2 and must not be less than 256 and more than 32\*1024 (default: 32 kB)
121
- - `deflateLevel` - compression level for deflate (default: 9)
122
- - `deflateStrategy` - compression strategy for deflate (default: 3)
123
- - `deflateFactory` - deflate stream factory (default: `zlib.createDeflate`)
124
- - `filterType` - png filtering method for scanlines (default: -1 => auto, accepts array of numbers 0-4)
125
- - `colorType` - the output colorType - see constants. 0 = grayscale, no alpha, 2 = color, no alpha, 4 = grayscale & alpha, 6 = color & alpha. Default currently 6, but in the future may calculate best mode.
126
- - `inputColorType` - the input colorType - see constants. Default is 6 (RGBA)
127
- - `bitDepth` - the bitDepth of the output, 8 or 16 bits. Input data is expected to have this bit depth.
128
- 16 bit data is expected in the system endianness (Default: 8)
129
- - `inputHasAlpha` - whether the input bitmap has 4 bytes per pixel (rgb and alpha) or 3 (rgb - no alpha).
130
- - `bgColor` - an object containing red, green, and blue values between 0 and 255
131
- that is used when packing a PNG if alpha is not to be included (default: 255,255,255)
132
-
133
- ### Event "metadata"
134
-
135
- `function(metadata) { }`
136
- Image's header has been parsed, metadata contains this information:
137
-
138
- - `width` image size in pixels
139
- - `height` image size in pixels
140
- - `palette` image is paletted
141
- - `color` image is not grayscale
142
- - `alpha` image contains alpha channel
143
- - `interlace` image is interlaced
144
-
145
- ### Event: "parsed"
146
-
147
- `function(data) { }`
148
- Input image has been completely parsed, `data` is complete and ready for modification.
149
-
150
- ### Event: "error"
151
-
152
- `function(error) { }`
153
-
154
- ### png.parse(data, [callback])
155
-
156
- Parses PNG file data. Can be `String` or `Buffer`. Alternatively you can stream data to instance of PNG.
157
-
158
- Optional `callback` is once called on `error` or `parsed`. The callback gets
159
- two arguments `(err, data)`.
160
-
161
- Returns `this` for method chaining.
162
-
163
- #### Example
164
-
165
- ```js
166
- new PNG({ filterType: 4 }).parse(imageData, function (error, data) {
167
- console.log(error, data);
168
- });
169
- ```
170
-
171
- ### png.pack()
172
-
173
- Starts converting data to PNG file Stream.
174
-
175
- Returns `this` for method chaining.
176
-
177
- ### png.bitblt(dst, sx, sy, w, h, dx, dy)
178
-
179
- Helper for image manipulation, copies a rectangle of pixels from current (i.e. the source) image (`sx`, `sy`, `w`, `h`) to `dst` image (at `dx`, `dy`).
180
-
181
- Returns `this` for method chaining.
182
-
183
- For example, the following code copies the top-left 100x50 px of `in.png` into dst and writes it to `out.png`:
184
-
185
- ```js
186
- var dst = new PNG({ width: 100, height: 50 });
187
- fs.createReadStream("in.png")
188
- .pipe(new PNG())
189
- .on("parsed", function () {
190
- this.bitblt(dst, 0, 0, 100, 50, 0, 0);
191
- dst.pack().pipe(fs.createWriteStream("out.png"));
192
- });
193
- ```
194
-
195
- ### Property: adjustGamma()
196
-
197
- Helper that takes data and adjusts it to be gamma corrected. Note that it is not 100% reliable with transparent colours because that requires knowing the background colour the bitmap is rendered on to.
198
-
199
- In tests against PNG suite it compared 100% with chrome on all 8 bit and below images. On IE there were some differences.
200
-
201
- The following example reads a file, adjusts the gamma (which sets the gamma to 0) and writes it out again, effectively removing any gamma correction from the image.
202
-
203
- ```js
204
- fs.createReadStream("in.png")
205
- .pipe(new PNG())
206
- .on("parsed", function () {
207
- this.adjustGamma();
208
- this.pack().pipe(fs.createWriteStream("out.png"));
209
- });
210
- ```
211
-
212
- ### Property: width
213
-
214
- Width of image in pixels
215
-
216
- ### Property: height
217
-
218
- Height of image in pixels
219
-
220
- ### Property: data
221
-
222
- Buffer of image pixel data. Every pixel consists 4 bytes: R, G, B, A (opacity).
223
-
224
- ### Property: gamma
225
-
226
- Gamma of image (0 if not specified)
227
-
228
- ## Packing a PNG and removing alpha (RGBA to RGB)
229
-
230
- When removing the alpha channel from an image, there needs to be a background color to correctly
231
- convert each pixel's transparency to the appropriate RGB value. By default, pngjs will flatten
232
- the image against a white background. You can override this in the options:
233
-
234
- ```js
235
- var fs = require("fs"),
236
- PNG = require("pngjs").PNG;
237
-
238
- fs.createReadStream("in.png")
239
- .pipe(
240
- new PNG({
241
- colorType: 2,
242
- bgColor: {
243
- red: 0,
244
- green: 255,
245
- blue: 0,
246
- },
247
- })
248
- )
249
- .on("parsed", function () {
250
- this.pack().pipe(fs.createWriteStream("out.png"));
251
- });
252
- ```
253
-
254
- # Sync API
255
-
256
- ## PNG.sync
257
-
258
- ### PNG.sync.read(buffer)
259
-
260
- Take a buffer and returns a PNG image. The properties on the image include the meta data and `data` as per the async API above.
261
-
262
- ```
263
- var data = fs.readFileSync('in.png');
264
- var png = PNG.sync.read(data);
265
- ```
266
-
267
- ### PNG.sync.write(png)
268
-
269
- Take a PNG image and returns a buffer. The properties on the image include the meta data and `data` as per the async API above.
270
-
271
- ```
272
- var data = fs.readFileSync('in.png');
273
- var png = PNG.sync.read(data);
274
- var options = { colorType: 6 };
275
- var buffer = PNG.sync.write(png, options);
276
- fs.writeFileSync('out.png', buffer);
277
- ```
278
-
279
- ### PNG.adjustGamma(src)
280
-
281
- Adjusts the gamma of a sync image. See the async adjustGamma.
282
-
283
- ```
284
- var data = fs.readFileSync('in.png');
285
- var png = PNG.sync.read(data);
286
- PNG.adjustGamma(png);
287
- ```
288
-
289
- # Changelog
290
-
291
- ### 6.0.0 - 24/10/2020
292
-
293
- - BREAKING - Sync version now throws if there is unexpected content at the end of the stream.
294
- - BREAKING - Drop support for node 10 (Though nothing incompatible in this release yet)
295
- - Reduce the number of files included in the package
296
-
297
- ### 5.1.0 - 13/09/2020
298
-
299
- - Add option to skip rescaling
300
-
301
- ### 5.0.0 - 15/04/2020
302
-
303
- - Drop support for Node 8
304
- - Browserified bundle may now contain ES20(15-20) code if the supported node version supports it. Please run the browserified version through babel if you need to support older browsers.
305
-
306
- ### 4.0.1 - 15/04/2020
307
-
308
- - Fix to possible null reference in nextTick of async method
309
-
310
- ### 4.0.0 - 09/04/2020
311
-
312
- - Fix issue in newer nodes with using Buffer
313
- - Fix async issue with some png files
314
- - Drop support for Node 4 & 6
315
-
316
- ### 3.4.0 - 09/03/2019
317
-
318
- - Include whether the png has alpha in the meta data
319
- - emit an error if the image is truncated instead of hanging
320
- - Add a browserified version
321
- - speed up some mapping functions
322
-
323
- ### 3.3.3 - 19/04/2018
324
-
325
- - Real fix for node 9
326
-
327
- ### 3.3.2 - 16/02/2018
328
-
329
- - Fix for node 9
330
-
331
- ### 3.3.1 - 15/11/2017
332
-
333
- - Bugfixes and removal of es6
334
-
335
- ### 3.3.0
336
-
337
- - Add writing 16 bit channels and support for grayscale input
338
-
339
- ### 3.2.0 - 30/04/2017
340
-
341
- - Support for encoding 8-bit grayscale images
342
-
343
- ### 3.1.0 - 30/04/2017
344
-
345
- - Support for pngs with zlib chunks that are malformed after valid data
346
-
347
- ### 3.0.1 - 16/02/2017
348
-
349
- - Fix single pixel pngs
350
-
351
- ### 3.0.0 - 03/08/2016
352
-
353
- - Drop support for node below v4 and iojs. Pin to 2.3.0 to use with old, unsupported or patched node versions.
354
-
355
- ### 2.3.0 - 22/04/2016
356
-
357
- - Support for sync in node 0.10
358
-
359
- ### 2.2.0 - 04/12/2015
360
-
361
- - Add sync write api
362
- - Fix newfile example
363
- - Correct comparison table
364
-
365
- ### 2.1.0 - 28/10/2015
366
-
367
- - rename package to pngjs
368
- - added 'bgColor' option
369
-
370
- ### 2.0.0 - 08/10/2015
371
-
372
- - fixes to readme
373
- - _breaking change_ - bitblt on the png prototype now doesn't take a unused, unnecessary src first argument
374
-
375
- ### 1.2.0 - 13/09/2015
376
-
377
- - support passing colorType to write PNG's and writing bitmaps without alpha information
378
-
379
- ### 1.1.0 - 07/09/2015
380
-
381
- - support passing a deflate factory for controlled compression
382
-
383
- ### 1.0.2 - 22/08/2015
384
-
385
- - Expose all PNG creation info
386
-
387
- ### 1.0.1 - 21/08/2015
388
-
389
- - Fix non square interlaced files
390
-
391
- ### 1.0.0 - 08/08/2015
392
-
393
- - More tests
394
- - source linted
395
- - maintainability refactorings
396
- - async API - exceptions in reading now emit warnings
397
- - documentation improvement - sync api now documented, adjustGamma documented
398
- - breaking change - gamma chunk is now written. previously a read then write would destroy gamma information, now it is persisted.
399
-
400
- ### 0.0.3 - 03/08/2015
401
-
402
- - Error handling fixes
403
- - ignore files for smaller npm footprint
404
-
405
- ### 0.0.2 - 02/08/2015
406
-
407
- - Bugfixes to interlacing, support for transparent colours
408
-
409
- ### 0.0.1 - 02/08/2015
410
-
411
- - Initial release, see pngjs for older changelog.
412
-
413
- # License
414
-
415
- (The MIT License)
416
-
417
- Permission is hereby granted, free of charge, to any person obtaining a copy
418
- of this software and associated documentation files (the "Software"), to deal
419
- in the Software without restriction, including without limitation the rights
420
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
421
- copies of the Software, and to permit persons to whom the Software is
422
- furnished to do so, subject to the following conditions:
423
-
424
- The above copyright notice and this permission notice shall be included in
425
- all copies or substantial portions of the Software.
426
-
427
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
428
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
429
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
430
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
431
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
432
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
433
- THE SOFTWARE.
@@ -1,8 +0,0 @@
1
- export const existsSync = () => false;
2
- export const readFile = async () => {
3
- throw new Error("Not supported");
4
- };
5
- export const writeFile = async () => {
6
- throw new Error("Not supported");
7
- };
8
- //# sourceMappingURL=index-browser.mjs.map
@@ -1,35 +0,0 @@
1
- <div align="center">
2
- <img width="200" height="200"
3
- src="https://s3.amazonaws.com/pix.iemoji.com/images/emoji/apple/ios-11/256/crayon.png">
4
- <h1>@jimp/png</h1>
5
- <p>Default Jimp png encoder/decoder.</p>
6
- </div>
7
-
8
- ## Available Methods
9
-
10
- ### Jimp.deflateLevel
11
-
12
- Sets the deflate level used when saving as PNG format (default is 9)
13
-
14
- ### Jimp.deflateStrategy
15
-
16
- Sets the deflate strategy used when saving as PNG format (default is 3)
17
-
18
- ### Jimp.filterType
19
-
20
- Sets the filter type used when saving as PNG format (default is automatic filters)
21
-
22
- ### Jimp.colorType
23
-
24
- Sets the color type used when saving as PNG format (one of 0, 2, 4, 6)
25
-
26
- ### Filter Types
27
-
28
- ```js
29
- Jimp.PNG_FILTER_AUTO;
30
- Jimp.PNG_FILTER_NONE;
31
- Jimp.PNG_FILTER_SUB;
32
- Jimp.PNG_FILTER_UP;
33
- Jimp.PNG_FILTER_AVERAGE;
34
- Jimp.PNG_FILTER_PATH;
35
- ```
@@ -1,3 +0,0 @@
1
- import config from "@jimp/config-vitest/browser";
2
-
3
- export default config;
@@ -1,12 +0,0 @@
1
- <div align="center">
2
- <img width="200" height="200"
3
- src="https://s3.amazonaws.com/pix.iemoji.com/images/emoji/apple/ios-11/256/crayon.png">
4
- <h1>@jimp/plugin-resize</h1>
5
- <p>Resize an image.</p>
6
- </div>
7
-
8
- Resizes the image to a set width and height using a 2-pass bilinear algorithm.
9
-
10
- - [resize](http://jimp-dev.github.io/jimp/api/jimp/classes/jimp#resize)
11
- - [scale](http://jimp-dev.github.io/jimp/api/jimp/classes/jimp#scale)
12
- - [scaleToFit](http://jimp-dev.github.io/jimp/api/jimp/classes/jimp#scaletofit)
@@ -1,3 +0,0 @@
1
- import config from "@jimp/config-vitest/browser";
2
-
3
- export default config;
@@ -1,114 +0,0 @@
1
- [![Node.js CI](https://github.com/Borewit/tokenizer-inflate/actions/workflows/nodejs-ci.yml/badge.svg)](https://github.com/Borewit/tokenizer-inflate/actions/workflows/nodejs-ci.yml)
2
- [![NPM version](https://badge.fury.io/js/%40tokenizer%2Finflate.svg)](https://npmjs.org/package/@tokenizer/inflate)
3
- [![npm downloads](https://img.shields.io/npm/dm/@tokenizer%2Finflate.svg)](https://npmcharts.com/compare/%40tokenizer%2Finflate?start=1200&interval=30)
4
-
5
- # @tokenizer/inflate
6
-
7
- `@tokenizer/inflate` is a package designed for handling and extracting data from ZIP files efficiently using a tokenizer-based approach.
8
- The library provides a customizable way to parse ZIP archives and extract compressed data while minimizing memory usage.
9
-
10
- ## Features
11
- - Efficient Decompression: Handles streams compressed with DEFLATE and related formats (e.g., gzip).
12
- - Tokenizer Compatibility: Seamlessly integrates with [strtok3](https://github.com/Borewit/strtok3). For example, use [@tokenizer/s3](https://github.com/Borewit/tokenizer-s3) for efficient partial extraction of a Zip stored on AWS S3 cloud file storage.
13
- - Streamlined Interface: Provides an intuitive API for working with compressed data in streaming and random-access scenarios.
14
- - Chunked Data Access: Leverages the underlying media's capabilities to offer chunked or random access to data, unlike traditional streams.
15
- - Plug-and-Play: Easily integrate with existing tokenizer-based workflows for parsing file metadata or binary structures.
16
- - Interrupt the extraction process conditionally.
17
-
18
- ## Installation
19
- ```bash
20
- npm install @tokenizer/inflate
21
- ```
22
-
23
- ## Usage
24
-
25
- ### Example: Extracting Specific Files
26
-
27
- The following example demonstrates how to use the library to extract .txt files and stop processing when encountering a .stop file.
28
-
29
- ```js
30
- import { ZipHandler } from '@tokenizer/inflate';
31
- import { fromFile } from 'strtok3';
32
-
33
- const fileFilter = (file) => {
34
- console.log(`Processing file: ${file.filename}`);
35
-
36
- if (file.filename?.endsWith(".stop")) {
37
- console.log(`Stopping processing due to file: ${file.filename}`);
38
- return { handler: false, stop: true }; // Stop the unzip process
39
- }
40
-
41
- if (file.filename?.endsWith(".txt")) {
42
- return {
43
- handler: async (data) => {
44
- console.log(`Extracted text file: ${file.filename}`);
45
- console.log(new TextDecoder().decode(data));
46
- },
47
- };
48
- }
49
-
50
- return { handler: false }; // Ignore other files
51
- };
52
-
53
- async function extractFiles(zipFilePath) {
54
- const tokenizer = await fromFile(zipFilePath);
55
- const zipHandler = new ZipHandler(tokenizer);
56
- await zipHandler.unzip(fileFilter);
57
- }
58
-
59
- extractFiles('example.zip').catch(console.error);
60
- ```
61
-
62
- ## API
63
-
64
- ### `ZipHandler`
65
- A class for handling ZIP file parsing and extraction.
66
- #### Constructor
67
- ```ts
68
- new ZipHandler(tokenizer: ITokenizer)
69
- ```
70
- - **tokenizer**: An instance of ITokenizer to read the ZIP archive.
71
- #### Methods
72
-
73
- - `isZip(): Promise<boolean>`
74
-
75
- Determines whether the input file is a ZIP archive.
76
-
77
- - `unzip(fileCb: InflateFileFilter): Promise<void>`
78
-
79
- Extracts files from the ZIP archive, applying the provided `InflateFileFilter` callback to each file.
80
-
81
- ```InflatedDataHandler```
82
-
83
- ## Types
84
-
85
- ### `InflateFileFilter`
86
- ```ts
87
- type InflateFileFilter = (file: IFullZipHeader) => InflateFileFilterResult;
88
- ```
89
- Callback function to determine whether a file should be handled or ignored.
90
-
91
- ### `InflateFileFilterResult`
92
- ```ts
93
- type InflateFileFilterResult = {
94
- handler: InflatedDataHandler | false; // Handle file data or ignore
95
- stop?: boolean; // Stop processing further files
96
- };
97
-
98
- ```
99
- Returned from `InflateFileFilter` to control file handling and extraction flow.
100
-
101
- ### `InflatedDataHandler`
102
- ```ts
103
- type InflatedDataHandler = (fileData: Uint8Array) => Promise<void>;
104
- ```
105
- Handler for processing uncompressed file data.
106
-
107
- ## Compatibility
108
-
109
- This module is a [pure ECMAScript Module (ESM)](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).
110
- The distributed JavaScript codebase is compliant with the [ECMAScript 2020 (11th Edition)](https://en.wikipedia.org/wiki/ECMAScript_version_history#11th_Edition_%E2%80%93_ECMAScript_2020) standard.
111
- If used with Node.js, it requires version ≥ 18.
112
-
113
- ## License
114
- This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
@@ -1,19 +0,0 @@
1
- [![npm version](https://badge.fury.io/js/%40tokenizer%2Ftoken.svg)](https://www.npmjs.com/package/@tokenizer/token)
2
- [![npm downloads](http://img.shields.io/npm/dm/@tokenizer/token.svg)](https://npmcharts.com/compare/@tokenizer/token?interval=30)
3
-
4
- # @tokenizer/token
5
-
6
- TypeScript definition of an [strtok3](https://github.com/Borewit/strtok3) token.
7
-
8
- ## Licence
9
-
10
- (The MIT License)
11
-
12
- Copyright (c) 2020 Borewit
13
-
14
- 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:
15
-
16
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
17
-
18
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, 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.
19
-