{"_id":"@aardpro/crop-image","_rev":"2-9221099a156a6206da0274c75a03a128","name":"@aardpro/crop-image","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@aardpro/crop-image","version":"1.0.0","keywords":["optimize","image","crop","image","优化图片","剪裁图片"],"author":{"name":"aardpro"},"license":"MIT","_id":"@aardpro/crop-image@1.0.0","maintainers":[{"name":"aardpro","email":"chileehong@outlook.com"}],"homepage":"https://github.com/aardpro/crop-image#readme","bugs":{"url":"https://github.com/aardpro/crop-image/issues"},"dist":{"shasum":"f7c50e83eaa283624a5e978f4adb63a5b0885f8e","tarball":"https://registry.npmjs.org/@aardpro/crop-image/-/crop-image-1.0.0.tgz","fileCount":20,"integrity":"sha512-k+XGYoiU8vJQSpZiFHOBpke7zUPDE3GD6RtJQuMx9ImrKqo1Foj5xZODyx90ny8u1gO+i7Xh7gA4vmf1rLZ6CQ==","signatures":[{"sig":"MEQCIC0ZWIXoGklmtdimbwnvG5ZqV7iXtlObQdzWNcPpPHc+AiAiOA6HKaOlDxrMia2Hp0G1UUH7AAvRnaOGIvWUl+LjjA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":37214},"type":"module","gitHead":"121d10cf41e828ef34c564fa30b7bd949b2e3efb","private":false,"scripts":{"dev":"vite","test":"vitest","build":"rimraf ./dist && tsc --noEmit && vite build","test:run":"vitest run","type-check":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"aardpro","email":"chileehong@outlook.com"},"repository":{"url":"git+https://github.com/aardpro/crop-image.git","type":"git"},"_npmVersion":"11.6.0","description":"Before uploading an image file or dataURL, crop and optimize it to the specified size and quality.在上传图片文件或者dataURL编码前，对它进行剪裁和优化到指定的尺寸和质量。","directories":{},"_nodeVersion":"22.19.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^5.4.10","jsdom":"^25.0.1","eslint":"^9.14.0","rimraf":"^6.0.1","vitest":"^2.1.8","globals":"^15.12.0","@eslint/js":"^9.14.0","typescript":"~5.6.2","typescript-eslint":"^8.13.0","rollup-plugin-copy":"^3.5.0","@rollup/plugin-terser":"^0.4.4"},"_npmOperationalInternal":{"tmp":"tmp/crop-image_1.0.0_1769599244737_0.6386997722912897","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@aardpro/crop-image","version":"1.0.1","description":"Before uploading an image file or dataURL, crop and optimize it to the specified size and quality.在上传图片文件或者dataURL编码前，对它进行剪裁和优化到指定的尺寸和质量。","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"vite","build":"rimraf ./dist && tsc --noEmit && vite build","type-check":"tsc --noEmit","test":"vitest","test:run":"vitest run","prepublishOnly":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/aardpro/crop-image.git"},"keywords":["optimize","image","crop","image","优化图片","剪裁图片"],"author":{"name":"aardpro"},"license":"MIT","bugs":{"url":"https://github.com/aardpro/crop-image/issues"},"homepage":"https://github.com/aardpro/crop-image#readme","devDependencies":{"@eslint/js":"^9.14.0","@rollup/plugin-terser":"^0.4.4","eslint":"^9.14.0","globals":"^15.12.0","jsdom":"^25.0.1","rimraf":"^6.0.1","rollup-plugin-copy":"^3.5.0","typescript":"~5.6.2","typescript-eslint":"^8.13.0","vite":"^5.4.10","vitest":"^2.1.8"},"type":"module","private":false,"publishConfig":{"access":"public"},"_id":"@aardpro/crop-image@1.0.1","gitHead":"121d10cf41e828ef34c564fa30b7bd949b2e3efb","_nodeVersion":"22.22.3","_npmVersion":"10.9.8","dist":{"integrity":"sha512-KIDyeLgNAtBJSRIiVma/vdnZb630ig9WF6AxAEBDn/QNqWYVvOQ0QC1TTnVAgx7DdfKfou5SU0DZiHvLY8pfrw==","shasum":"7c55ee2970b79ef828382105619d9442dc67782c","tarball":"https://registry.npmjs.org/@aardpro/crop-image/-/crop-image-1.0.1.tgz","fileCount":7,"unpackedSize":12747,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEI93JuIm4zzzFJOKxqKiNuUoyoYKti92uoDl0pnkoktAiEAxnFCOGMx6XOu1JYtT6v7nLiNskNWXfwjSbSPXP+0aQM="}]},"_npmUser":{"name":"aardpro","email":"chileehong@outlook.com"},"directories":{},"maintainers":[{"name":"aardpro","email":"chileehong@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/crop-image_1.0.1_1783947347505_0.76985186254276"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-28T11:20:44.509Z","modified":"2026-07-13T12:55:47.796Z","1.0.0":"2026-01-28T11:20:44.873Z","1.0.1":"2026-07-13T12:55:47.639Z"},"bugs":{"url":"https://github.com/aardpro/crop-image/issues"},"author":{"name":"aardpro"},"license":"MIT","homepage":"https://github.com/aardpro/crop-image#readme","keywords":["optimize","image","crop","image","优化图片","剪裁图片"],"repository":{"type":"git","url":"git+https://github.com/aardpro/crop-image.git"},"description":"Before uploading an image file or dataURL, crop and optimize it to the specified size and quality.在上传图片文件或者dataURL编码前，对它进行剪裁和优化到指定的尺寸和质量。","maintainers":[{"name":"aardpro","email":"chileehong@outlook.com"}],"readme":"# @aardpro/crop-image\r\n- <div>在上传图片文件或者dataURL编码前，对它进行<span style=\"color: red\">剪裁和优化</span>到指定的<span style=\"color: red\">尺寸和质量</span>。</div>\r\n- <div style=\"margin-bottom:2em\">Before uploading an image file or dataURL dataURL, <span style=\"color: red\">crop and optimize</span> it to the <span style=\"color: red\">specified size and quality</span>.</div>\r\n\r\n## 注意 Note\r\n\r\n- 仅支持在浏览器环境使用，不支持nodejs环境\r\n- available only in browser environment only, unavailable in nodejs environment\r\n\r\n# [在线演示 | playground](https://stackblitz.com/~/github.com/aardpro/crop-image)\r\n\r\n# 下载演示 Clone and demo\r\n```md\r\ngit clone https://github.com/aardpro/crop-image.git\r\ncd crop-image\r\nnpm install\r\nnpm run dev\r\n```\r\n\r\n# [使用手册 Documents](./lib/readme.MD)\r\n","readmeFilename":"README.MD"}