{"versions":{"0.1.0-rc.1":{"name":"@lemonneko/crop-empty-pixels","private":false,"version":"0.1.0-rc.1","type":"module","devDependencies":{"typescript":"^5.0.2","vite":"^4.4.0","vite-plugin-dts":"^3.3.1"},"module":"crop-empty-pixels.js","types":"main.d.ts","scripts":{"dev":"vite","build":"vite build"},"description":"This package is **ONLY** for browsers","_id":"@lemonneko/crop-empty-pixels@0.1.0-rc.1","_integrity":"sha512-DcttkCThteFr9TjnYX1KaNIet1nZ8yRB5Hyy4UZVw6YChWRMrdL/5H0NzK/KUnT94UqPnx4qBtlupQUL936IPg==","_resolved":"/private/var/folders/_r/1h85113138g9ph390mx7w5zw0000gn/T/88b88c823dfc2d5473c5b98c72bf292a/lemonneko-crop-empty-pixels-0.1.0-rc.1.tgz","_from":"file:lemonneko-crop-empty-pixels-0.1.0-rc.1.tgz","_nodeVersion":"16.14.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-DcttkCThteFr9TjnYX1KaNIet1nZ8yRB5Hyy4UZVw6YChWRMrdL/5H0NzK/KUnT94UqPnx4qBtlupQUL936IPg==","shasum":"7cbf02631cc69db229624ad59faf8b5b1a98f5a9","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@lemonneko/crop-empty-pixels/-/crop-empty-pixels-0.1.0-rc.1.tgz","fileCount":5,"unpackedSize":4774,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAOBwRMIvV2GCujWjlvo+Afi72+735ijIHXjXTP3YKBrAiEA3qeXfFQE6HtBxWAeSGkCmfNy9vSwaBKwz4NR1ODW9W0="}],"size":2111},"_npmUser":{"name":"anonymous","email":"chheese048@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"chheese048@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/crop-empty-pixels_0.1.0-rc.1_1689706010610_0.07448000024915591"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-07-18T18:46:50.789Z","publish_time":1689706010789,"_source_registry_name":"default","contributors":[]},"0.1.0-rc.2":{"name":"@lemonneko/crop-empty-pixels","private":false,"version":"0.1.0-rc.2","type":"module","scripts":{"dev":"vite","build":"vite build"},"devDependencies":{"typescript":"^5.0.2","vite":"^4.4.0","vite-plugin-dts":"^3.3.1"},"module":"crop-empty-pixels.js","types":"main.d.ts","gitHead":"939f9e4994f913ec395c8c879b22033cfabebfda","description":"This package is **ONLY** for browsers","_id":"@lemonneko/crop-empty-pixels@0.1.0-rc.2","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-FnBmmXAhGaNJGQ61GYGwI/1wZtSGfdeukuEM20bWl4nNAfiNaUuzGtpHMhOPy5p1Cm3r7d1pvfF+c+0Z72RxTw==","shasum":"8ac539719b582a9a6e835fb227373ccd1ace3f09","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@lemonneko/crop-empty-pixels/-/crop-empty-pixels-0.1.0-rc.2.tgz","fileCount":5,"unpackedSize":4774,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCqfq5XAL2AFZQTASXQqnBPyvt/2v+JXo+pEmmg0nvHewIgdCATwznzq0k7S11Qi/3wIOJup5HXsXpmrGUFFhepQ4o="}],"size":2090},"_npmUser":{"name":"anonymous","email":"chheese048@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"chheese048@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/crop-empty-pixels_0.1.0-rc.2_1689706083431_0.6273298210462879"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-07-18T18:48:03.599Z","publish_time":1689706083599,"_source_registry_name":"default","contributors":[]},"0.1.0-rc.3":{"name":"@lemonneko/crop-empty-pixels","private":false,"version":"0.1.0-rc.3","type":"module","scripts":{"dev":"vite","build":"vite build"},"devDependencies":{"typescript":"^5.0.2","vite":"^4.4.0","vite-plugin-dts":"^3.3.1"},"module":"dist/crop-empty-pixels.js","types":"dist/main.d.ts","gitHead":"56b47c8bfad2ceda485d018e5c3eb852632ab4cd","description":"This package is **ONLY** for browsers","_id":"@lemonneko/crop-empty-pixels@0.1.0-rc.3","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-4+ilguyNi41o3a9xTood461r1anZ82QrrS1a5irUdz9M1v3aXDQADvv3eP4MEeILr7cpTxx5wKor5s3fPAYABg==","shasum":"e5f7f5847cc7e842c20f99cacd3550a9b3d715f8","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@lemonneko/crop-empty-pixels/-/crop-empty-pixels-0.1.0-rc.3.tgz","fileCount":5,"unpackedSize":4784,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID6Tg5KYaH3n189OYnqpYtHWje/Xf0cLmTrGYdhJoLr9AiBjfhymVlFDPAbDl+r5JUnlCXIyAzIjlSDajOneu1k1ZA=="}],"size":2089},"_npmUser":{"name":"anonymous","email":"chheese048@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"chheese048@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/crop-empty-pixels_0.1.0-rc.3_1689706502248_0.5916977406240473"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-07-18T18:55:02.439Z","publish_time":1689706502439,"_source_registry_name":"default","contributors":[]},"0.1.0-rc.4":{"name":"@lemonneko/crop-empty-pixels","private":false,"version":"0.1.0-rc.4","type":"module","scripts":{"dev":"vite","build":"vite build"},"devDependencies":{"typescript":"^5.0.2","vite":"^4.4.0","vite-plugin-dts":"^3.3.1"},"module":"dist/crop-empty-pixels.js","types":"dist/main.d.ts","gitHead":"dfae9bd71dc8e92198600764e41e1f9a9e27341a","description":"This package is **ONLY** for browsers","_id":"@lemonneko/crop-empty-pixels@0.1.0-rc.4","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-E7AxkTv9RWwRqaQCSSPkTtHht0Z0UfofupX2km3xoUK3+X4auRgVOLq8N27d5Lbh60ar0lItm0Kgma5WwK154g==","shasum":"b0924d90be950787bc67aa6a90b665c5e19ea76e","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@lemonneko/crop-empty-pixels/-/crop-empty-pixels-0.1.0-rc.4.tgz","fileCount":5,"unpackedSize":3141,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCb1Y0ML5V823kIdveVmYrRtULc0FFDBrNGh1jD8N+1FQIgD7WXR0qOl8UIdF6mcHt+3fgjiEEkvixe8m0je7wVGNA="}],"size":1863},"_npmUser":{"name":"anonymous","email":"chheese048@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"chheese048@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/crop-empty-pixels_0.1.0-rc.4_1689853819322_0.06485910610500678"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-07-20T11:50:19.502Z","publish_time":1689853819502,"_source_registry_name":"default","contributors":[]},"0.1.0-rc.8":{"name":"@lemonneko/crop-empty-pixels","type":"module","version":"0.1.0-rc.8","private":false,"author":{"name":"LemonNeko"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/LemonNekoGH/crop-empty-pixels.git"},"keywords":["image-processing"],"module":"dist/index.js","types":"dist/index.d.ts","devDependencies":{"@antfu/eslint-config":"^5.2.1","eslint":"^9.34.0","tsdown":"^0.13.5","typescript":"^5.9.2"},"scripts":{"build":"tsdown ./src/index.ts","lint":"eslint . --cache","lint:fix":"pnpm lint --fix","typecheck":"tsc --noEmit"},"_id":"@lemonneko/crop-empty-pixels@0.1.0-rc.8","description":"This package is **ONLY** for browsers","bugs":{"url":"https://github.com/LemonNekoGH/crop-empty-pixels/issues"},"homepage":"https://github.com/LemonNekoGH/crop-empty-pixels#readme","_integrity":"sha512-C0OnU/+KydzFP4wmGXtc1quZiDkr5yKLA11d3XF9DbXspOoTGUj5WrYwf7ErZxDDEz5pO4VPHbrXh46kheCy4Q==","_resolved":"/private/var/folders/_r/1h85113138g9ph390mx7w5zw0000gn/T/7cd293a03dfeb7ad9fb6bf7fd7835b30/lemonneko-crop-empty-pixels-0.1.0-rc.8.tgz","_from":"file:lemonneko-crop-empty-pixels-0.1.0-rc.8.tgz","_nodeVersion":"24.1.0","_npmVersion":"11.3.0","dist":{"integrity":"sha512-C0OnU/+KydzFP4wmGXtc1quZiDkr5yKLA11d3XF9DbXspOoTGUj5WrYwf7ErZxDDEz5pO4VPHbrXh46kheCy4Q==","shasum":"be7de15411ab51c59affe9d84b44d3ed7cb3dc34","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@lemonneko/crop-empty-pixels/-/crop-empty-pixels-0.1.0-rc.8.tgz","fileCount":5,"unpackedSize":3763,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDUynqw9AadDc88NOqp55yLiF+7l933ffA89ZK0/FnefAIhAKfLeFBMo7s3zaq09CeeNOsoKOOMHY7trGm/wSB/fQxm"}],"size":1971},"_npmUser":{"name":"anonymous","email":"chheese048@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"chheese048@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/crop-empty-pixels_0.1.0-rc.8_1757015131397_0.608693431966544"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-09-04T19:45:31.597Z","publish_time":1757015131597,"_source_registry_name":"default","contributors":[]},"0.1.0":{"name":"@lemonneko/crop-empty-pixels","type":"module","version":"0.1.0","private":false,"author":{"name":"LemonNeko"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/LemonNekoGH/crop-empty-pixels.git"},"keywords":["image-processing"],"module":"dist/index.js","types":"dist/index.d.ts","devDependencies":{"@antfu/eslint-config":"^5.2.1","eslint":"^9.34.0","tsdown":"^0.13.5","typescript":"^5.9.2"},"scripts":{"build":"tsdown ./src/index.ts","lint":"eslint . --cache","lint:fix":"pnpm lint --fix","typecheck":"tsc --noEmit"},"_id":"@lemonneko/crop-empty-pixels@0.1.0","description":"This package is **ONLY** for browsers","bugs":{"url":"https://github.com/LemonNekoGH/crop-empty-pixels/issues"},"homepage":"https://github.com/LemonNekoGH/crop-empty-pixels#readme","_integrity":"sha512-yE7vLn+NtWwWjxjcQ5/YxPtwMCmdI7lM2i1X7YhO5oSwvkrhxFbR6Cjnx3ixQ2vvYNJ9rp9nqQuAMLJM5rlhDw==","_resolved":"/private/var/folders/_r/1h85113138g9ph390mx7w5zw0000gn/T/b60255e391e97814cee5e02bd9e48608/lemonneko-crop-empty-pixels-0.1.0.tgz","_from":"file:lemonneko-crop-empty-pixels-0.1.0.tgz","_nodeVersion":"24.1.0","_npmVersion":"11.3.0","dist":{"integrity":"sha512-yE7vLn+NtWwWjxjcQ5/YxPtwMCmdI7lM2i1X7YhO5oSwvkrhxFbR6Cjnx3ixQ2vvYNJ9rp9nqQuAMLJM5rlhDw==","shasum":"236c453ddb7541261c954988fa93f6658d9a461e","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@lemonneko/crop-empty-pixels/-/crop-empty-pixels-0.1.0.tgz","fileCount":5,"unpackedSize":3758,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDfKTDc5WSO7R1X8+1l2RszYC3B3pj+inOo/qn34ip/JwIhAJ9FRjKhQFdE3nA4ZnPoTbeMx/pMAbWQNI8WuuPdtWcW"}],"size":1967},"_npmUser":{"name":"anonymous","email":"chheese048@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"chheese048@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/crop-empty-pixels_0.1.0_1757017038323_0.931524590713477"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-09-04T20:17:18.506Z","publish_time":1757017038506,"_source_registry_name":"default","contributors":[]},"0.1.1":{"name":"@lemonneko/crop-empty-pixels","type":"module","version":"0.1.1","private":false,"author":{"name":"LemonNeko"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/LemonNekoGH/crop-empty-pixels.git"},"keywords":["image-processing"],"module":"dist/index.js","types":"dist/index.d.ts","devDependencies":{"@antfu/eslint-config":"^5.2.1","eslint":"^9.34.0","tsdown":"^0.13.5","typescript":"^5.9.2"},"scripts":{"build":"tsdown ./src/index.ts","lint":"eslint . --cache","lint:fix":"pnpm lint --fix","typecheck":"tsc --noEmit"},"_id":"@lemonneko/crop-empty-pixels@0.1.1","description":"This package is **ONLY** for browsers","bugs":{"url":"https://github.com/LemonNekoGH/crop-empty-pixels/issues"},"homepage":"https://github.com/LemonNekoGH/crop-empty-pixels#readme","_integrity":"sha512-4Mp6gBN3XbXw5OXyN0rF5bhWWISmrU4DRCGUWDnyWWFCERE2SZwvv2w4hoPhg804BcI0wXLPk5lHf/v15AFXSA==","_resolved":"/private/var/folders/_r/1h85113138g9ph390mx7w5zw0000gn/T/bbb9806444a646714c92ec9b4c21b010/lemonneko-crop-empty-pixels-0.1.1.tgz","_from":"file:lemonneko-crop-empty-pixels-0.1.1.tgz","_nodeVersion":"24.1.0","_npmVersion":"11.3.0","dist":{"integrity":"sha512-4Mp6gBN3XbXw5OXyN0rF5bhWWISmrU4DRCGUWDnyWWFCERE2SZwvv2w4hoPhg804BcI0wXLPk5lHf/v15AFXSA==","shasum":"f9bf288dc8feb637908e4cb1cc8e8bf2cd40cb34","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@lemonneko/crop-empty-pixels/-/crop-empty-pixels-0.1.1.tgz","fileCount":5,"unpackedSize":3719,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICko7gkGWq2SUuVv68hRXMKf+EYcclVCAkHWk5GHrWulAiAwIjQHS0plR5z3Tk/h4gUDY8rg5zcjjTtDCbwmN1BMlQ=="}],"size":1963},"_npmUser":{"name":"anonymous","email":"chheese048@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"chheese048@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/crop-empty-pixels_0.1.1_1757017619038_0.07472289551244993"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-09-04T20:26:59.238Z","publish_time":1757017619238,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"0.1.1"},"name":"@lemonneko/crop-empty-pixels","time":{"created":"2023-07-18T18:56:14.155Z","modified":"2025-09-04T20:27:09.885Z","0.1.0-rc.1":"2023-07-18T18:46:50.789Z","0.1.0-rc.2":"2023-07-18T18:48:03.599Z","0.1.0-rc.3":"2023-07-18T18:55:02.439Z","0.1.0-rc.4":"2023-07-20T11:50:19.502Z","0.1.0-rc.8":"2025-09-04T19:45:31.597Z","0.1.0":"2025-09-04T20:17:18.506Z","0.1.1":"2025-09-04T20:26:59.238Z"},"readme":"# Crop empty pixels\nThis package is **ONLY** for browsers\n\n## Usage\n```ts\nimport cropImg from '@lemonneko/crop-empty-pixels'\n\n// load a image\nconst img = document.createElement('img')\nimg.src = '/path/to/an/image/to/crop/empty/pixels'\nimg.addEventListener('load', () => {\n  // draw it on canvas once load\n  const canvas = document.createElement('canvas')\n  const canvasCtx = canvas.getContext('2d')!\n  canvasCtx.drawImage(img)\n  // pass the canvas to function then get new canvas\n  const cropped = cropImg(canvas)\n  // set cropped image data to origin\n  img.src = cropped.toDataURL()\n}, { once: true })\n```","users":{}}