{"versions":{"1.0.0":{"name":"@jsquash/oxipng","version":"1.0.0","main":"index.js","description":"Wasm png optimiser supporting the browser. Repackaged from Squoosh App.","repository":{"type":"git","url":"jamsinclair/jSquash/packages/oxipng"},"author":{"name":"Jamie Sinclair","email":"jamsinclairnz+npm@gmail.com"},"keywords":["image","optimisation","optimization","squoosh","wasm","webassembly","png","oxipng"],"license":"Apache-2.0","scripts":{"clean":"rm -rf dist","build":"npm run clean && tsc && cp -r codec package.json README.md .npmignore dist"},"dependencies":{"wasm-feature-detect":"^1.2.11"},"devDependencies":{"typescript":"^4.4.4"},"type":"module","sideEffects":false,"types":"./index.d.ts","gitHead":"edd1b7de3de3d401a32c549e6f6028bf05d193f2","_id":"@jsquash/oxipng@1.0.0","_nodeVersion":"16.13.0","_npmVersion":"8.1.3","dist":{"integrity":"sha512-tdyLayrQuKDxlFR0nOVdVd+Xi8b94itqhwR82F1kmMonPG2HoWU2mMc8bKcYSLtt7KBuYnLX3MHYBSy5o81Qpw==","shasum":"d43abb244f6a781d519c867907c72ccc616b227e","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@jsquash/oxipng/-/oxipng-1.0.0.tgz","fileCount":25,"unpackedSize":640540,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhll52CRA9TVsSAnZWagAAFtYP/2wd5OQrIhcrRpkrGzvr\np+SBjeWb3rnpVMr4cqx8f2fhtYdT2TBPhNTSZdT6fKYxidPppyJPUNypkvPh\nyBZ3748+bJSz/ry/WXTR5OU+800V/VjfZxwiOG5maAT7NNySRpZAUbvYt1NL\nVinMgSUlW6ppbCRXIdu0getEltCcRyjC8cWV2SET29cxcqqoVmaTW5rrPfI+\ndOrXxMZEW4C20OAtDCizw2GfFZP6vwVrI35z801Fp0czAl+ZaUnG5mFGwZE9\nfYnRlodfREe+KEgG67I7tb4rJ90SK/WGAgFqKJQ4wfPAnTcMkfI0JhD6/xdn\nEdyANJ/2JbyLG8a7aUANhOTq7tI7SGRW0oOhRkBRGunZstjoUpztGRtEpu3A\n+RXgcT2pYslYNAx35wDsBiIc1lMGbvCUHVTuVml+mWj+WNSmu3oXDwY+EX+S\nXMU7kuHBJ0FMANtDAVXYOlZGesTprCHBBo9Grr7RhNqwJMf9fwMCl94tyPvh\nBflnmdQ7n/iOuH2b0GrMYFBTh0BdqhAwh6cKza8Y0Z4xPrIQWJkZwbN95Kz5\nT3TfG1FNvVG7IEhiybK8+HgJXiokoN+U7Y1CmbNLU97jXjNAg5CN0u4qDbt+\nJVmBC/iZJgauA+WxizkpSOxuRfBVrSmDL+pjhwtUJv4sphF1fGAgSDLlwKgb\nbLtf\r\n=/h0M\r\n-----END PGP SIGNATURE-----\r\n","size":263514},"_npmUser":{"name":"anonymous","email":"jamsinclairnz+npm@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"jamsinclairnz+npm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/oxipng_1.0.0_1637244534016_0.6478066646239222"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-28T00:48:09.284Z","contributors":[]},"1.0.1":{"name":"@jsquash/oxipng","version":"1.0.1","main":"index.js","description":"Wasm png optimiser supporting the browser. Repackaged from Squoosh App.","repository":{"type":"git","url":"jamsinclair/jSquash/packages/oxipng"},"author":{"name":"Jamie Sinclair","email":"jamsinclairnz+npm@gmail.com"},"keywords":["image","optimisation","optimization","squoosh","wasm","webassembly","png","oxipng"],"license":"Apache-2.0","scripts":{"clean":"rm -rf dist","build":"npm run clean && tsc && cp -r codec package.json README.md CHANGELOG.md .npmignore dist"},"dependencies":{"wasm-feature-detect":"^1.2.11"},"devDependencies":{"typescript":"^4.4.4"},"type":"module","sideEffects":false,"types":"./index.d.ts","gitHead":"f662d8c9e1599129fd2108cbe22aff7a713958fb","_id":"@jsquash/oxipng@1.0.1","_nodeVersion":"20.0.0","_npmVersion":"9.6.4","dist":{"integrity":"sha512-A03CMPTs/XbpuIJeVe+thf54eWGjT4cg/eJTPZR2LYNUZGnUIsa/ansXMz24ieUGhF1inBhHjy5i1/WodCNkcQ==","shasum":"05201cfceafb4ffc7f13d667860bc63784064865","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@jsquash/oxipng/-/oxipng-1.0.1.tgz","fileCount":27,"unpackedSize":640057,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAtBdfTk3nttBWAA+w3su/QS5eY4ipQFsSHtmYsgqT8CAiEAyhca082QcO+U8eLWReh3OLZeuZsA0ESlMxTSEGo04jI="}],"size":263331},"_npmUser":{"name":"anonymous","email":"jamsinclairnz+npm@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"jamsinclairnz+npm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/oxipng_1.0.1_1692033492518_0.08757164992253741"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-08-14T17:18:12.731Z","publish_time":1692033492731,"_source_registry_name":"default","contributors":[]},"1.0.1-single-thread-only":{"name":"@jsquash/oxipng","version":"1.0.1-single-thread-only","main":"index.js","description":"Wasm png optimiser supporting the browser. Repackaged from Squoosh App.","repository":{"type":"git","url":"jamsinclair/jSquash/packages/oxipng"},"author":{"name":"Jamie Sinclair","email":"jamsinclairnz+npm@gmail.com"},"keywords":["image","optimisation","optimization","squoosh","wasm","webassembly","png","oxipng"],"license":"Apache-2.0","scripts":{"clean":"rm -rf dist","build":"npm run clean && tsc && cp -r codec package.json README.md CHANGELOG.md .npmignore dist"},"devDependencies":{"typescript":"^4.4.4"},"type":"module","sideEffects":false,"types":"./index.d.ts","readmeFilename":"README.md","gitHead":"3d4001843fd41e60eceb4b006dbe79b50f95ca7f","_id":"@jsquash/oxipng@1.0.1-single-thread-only","_nodeVersion":"20.0.0","_npmVersion":"9.6.4","dist":{"integrity":"sha512-nyM+pV3OQXobziGCqOIY5EiLF5vdBD2C5E8wH9YIGaDvnRC8ol+/82kCyBr7ABjMKs4gQJbvv/7WfupLGQTVGA==","shasum":"8d24c4d2aac47104c48de819196a66a364129c54","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@jsquash/oxipng/-/oxipng-1.0.1-single-thread-only.tgz","fileCount":20,"unpackedSize":289711,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC9ZJmoLO1vapybdvRiD8/Szww8q51wzsp5IUxnzq2yBAiAcwrGkAiWKJKBT/BzAQl1DZRO7oCHeEKNzUTOBCnGMdw=="}],"size":121571},"_npmUser":{"name":"anonymous","email":"jamsinclairnz+npm@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"jamsinclairnz+npm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/oxipng_1.0.1-single-thread-only_1692521805827_0.45163575421391"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-08-20T08:56:46.124Z","publish_time":1692521806124,"_source_registry_name":"default","contributors":[]},"1.0.2":{"name":"@jsquash/oxipng","version":"1.0.2","main":"index.js","description":"Wasm png optimiser supporting the browser. Repackaged from Squoosh App.","repository":{"type":"git","url":"jamsinclair/jSquash/packages/oxipng"},"author":{"name":"Jamie Sinclair","email":"jamsinclairnz+npm@gmail.com"},"keywords":["image","optimisation","optimization","squoosh","wasm","webassembly","png","oxipng"],"license":"Apache-2.0","scripts":{"clean":"rm -rf dist","build":"npm run clean && tsc && cp -r codec package.json README.md CHANGELOG.md .npmignore dist","prepublishOnly":"[[ \"$PWD\" == *'/dist' ]] && exit 0 || (echo 'Please run npm publish from the dist directory' && exit 1)"},"dependencies":{"wasm-feature-detect":"^1.2.11"},"devDependencies":{"typescript":"^4.4.4"},"type":"module","sideEffects":false,"types":"./index.d.ts","gitHead":"9692e2edd69da91e0b40352a740e26bb1b2856d4","_id":"@jsquash/oxipng@1.0.2","_nodeVersion":"20.0.0","_npmVersion":"9.6.4","dist":{"integrity":"sha512-Ei4m9srTEdyLvbcAisEL0XeXCmGp2kZhPJeNLSYG3hSh1+v7a2riVxM6Jqs/kyZMbE/+Wt9fapvdCcB3oAhKUA==","shasum":"8ba7795cc16eb43fe2a9b42593df5787aa2f2242","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@jsquash/oxipng/-/oxipng-1.0.2.tgz","fileCount":25,"unpackedSize":642237,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZHbCkXsQt8LQMbMskL+YKb9XXR6EBCAyXeZvbfQKH4QIhAL5wZBxRM58cUoG0fR7f7lpCn4GQLcAgJ3E/PiizmE7P"}],"size":263897},"_npmUser":{"name":"anonymous","email":"jamsinclairnz+npm@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"jamsinclairnz+npm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/oxipng_1.0.2_1692704662042_0.9077150991439982"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-08-22T11:44:22.274Z","publish_time":1692704662274,"_source_registry_name":"default","contributors":[]},"2.0.0-rc.0":{"name":"@jsquash/oxipng","version":"2.0.0-rc.0","main":"index.js","description":"Wasm png optimiser supporting the browser. Repackaged from Squoosh App.","repository":{"type":"git","url":"jamsinclair/jSquash/packages/oxipng"},"author":{"name":"Jamie Sinclair","email":"jamsinclairnz+npm@gmail.com"},"keywords":["image","optimisation","optimization","squoosh","wasm","webassembly","png","oxipng"],"license":"Apache-2.0","scripts":{"clean":"rm -rf dist","build":"npm run clean && tsc && cp -r codec package.json README.md CHANGELOG.md .npmignore dist","prepublishOnly":"[[ \"$PWD\" == *'/dist' ]] && exit 0 || (echo 'Please run npm publish from the dist directory' && exit 1)"},"dependencies":{"wasm-feature-detect":"^1.2.11"},"devDependencies":{"typescript":"^4.4.4"},"type":"module","sideEffects":false,"types":"./index.d.ts","readmeFilename":"README.md","gitHead":"2eef7d147c72a94ccfaa3fba357f35d7990afb8e","_id":"@jsquash/oxipng@2.0.0-rc.0","_nodeVersion":"20.0.0","_npmVersion":"9.6.4","dist":{"integrity":"sha512-tISiwBhu7DBYNfy2a6xrnuNRJ6Ak4ATBEPEZ7Hgv6hpqzEV9WYDhotZk9mY0inBODRPUm4CBOX4yEPTsTBSwvw==","shasum":"85c9e1e9401d96fa951bac5844c9377a905f10c6","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@jsquash/oxipng/-/oxipng-2.0.0-rc.0.tgz","fileCount":23,"unpackedSize":395942,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHwjAsHjnImzH8c1qW3qOEH2inz9YiJzPImkGLOae+fWAiEAnBEiXm3ruUDisJ9bnfZJZeAaM1ij68IyNp6ldKzuS5s="}],"size":172218},"_npmUser":{"name":"anonymous","email":"jamsinclairnz+npm@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"jamsinclairnz+npm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/oxipng_2.0.0-rc.0_1692706345003_0.37401665315995847"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-08-22T12:12:25.301Z","publish_time":1692706345301,"_source_registry_name":"default","contributors":[]},"2.0.0-rc.0-single-thread-only":{"name":"@jsquash/oxipng","version":"2.0.0-rc.0-single-thread-only","main":"index.js","description":"Wasm png optimiser supporting the browser. Repackaged from Squoosh App.","repository":{"type":"git","url":"jamsinclair/jSquash/packages/oxipng"},"author":{"name":"Jamie Sinclair","email":"jamsinclairnz+npm@gmail.com"},"keywords":["image","optimisation","optimization","squoosh","wasm","webassembly","png","oxipng"],"license":"Apache-2.0","scripts":{"clean":"rm -rf dist","build":"npm run clean && tsc && cp -r codec package.json README.md CHANGELOG.md .npmignore dist","prepublishOnly":"[[ \"$PWD\" == *'/dist' ]] && exit 0 || (echo 'Please run npm publish from the dist directory' && exit 1)"},"devDependencies":{"typescript":"^4.4.4"},"type":"module","sideEffects":false,"types":"./index.d.ts","readmeFilename":"README.md","gitHead":"6ca34713d28ae515536d8b572fa3bf25dc1f6575","_id":"@jsquash/oxipng@2.0.0-rc.0-single-thread-only","_nodeVersion":"20.0.0","_npmVersion":"9.6.4","dist":{"integrity":"sha512-S+/GKJ2TRRVWjUvPgWOFRBDDEBCaz9DVxrqT8IZCL3uY73ZvNJ1VTCyBYwwtxXVsAM9tN+1MsThXW47Scp9UPA==","shasum":"300787d0408823a23c58ada0a64aa3f8daee4d6e","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@jsquash/oxipng/-/oxipng-2.0.0-rc.0-single-thread-only.tgz","fileCount":16,"unpackedSize":163673,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC4OjlQUEcb8VS8oGvqF12rN0itMagTOS43vVKgplf24QIhAIo1awiYpWBFlucMjIYx7cXzLTtVnxYljU/wTddCXCUH"}],"size":75664},"_npmUser":{"name":"anonymous","email":"jamsinclairnz+npm@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"jamsinclairnz+npm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/oxipng_2.0.0-rc.0-single-thread-only_1692706960016_0.9889485797856832"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-08-22T12:22:40.161Z","publish_time":1692706960161,"_source_registry_name":"default","contributors":[]},"2.0.0":{"name":"@jsquash/oxipng","version":"2.0.0","main":"index.js","description":"Wasm png optimiser supporting the browser. Repackaged from Squoosh App.","repository":{"type":"git","url":"jamsinclair/jSquash/packages/oxipng"},"author":{"name":"Jamie Sinclair","email":"jamsinclairnz+npm@gmail.com"},"keywords":["image","optimisation","optimization","squoosh","wasm","webassembly","png","oxipng"],"license":"Apache-2.0","scripts":{"clean":"rm -rf dist","build":"npm run clean && tsc && cp -r codec package.json README.md CHANGELOG.md .npmignore dist","prepublishOnly":"[[ \"$PWD\" == *'/dist' ]] && exit 0 || (echo 'Please run npm publish from the dist directory' && exit 1)"},"dependencies":{"wasm-feature-detect":"^1.2.11"},"devDependencies":{"typescript":"^4.4.4"},"type":"module","sideEffects":false,"types":"./index.d.ts","gitHead":"f3b67e8c3e1c37cafbdae0811e2394f9e0761785","_id":"@jsquash/oxipng@2.0.0","_nodeVersion":"20.0.0","_npmVersion":"9.6.4","dist":{"integrity":"sha512-8Lzlbg026O5tmc30c+nvjxU9jIcv5HhbC061y9Wih5p0RsXOMJfjiVYkZxtn2jP1fB3xUSXSYQmFYjBJUDBwWQ==","shasum":"ce65e86d57ef11c745d97e89fd9590a46670ffa4","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@jsquash/oxipng/-/oxipng-2.0.0.tgz","fileCount":23,"unpackedSize":395938,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFKC/XKfPUEiMJlKjyukWWLIFXdPvWk/w5WCks5eomS3AiEA+juqp3VSp7tLH6/iO0V39Nfj++ZIwdg4LrUxT0srk4k="}],"size":172209},"_npmUser":{"name":"anonymous","email":"jamsinclairnz+npm@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"jamsinclairnz+npm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/oxipng_2.0.0_1693841524233_0.22882275132183105"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-09-04T15:32:04.594Z","publish_time":1693841524594,"_source_registry_name":"default","contributors":[]},"2.1.0":{"name":"@jsquash/oxipng","version":"2.1.0","main":"index.js","description":"Wasm png optimiser supporting the browser. Repackaged from Squoosh App.","repository":{"type":"git","url":"jamsinclair/jSquash/packages/oxipng"},"author":{"name":"Jamie Sinclair","email":"jamsinclairnz+npm@gmail.com"},"keywords":["image","optimisation","optimization","squoosh","wasm","webassembly","png","oxipng"],"license":"Apache-2.0","scripts":{"clean":"rm -rf dist","build":"npm run clean && tsc && cp -r codec package.json README.md CHANGELOG.md .npmignore dist","prepublishOnly":"[[ \"$PWD\" == *'/dist' ]] && exit 0 || (echo 'Please run npm publish from the dist directory' && exit 1)"},"dependencies":{"wasm-feature-detect":"^1.2.11"},"devDependencies":{"typescript":"^4.4.4"},"type":"module","sideEffects":false,"_id":"@jsquash/oxipng@2.1.0","gitHead":"93991a37796f84cc17e7202f4878cc1fb3995659","types":"./index.d.ts","_nodeVersion":"20.8.1","_npmVersion":"10.1.0","dist":{"integrity":"sha512-029u73uUgQG8IPL57pugXAxx2MZdFMVqwCXhW9i1a41lBMnqoqxR8zEBDDztouR+4bQW/RuYvoeB1Ow6Y/QIpg==","shasum":"15ab9d2d281efc88fb6edd3c724d06d64b85b4f1","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@jsquash/oxipng/-/oxipng-2.1.0.tgz","fileCount":24,"unpackedSize":397917,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBSZ4mrn8LmKDZtl2npm+8sh7OxRhpAwfH8T8OdAszmgAiBKQXiY+J6dSPB+hpjmrKG6otBN2n293+51netRKXyy1g=="}],"size":172681},"_npmUser":{"name":"anonymous","email":"jamsinclairnz+npm@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"jamsinclairnz+npm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/oxipng_2.1.0_1700475886826_0.8042228387839776"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-11-20T10:24:47.111Z","publish_time":1700475887111,"_source_registry_name":"default","contributors":[]},"2.2.0":{"name":"@jsquash/oxipng","version":"2.2.0","main":"index.js","description":"Wasm png optimiser supporting the browser. Repackaged from Squoosh App.","repository":{"type":"git","url":"jamsinclair/jSquash/packages/oxipng"},"author":{"name":"Jamie Sinclair","email":"jamsinclairnz+npm@gmail.com"},"keywords":["image","optimisation","optimization","squoosh","wasm","webassembly","png","oxipng"],"license":"Apache-2.0","scripts":{"clean":"rm -rf dist","build":"npm run clean && tsc && cp -r codec package.json README.md CHANGELOG.md .npmignore ../../LICENSE dist && rm -r dist/codec/target","prepublishOnly":"[[ \"$PWD\" == *'/dist' ]] && exit 0 || (echo 'Please run npm publish from the dist directory' && exit 1)"},"dependencies":{"wasm-feature-detect":"^1.2.11"},"devDependencies":{"typescript":"^4.4.4"},"type":"module","sideEffects":false,"_id":"@jsquash/oxipng@2.2.0","gitHead":"14c3df2fe808a72c2f2c5729be8411d63d5b1c82","types":"./index.d.ts","_nodeVersion":"20.12.0","_npmVersion":"10.5.0","dist":{"integrity":"sha512-HnvF+dVLsLu9LLW77PRzFsrhYj5ns+H3jcFSiQt2OE+r5o02Zb3vLGRWkYYnvnqAzsViSAjfyaclJQZWO4uefQ==","shasum":"013b8b319abaaf39d5f4245b8e6bc6c4e427392b","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@jsquash/oxipng/-/oxipng-2.2.0.tgz","fileCount":25,"unpackedSize":435723,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDuMrVvMkPQqVzEhmk97tlUtIfGKYJLKDPtCiwfYwnxGQIhAMNzf7pekwW4f23aM5V2wkyxOYbRv4EsNTPmPHEzWTzW"}],"size":187664},"_npmUser":{"name":"anonymous","email":"jamsinclairnz+npm@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"jamsinclairnz+npm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/oxipng_2.2.0_1712127435908_0.3916725374405172"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-04-03T06:57:16.104Z","publish_time":1712127436104,"_source_registry_name":"default","contributors":[]},"2.3.0":{"name":"@jsquash/oxipng","version":"2.3.0","main":"index.js","description":"Wasm png optimiser supporting the browser. Repackaged from Squoosh App.","repository":{"type":"git","url":"jamsinclair/jSquash/packages/oxipng"},"author":{"name":"Jamie Sinclair","email":"jamsinclairnz+npm@gmail.com"},"keywords":["image","optimisation","optimization","squoosh","wasm","webassembly","png","oxipng"],"license":"Apache-2.0","scripts":{"clean":"rm -rf dist","build":"npm run clean && tsc && cp -r codec package.json README.md CHANGELOG.md .npmignore ../../LICENSE dist && rm -rf dist/codec/target","prepublishOnly":"[[ \"$PWD\" == *'/dist' ]] && exit 0 || (echo 'Please run npm publish from the dist directory' && exit 1)"},"dependencies":{"wasm-feature-detect":"^1.2.11"},"devDependencies":{"typescript":"^4.4.4"},"type":"module","sideEffects":false,"_id":"@jsquash/oxipng@2.3.0","gitHead":"68a7201e5b4d9703bf65670fb0284d16536dd145","types":"./index.d.ts","_nodeVersion":"20.12.0","_npmVersion":"10.5.0","dist":{"integrity":"sha512-aQ8wiEp6ztlTMXc+RMt/CG8crU3mEHDU+h+JYkIi6ctMhlh8+Ltj5XwQFfBuyzKYrp8NxaFW80Dp824bqjr+zA==","shasum":"49095dd5b7d71ead94e4e80d627b7f0f453493ef","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@jsquash/oxipng/-/oxipng-2.3.0.tgz","fileCount":26,"unpackedSize":452392,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEWjitdILt0JeGEbxdsohCIr0f5/JVisVKOiVfHicpskAiEA+Kp03yweH0skDRhEcEh44SvpwNgwt0VMPHK0a22hgiQ="}],"size":192200},"_npmUser":{"name":"anonymous","email":"jamsinclairnz+npm@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"jamsinclairnz+npm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/oxipng_2.3.0_1718691969081_0.651697447368575"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-06-18T06:26:09.303Z","publish_time":1718691969303,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"2.3.0","next":"2.0.0-rc.0","next-single-thread-only":"2.0.0-rc.0-single-thread-only","single-thread-only":"1.0.1-single-thread-only"},"name":"@jsquash/oxipng","time":{"created":"2022-01-29T02:46:23.684Z","modified":"2024-06-19T05:48:27.928Z","1.0.0":"2021-11-18T14:08:54.215Z","1.0.1":"2023-08-14T17:18:12.731Z","1.0.1-single-thread-only":"2023-08-20T08:56:46.124Z","1.0.2":"2023-08-22T11:44:22.274Z","2.0.0-rc.0":"2023-08-22T12:12:25.301Z","2.0.0-rc.0-single-thread-only":"2023-08-22T12:22:40.161Z","2.0.0":"2023-09-04T15:32:04.594Z","2.1.0":"2023-11-20T10:24:47.111Z","2.2.0":"2024-04-03T06:57:16.104Z","2.3.0":"2024-06-18T06:26:09.303Z"},"readme":"# @jsquash/oxipng\n\n[![npm version](https://badge.fury.io/js/@jsquash%2Foxipng.svg)](https://badge.fury.io/js/@jsquash%2Foxipng)\n\nAn easy experience for optimising PNG images in the browser. Powered by WebAssembly ⚡️ and Rust.\n\nUses the lovely [Oxipng](https://github.com/shssoichiro/oxipng) for png optimisation.\n\nA [jSquash](https://github.com/jamsinclair/jSquash) package. Codecs and supporting code derived from the [Squoosh](https://github.com/GoogleChromeLabs/squoosh) app.\n\n## Installation\n\n```shell\nnpm install --save @jsquash/oxipng\n# Or your favourite package manager alternative\n```\n\n## Usage\n\nNote: You will need to either manually include the wasm files from the codec directory or use a bundler like WebPack or Rollup to include them in your app/server.\n\n### optimise(data: ArrayBuffer, options?: OptimiseOptions): Promise<ArrayBuffer>\n\nOptimises a PNG image buffer or raw image data and resolves to the optimised PNG image buffer output\n\n#### data\nType: `ArrayBuffer | ImageData`\n\n#### options\nType: `Partial<OptimiseOptions>`\n\nThe Oxipng optimisation options for the output image. [See default values](./meta.ts).\n- `interlace` (boolean) whether to use PNG interlacing or not. Interlacing will increase the size of an optimised image.\n- `level` (number) is the optimisation level between 1 to 6. The higher the level, the higher the compression. Any level above 4 is not recommended.\n- `optimiseAlpha` (boolean) whether to allow transparent pixels to be altered to improve compression.\n\n#### Example\n```js\nimport { optimise } from '@jsquash/oxipng';\n\nconst formEl = document.querySelector('form');\nconst formData = new FormData(formEl);\n// Assuming user selected an input png file\nconst pngImageBuffer = await formData.get('image').arrayBuffer();\n\nconst optimisedPngBuffer = await optimise(pngImageBuffer, { level: 3 });\n```\n\n## Activate Multithreading\n\nBy default, the optimise function will use a single thread to optimise the image. If you want to speed this up you can enable multithreading with the following.\n\n1. Move your calls to `optimise` into a [WebWorker](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers).\n1. Configure your web server to use the following headers (this is [a security requirement](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer#security_requirements))\n    - `Cross-Origin-Opener-Policy: same-origin`\n    - `Cross-Origin-Embedder-Policy: require-corp`\n\nThis will still only take effect in browsers that support multithreading. If the browser does not support it, it will fallback to single threaded mode\n\n## Manual WASM initialisation (not recommended)\n\nIn most situations there is no need to manually initialise the provided WebAssembly modules.\nThe generated glue code takes care of this and supports most web bundlers.\n\nOne situation where this arises is when using the modules in Cloudflare Workers ([See the README for more info](/README.md#usage-in-cloudflare-workers)).\n\nThe `optimise` module exports an `init` function that can be used to manually load the wasm module.\n\n```js\nimport optimise, { init } from '@jsquash/oxipng/optimise';\n\ninit(WASM_MODULE); // The `WASM_MODULE` variable will need to be sourced by yourself and passed as an ArrayBuffer.\nconst image = await fetch('./image.png').then(res => res.arrayBuffer()).then(optimise);\n```","users":{}}