{"_id":"compressorjs","_rev":"16-8784dab844c1bfef824bb607d84a3dfd","name":"compressorjs","dist-tags":{"latest":"1.3.0"},"versions":{"1.0.0":{"name":"compressorjs","version":"1.0.0","keywords":["image","compress","compressor","compressor.js","image-compressor","lossy-compression","javascript","front-end","web"],"author":{"url":"https://chenfengyuan.com","name":"Chen Fengyuan"},"license":"MIT","_id":"compressorjs@1.0.0","maintainers":[{"name":"chenfengyuan","email":"chenfengyuan@outlook.com"}],"homepage":"https://fengyuanchen.github.io/compressorjs","bugs":{"url":"https://github.com/fengyuanchen/compressorjs/issues"},"dist":{"shasum":"41630687b555e5f0b0c90ec617bee2423d11ce7a","tarball":"https://registry.npmjs.org/compressorjs/-/compressorjs-1.0.0.tgz","fileCount":13,"integrity":"sha512-kogOgYQnYITa9Zny7A2Zl3JYy5ytqfALHYzolYS5+B3BntZ9myhE5ddQE1GzvmFvp8bIgASHW4UBmwMqFHb8xQ==","signatures":[{"sig":"MEUCIQCsq9zbaw4QDnZzrh8EEt/+U6M5JzrDp7nwu7CfA+9QNAIgRjH+Ymgo9wkUug8Dk+0AS+rKsUuqHe9MX46/YZTDFOM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":114665,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbxJDRCRA9TVsSAnZWagAAmX0P/jOAs9q0g8HKfmYe99C1\no3pxtdjBF6wxdhSUmgMHZLUhK51cpyLM8Z3IOsv76Y3TZwY9p/YPZHhf2zhb\nFcCRLVjwiW0SkurHV1jxX4auNNDtOg4ztrALwdKH2KG4N9xzPZ3VMNIOvDWx\nhSkHGgwinbjmLhmENAwO5Y1eVV38lTTKiO/Kx0/XPBFx5Hno6iykjzmT4DNq\nM9D4jmnBqwDEcRwnLBjjg3ypI+1vaNgUBCLQwXUFdN4cUnuBJp227ggTg3MW\nsj+HQXB2Cnp3+7Yl0vIfHXrI9bZ2q/aZ/hOu/JFZ+kP2/pqf6312t1ELdKBQ\nva3KASj7Esbjgi9HfLHJuvNN5NKAnd+J4rCBn4k3H3wMIGE2zHnRggjoQRLM\nXC4r/D4DJ90VRoSoCMvHH+k8UafNOd0lUpcdy/JvR19Gd+RXVXvR0x97BdZm\nX1oOl2dteWzbFY6Jc4t8Gcpm5YjCLS340BsLjeSSrd18OQdkD7CEf1cRsYKa\nHNdNeatjeoHl6HIfhu7nPQHHY3uNChnbjcLyTbqa+3sP8ad026MFV5EZSRhT\nfkxwQwsWt3LZSZ9zXdTmOpSkJlHvodJqEYxyzgDnVVAp3c3Ckb3hKWOEQSX6\nHCsQdBwkJrMkmSLShkc01f8yZJZHYJ+8xKxMCKBHC09RC4jm5apmgS7McN8d\nipvT\r\n=upDm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/compressor.common.js","types":"types/index.d.ts","unpkg":"dist/compressor.js","module":"dist/compressor.esm.js","gitHead":"54a384d2bf3bdc5cbc4c5ab706dc3d378b1859e1","scripts":{"dev":"rollup -c -m -w","lint":"eslint src test *.js --fix","test":"cross-env NODE_ENV=test karma start test/karma.conf.js","build":"rollup -c","clear":"del-cli dist","start":"npm run dev","codecov":"cat coverage/lcov.info | codecov","release":"npm run clear && npm run lint && npm run build && npm run compress && npm test","compress":"uglifyjs dist/compressor.js -o dist/compressor.min.js -c -m --comments /^!/","commitmsg":"npm run lint && commitlint -e"},"_npmUser":{"name":"chenfengyuan","email":"chenfengyuan@outlook.com"},"repository":{"url":"git+https://github.com/fengyuanchen/compressorjs.git","type":"git"},"_npmVersion":"6.4.1","description":"JavaScript image compressor.","directories":{},"_nodeVersion":"10.9.0","dependencies":{"is-blob":"^1.0.0","blueimp-canvas-to-blob":"^3.14.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","husky":"^1.1.2","karma":"^3.0.0","mocha":"^5.2.0","eslint":"^5.7.0","rollup":"^0.66.6","codecov":"^3.1.0","del-cli":"^1.1.0","cross-env":"^5.2.0","puppeteer":"^1.9.0","uglify-js":"^3.4.9","karma-chai":"^0.1.0","@babel/core":"^7.1.2","change-case":"^3.0.2","karma-mocha":"^1.3.0","rollup-watch":"^4.3.1","create-banner":"^1.0.0","@commitlint/cli":"^7.2.1","@babel/preset-env":"^7.1.0","rollup-plugin-babel":"^4.0.3","eslint-plugin-import":"^2.14.0","karma-mocha-reporter":"^2.2.5","babel-plugin-istanbul":"^5.1.0","karma-chrome-launcher":"^2.2.0","rollup-plugin-commonjs":"^9.2.0","eslint-config-airbnb-base":"^13.1.0","karma-rollup-preprocessor":"^6.0.1","rollup-plugin-postprocess":"^1.0.2","rollup-plugin-node-resolve":"^3.4.0","@commitlint/config-conventional":"^7.1.2","karma-coverage-istanbul-reporter":"^2.0.4","@babel/plugin-transform-object-assign":"^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/compressorjs_1.0.0_1539608784527_0.9513529880273961","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"compressorjs","version":"1.0.1","keywords":["image","compress","compressor","compressor.js","image-compressor","lossy-compression","javascript","front-end","web"],"author":{"url":"https://chenfengyuan.com","name":"Chen Fengyuan"},"license":"MIT","_id":"compressorjs@1.0.1","maintainers":[{"name":"chenfengyuan","email":"chenfengyuan@outlook.com"}],"homepage":"https://fengyuanchen.github.io/compressorjs","bugs":{"url":"https://github.com/fengyuanchen/compressorjs/issues"},"dist":{"shasum":"ebdbb00ac159b8f5f970a3b60a25bd8209490d6c","tarball":"https://registry.npmjs.org/compressorjs/-/compressorjs-1.0.1.tgz","fileCount":13,"integrity":"sha512-ZcK7IzA7fyDQctiEtzjmqJQBnBN0ESo3mnNMeD6hIKoAiXHBdM0GPzNrLsY3wdXLOgJanKRpiZ1e/SKKrA0brg==","signatures":[{"sig":"MEUCIQD7YarbiOHtfZe3pujq4zdyF9KRQ7qG12XjpXHPUD2IDAIgAWp2z9qRuesTNU50zOZ83azzZ4zLYf3qZ/182F8QGlA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":115872,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb0G1sCRA9TVsSAnZWagAA/ggP/iehmSRsjdcAy0lN9qH4\n8SKE6500Gka3u+TEuIHSDDkSdTklYZbud5KzX7l0KZHqTvY/Wx9xPm2c+mtU\nT8bgmt2zUpdEzHZrTRSn6XFCUCsxRYcDayza77xKDBkUh8eg3eNQ3/C0JQXO\nfPRKnxNXrkc0hfNdU74jQ5hdYOnDosx8Mq6Oe2+VZ17nmWOJo46T1/mOL896\nP3qR6UdLR6y+KAhVdJvdv3vdrxegf2X/VsjSINXGLo6acRtcoErZ50Mnvvji\nkseDgvXVNisICJrV2q2FbLOUxAOxHFwQGEe8zhQ3lwbPufXUZLV9eUm3KmzB\n9odKkyxhdFtL+HQBeZS82c6FxlIIBhcZc9M0IP0aW5sEUFUDaWedCkgSsFCT\npy1QReczQ2vZIrb7zlhhHs0aPTRJ2OeLMoK/DHtNHYlDVHou2xaoanYnmJ5r\nCs9O3ESJdWcz5/iLtJxqwVDk7HO2Y5UOuO2jeqeyV9hagAWk6kkWwRPwMEmQ\nLycrsPxMqIxGb9f5JjyYscyggpojWHW72bsq+WoTkhcOwcJHcHY/mjl4Akvs\n+tGywsb7xetbYdsACG28iML8/gPnM1Ts6U7gxwQ1dDXFuKYZgi2mLCsXpQlS\nNFb3qxD3yRLczIOVSP/r82MPqMhSws0VAE6cudGS5EPF3a3WoZdciFidei/K\nrddQ\r\n=qQt+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/compressor.common.js","types":"types/index.d.ts","unpkg":"dist/compressor.js","module":"dist/compressor.esm.js","gitHead":"5a7a0f43f607342f80802208f78e14bf42839074","scripts":{"dev":"rollup -c -m -w","lint":"eslint src test *.js --fix","test":"cross-env NODE_ENV=test karma start test/karma.conf.js","build":"rollup -c","clear":"del-cli dist","start":"npm run dev","codecov":"cat coverage/lcov.info | codecov","release":"npm run clear && npm run lint && npm run build && npm run compress && npm test","compress":"uglifyjs dist/compressor.js -o dist/compressor.min.js -c -m --comments /^!/","commitmsg":"npm run lint && commitlint -e"},"_npmUser":{"name":"chenfengyuan","email":"chenfengyuan@outlook.com"},"repository":{"url":"git+https://github.com/fengyuanchen/compressorjs.git","type":"git"},"_npmVersion":"6.4.1","description":"JavaScript image compressor.","directories":{},"_nodeVersion":"10.9.0","dependencies":{"is-blob":"^1.0.0","blueimp-canvas-to-blob":"^3.14.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","husky":"^1.1.2","karma":"^3.1.1","mocha":"^5.2.0","eslint":"^5.7.0","rollup":"^0.66.6","codecov":"^3.1.0","del-cli":"^1.1.0","cross-env":"^5.2.0","puppeteer":"^1.9.0","uglify-js":"^3.4.9","karma-chai":"^0.1.0","@babel/core":"^7.1.2","change-case":"^3.0.2","karma-mocha":"^1.3.0","rollup-watch":"^4.3.1","create-banner":"^1.0.0","@commitlint/cli":"^7.2.1","@babel/preset-env":"^7.1.0","rollup-plugin-babel":"^4.0.3","eslint-plugin-import":"^2.14.0","karma-mocha-reporter":"^2.2.5","babel-plugin-istanbul":"^5.1.0","karma-chrome-launcher":"^2.2.0","rollup-plugin-commonjs":"^9.2.0","eslint-config-airbnb-base":"^13.1.0","karma-rollup-preprocessor":"^6.1.0","rollup-plugin-postprocess":"^1.0.2","rollup-plugin-node-resolve":"^3.4.0","@commitlint/config-conventional":"^7.1.2","karma-coverage-istanbul-reporter":"^2.0.4","@babel/plugin-transform-object-assign":"^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/compressorjs_1.0.1_1540386155794_0.6963526673129115","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"compressorjs","version":"1.0.2","keywords":["image","compress","compressor","compressor.js","image-compressor","lossy-compression","javascript","front-end","web"],"author":{"url":"https://chenfengyuan.com","name":"Chen Fengyuan"},"license":"MIT","_id":"compressorjs@1.0.2","maintainers":[{"name":"chenfengyuan","email":"chenfengyuan@outlook.com"}],"homepage":"https://fengyuanchen.github.io/compressorjs","bugs":{"url":"https://github.com/fengyuanchen/compressorjs/issues"},"dist":{"shasum":"89fb304445aa85b57926db3c6961d82036ceb3bf","tarball":"https://registry.npmjs.org/compressorjs/-/compressorjs-1.0.2.tgz","fileCount":13,"integrity":"sha512-V6oAH662NAoizq9VFssOskgI9LxGX20u6bw+TS/gtPsQtRpzv97ZNZ68WpFzl2GZhKMAj2vZkZJsOpyoItYr9Q==","signatures":[{"sig":"MEYCIQDmIbpcymTM+CGGBwilrDLS+DAbvg6X/goj56qkaHgSywIhAKFHXuVFy2NVwsvhJMyHaFtEHjYaNoXAMzmCdKT7DRC2","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":116427,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcDmu7CRA9TVsSAnZWagAArDwP/RER74dPGsaS40j+gLQ1\nUcjV7fDVxBn7vJrg0jhEoZPlIiXKSJn+VvDDzutHY4J8LkfP28vhGVHpVkVW\n3lThjZBqRPB58zzc93IRWhVm3YVk6ZNny93GOCFBMeimJV0WE3Mf3hxkAe+x\naq/1r/3Rz5/srdXXjpi3Aw6tzcmjvGAiL8Jmg68GJiOHB+fpvgGi5nRvPPRn\nPfrcAf7U+xHny5zUFrUwJzXjdGkLqbKlwWv/GvZp5IvdXZLmG6mpMCaBE2po\nl6zZ4+y531js782jDO/nByPiHbydqFVTyGp/5Tsu6nkIZak19Wqe/GUCaPtj\nn8TIeKFQZqF8Fr1Jr/lJytL4YwQ1e+YtlxIvER/Dwhfp5sMy43vOKYHzyxyl\nbgwbYLGEMnNKUn49LO7Zwus+OEkbGcOu/3bGz4u2yAIaN1xiPGaHgDNkwbQH\niqFLqrrxxyabWXYICuquEm2xCudJtoFVg5YWLMmTLZ0VYiy8tKZ8y9xuZG5I\nbVl4vnkpJAYV3pB7uy/X41uOaOqSrfnmn628SPCodKaXw47DKkQ6PAYx2Bnh\nSx5/QGXA6h0IxXO6yOJIBAMtzZF60GSLZdZqWDAP6FgM8dsq7CGn1lOxWLUN\nc6WcEKk5H47Q/yknL2aBZercKkIq1km6h3C28eODfGjlsi3GDGHPpwsgcbQC\nXYm4\r\n=JzzR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/compressor.common.js","types":"types/index.d.ts","unpkg":"dist/compressor.js","module":"dist/compressor.esm.js","gitHead":"f949d3b07500df0c805d63843c711acf4f4c9811","scripts":{"dev":"rollup -c -m -w","lint":"npm run lint:js && npm run lint:css","test":"cross-env NODE_ENV=test karma start test/karma.conf.js","build":"rollup -c","clear":"del-cli dist","start":"npm run dev","codecov":"cat coverage/lcov.info | codecov","lint:js":"eslint src test *.js --fix","release":"npm run clear && npm run lint && npm run build && npm run compress && npm test","compress":"uglifyjs dist/compressor.js -o dist/compressor.min.js -c -m --comments /^!/","lint:css":"stylelint {docs,examples}/**/*.{css,html} --fix"},"_npmUser":{"name":"chenfengyuan","email":"chenfengyuan@outlook.com"},"repository":{"url":"git+https://github.com/fengyuanchen/compressorjs.git","type":"git"},"_npmVersion":"6.4.1","description":"JavaScript image compressor.","directories":{},"_nodeVersion":"10.9.0","dependencies":{"is-blob":"^2.0.1","blueimp-canvas-to-blob":"^3.14.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","husky":"^1.2.0","karma":"^3.1.3","mocha":"^5.2.0","eslint":"^5.10.0","rollup":"^0.67.4","codecov":"^3.1.0","del-cli":"^1.1.0","cross-env":"^5.2.0","puppeteer":"^1.11.0","stylelint":"^9.9.0","uglify-js":"^3.4.9","karma-chai":"^0.1.0","@babel/core":"^7.2.0","change-case":"^3.0.2","karma-mocha":"^1.3.0","lint-staged":"^8.1.0","rollup-watch":"^4.3.1","create-banner":"^1.0.0","@commitlint/cli":"^7.2.1","stylelint-order":"^2.0.0","@babel/preset-env":"^7.2.0","rollup-plugin-babel":"^4.0.3","eslint-plugin-import":"^2.14.0","karma-mocha-reporter":"^2.2.5","babel-plugin-istanbul":"^5.1.0","karma-chrome-launcher":"^2.2.0","rollup-plugin-commonjs":"^9.2.0","eslint-config-airbnb-base":"^13.1.0","karma-rollup-preprocessor":"^6.1.1","rollup-plugin-postprocess":"^1.0.2","stylelint-config-standard":"^18.2.0","rollup-plugin-node-resolve":"^4.0.0","@commitlint/config-conventional":"^7.1.2","karma-coverage-istanbul-reporter":"^2.0.4","@babel/plugin-transform-object-assign":"^7.2.0"},"_npmOperationalInternal":{"tmp":"tmp/compressorjs_1.0.2_1544448954706_0.900410883313318","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"compressorjs","version":"1.0.3","keywords":["image","compress","compressor","compressor.js","image-compressor","lossy-compression","javascript","front-end","web"],"author":{"url":"https://chenfengyuan.com","name":"Chen Fengyuan"},"license":"MIT","_id":"compressorjs@1.0.3","maintainers":[{"name":"chenfengyuan","email":"chenfengyuan@outlook.com"}],"homepage":"https://fengyuanchen.github.io/compressorjs","bugs":{"url":"https://github.com/fengyuanchen/compressorjs/issues"},"dist":{"shasum":"cb671fccf39d799bb3de6e8bfd71b175beeaeb9c","tarball":"https://registry.npmjs.org/compressorjs/-/compressorjs-1.0.3.tgz","fileCount":13,"integrity":"sha512-u3FcnL0y9MoDg+UIPEUESQfldk34D9c87/2Xwy99ALj2zN1kTSxB5aO5Z2SYBRVso6wMD3uPzS1PinZ1RyNclw==","signatures":[{"sig":"MEUCIQCAOAQHQwCERbI353akdRMB84mhxuJ+MIEY8gJ5CUJ40AIgVka/KdfqnOFyNLqdD83CO83xr5BT0dHmcFRDDDqtFXI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":115883,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcGQuACRA9TVsSAnZWagAApQ8P/RIvKCrvnamv9EcOIxBA\nMILzivLiuU7iBKvucNO8qjOtSZI6Ajjo4a7VW+NT3zRqYvicwMUFu4v/3MRJ\n2Bfm3B9A6WNQTtOcSrvLZKrXOgI4cTP8YEe6RfEu2Zji+pD04B9+CkIEUbF5\n9RoncVoVvLuMeU4IEJvjY/llY1cgbxqTA2GP1miXCIrbWHHBnJe3MVDfbVi9\nLqVhZwYhfCFqPUDnOSVoN6A7qRLqOeAx5JUllW5QQb10NFVJfUZs4R2I9IUu\nn7fnA8zxNJtJqh2Dwecn2oDIikEV5y2bGfu7FNNTYfAd0aZPkVz6sSnK2DEK\n+gFnTbb5D25jvpF22ez5KtIRN2ilBoMe7QmNTOKh41qeKFNygTw2pbxdb0RM\nbbvq7eaZs7R/EwtsphNQF7IbvURm7JAUopQUVBrTbV1CwJKtw7LKGLg3a7HD\nHhTIHPvBKYz1BUNtkYEFGamFSLk9cu71glquWgYXsfswx8yxGNwYFm0ciijy\n5CQwAolN9CqHELOhCGiMaZwxfaq9ukdKx7BiolYJuBf68gdE3LpXaMpzUmga\nVso8Qq/RaMN4q9xvjr66jiHOasfr0Z7DJwHAAzVkvCXfcKMHjKFBbK3MJyxG\na11hXiqA8E1MxFGPZ0qfnKzmlYjXbvHeoul88Nx3kbcwS/Bj8xrrjwpbBjXK\nE6XA\r\n=Lcf4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/compressor.common.js","types":"types/index.d.ts","unpkg":"dist/compressor.js","module":"dist/compressor.esm.js","gitHead":"2d3a78c91221fbbeda8075e32524c1d2cb53a8bd","scripts":{"dev":"rollup -c -m -w","lint":"npm run lint:js && npm run lint:css","test":"cross-env NODE_ENV=test karma start test/karma.conf.js","build":"rollup -c","clear":"del-cli dist","start":"npm run dev","codecov":"cat coverage/lcov.info | codecov","lint:js":"eslint src test *.js --fix","release":"npm run clear && npm run lint && npm run build && npm run compress && npm test","compress":"uglifyjs dist/compressor.js -o dist/compressor.min.js -c -m --comments /^!/","lint:css":"stylelint {docs,examples}/**/*.{css,html} --fix"},"_npmUser":{"name":"chenfengyuan","email":"chenfengyuan@outlook.com"},"repository":{"url":"git+https://github.com/fengyuanchen/compressorjs.git","type":"git"},"_npmVersion":"6.5.0","description":"JavaScript image compressor.","directories":{},"_nodeVersion":"10.9.0","dependencies":{"is-blob":"^2.0.1","blueimp-canvas-to-blob":"^3.14.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","husky":"^1.2.1","karma":"^3.1.4","mocha":"^5.2.0","eslint":"^5.10.0","rollup":"^0.68.0","codecov":"^3.1.0","del-cli":"^1.1.0","cross-env":"^5.2.0","puppeteer":"^1.11.0","stylelint":"^9.9.0","uglify-js":"^3.4.9","karma-chai":"^0.1.0","@babel/core":"^7.2.2","change-case":"^3.0.2","karma-mocha":"^1.3.0","lint-staged":"^8.1.0","rollup-watch":"^4.3.1","create-banner":"^1.0.0","@commitlint/cli":"^7.2.1","stylelint-order":"^2.0.0","@babel/preset-env":"^7.2.0","rollup-plugin-babel":"^4.1.0","eslint-plugin-import":"^2.14.0","karma-mocha-reporter":"^2.2.5","babel-plugin-istanbul":"^5.1.0","karma-chrome-launcher":"^2.2.0","rollup-plugin-commonjs":"^9.2.0","eslint-config-airbnb-base":"^13.1.0","karma-rollup-preprocessor":"^6.1.1","rollup-plugin-postprocess":"^1.0.2","stylelint-config-standard":"^18.2.0","rollup-plugin-node-resolve":"^4.0.0","@commitlint/config-conventional":"^7.1.2","karma-coverage-istanbul-reporter":"^2.0.4","@babel/plugin-transform-object-assign":"^7.2.0"},"_npmOperationalInternal":{"tmp":"tmp/compressorjs_1.0.3_1545145215333_0.16053674638207327","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"compressorjs","version":"1.0.4","keywords":["image","compress","compressor","compressor.js","image-compressor","lossy-compression","javascript","front-end","web"],"author":{"url":"https://chenfengyuan.com","name":"Chen Fengyuan"},"license":"MIT","_id":"compressorjs@1.0.4","maintainers":[{"name":"chenfengyuan","email":"chenfengyuan@outlook.com"}],"homepage":"https://fengyuanchen.github.io/compressorjs","bugs":{"url":"https://github.com/fengyuanchen/compressorjs/issues"},"dist":{"shasum":"350829171bb6ff8e32254b145ea6c30d4c67aba7","tarball":"https://registry.npmjs.org/compressorjs/-/compressorjs-1.0.4.tgz","fileCount":13,"integrity":"sha512-F+RATJIDLBW0C+M0zm0hVZifRe+Oe2YDQ07YQxjDdhARznVraq+NIb+N6Iu0miwByjFubD7qRKzqf3LvjliQdg==","signatures":[{"sig":"MEYCIQCDo7GluV5Ahoe8YQ44rEb6Zwrpka6B78KYNxNpOoVNkAIhAKq6w9wXzoQnTchPOM00+8St/Xo8AQ5A2/UFNGpPdnos","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":117672,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcQtmlCRA9TVsSAnZWagAAqa4P/RQ6qVbm7BViD1bLRcLR\naWUywlv1O3IQchZwTaRDsWsSPr9+aK8fT/zoKRO5xbcpH3OumGwxJVeS/tjQ\n+TIypCm9PlAW455GDckydaXA7H/1jcqLysnpQ4GC6eHGBW/wdjsv/zlkD0sb\nnPxqY9IuuVT7p6snekdM29D5RbcqhQYPau2e5VI9GmFEtrn5DrWpZrEu3G8i\nuCldGiZXXyZE6vtyUQ0+8qo8qZIY5Vc9ET08E+Y+hsWj0y417xJDZxHVF52Y\np/AzQuuZq7SrQgfsu6dayB9ZpJbw3b6GJ5Km91oQowrzjltlUVYPfX4Oio6J\nutdkpFo3O81vScWl/Z3ouBoIQYntdGxzdtp8KbEfEQwmogBz+mfOizD4SN1P\nc74ypW+SBfT+RQ55pYpDzJuwYEVwwjyuXOXP5fTzPxBRw854Y9MDJ/MnZdoS\nHkSk+qCP1t5y9/Q16cmxPZrZQfh3c91tkx8pMK46n+LjvvKLgil7bQ5TGiKY\nSoz3wA3nwuGEd/99Ljde9cDqY80fzbWDFjBmXWKYvsOkQTaJQv8RWfWm6oCn\nsqNBvlA8GlQoWLLe+4PQx79fqKRFgsXsVWaV0g/rQ0tGiEa4xmM7sfHM3SnZ\nEkv2yao8zD4YOnddSN4I2tfsfXCvXy4LuU7SUjjOZVMCQ8Hd9xrHxulfTtyJ\nZyPp\r\n=1rny\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/compressor.common.js","types":"types/index.d.ts","unpkg":"dist/compressor.js","module":"dist/compressor.esm.js","gitHead":"d1e29e1f8571167b7a56581eaff5b717b159ffc3","scripts":{"dev":"rollup -c -m -w","lint":"npm run lint:js && npm run lint:css","test":"cross-env NODE_ENV=test karma start test/karma.conf.js","build":"rollup -c","clear":"del-cli dist","start":"npm run dev","codecov":"cat coverage/lcov.info | codecov","lint:js":"eslint src test *.js --fix","release":"npm run clear && npm run lint && npm run build && npm run compress && npm test","compress":"uglifyjs dist/compressor.js -o dist/compressor.min.js -c -m --comments /^!/","lint:css":"stylelint {docs,examples}/**/*.{css,html} --fix"},"_npmUser":{"name":"chenfengyuan","email":"chenfengyuan@outlook.com"},"repository":{"url":"git+https://github.com/fengyuanchen/compressorjs.git","type":"git"},"_npmVersion":"6.6.0","description":"JavaScript image compressor.","directories":{},"_nodeVersion":"10.9.0","dependencies":{"is-blob":"^2.0.1","blueimp-canvas-to-blob":"^3.14.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","husky":"^1.3.1","karma":"^3.1.4","mocha":"^5.2.0","eslint":"^5.12.1","rollup":"^0.68.2","codecov":"^3.1.0","del-cli":"^1.1.0","cross-env":"^5.2.0","puppeteer":"^1.11.0","stylelint":"^9.10.0","uglify-js":"^3.4.9","karma-chai":"^0.1.0","@babel/core":"^7.2.2","change-case":"^3.1.0","karma-mocha":"^1.3.0","lint-staged":"^8.1.0","rollup-watch":"^4.3.1","create-banner":"^1.0.0","@commitlint/cli":"^7.3.2","stylelint-order":"^2.0.0","@babel/preset-env":"^7.2.3","rollup-plugin-babel":"^4.3.1","eslint-plugin-import":"^2.14.0","karma-mocha-reporter":"^2.2.5","babel-plugin-istanbul":"^5.1.0","karma-chrome-launcher":"^2.2.0","rollup-plugin-commonjs":"^9.2.0","eslint-config-airbnb-base":"^13.1.0","karma-rollup-preprocessor":"^6.1.2","rollup-plugin-postprocess":"^1.0.2","stylelint-config-standard":"^18.2.0","rollup-plugin-node-resolve":"^4.0.0","@commitlint/config-conventional":"^7.3.1","karma-coverage-istanbul-reporter":"^2.0.4","@babel/plugin-transform-object-assign":"^7.2.0"},"_npmOperationalInternal":{"tmp":"tmp/compressorjs_1.0.4_1547884965008_0.6693373940261671","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"compressorjs","version":"1.0.5","keywords":["image","compress","compressor","compressor.js","image-compressor","lossy-compression","javascript","front-end","web"],"author":{"url":"https://chenfengyuan.com","name":"Chen Fengyuan"},"license":"MIT","_id":"compressorjs@1.0.5","maintainers":[{"name":"chenfengyuan","email":"chenfengyuan@outlook.com"}],"homepage":"https://fengyuanchen.github.io/compressorjs","bugs":{"url":"https://github.com/fengyuanchen/compressorjs/issues"},"dist":{"shasum":"b02735a802177447a7a14d07d63cfff61c7580dd","tarball":"https://registry.npmjs.org/compressorjs/-/compressorjs-1.0.5.tgz","fileCount":13,"integrity":"sha512-QUcAxEOG/qc/BoSbmv9Y1lZrKz7uEPbMirNgT4c/S0xibRB24hz+2pkNBUs9FPvY5nKKxsELkXIono/DBwe8XQ==","signatures":[{"sig":"MEUCIQCWWMNwbgcDRaK8mpwmUYyaQGI75hM74CRIsOGrc2/XLQIgdORa7dJMoEi9WEM+/98gPjrRnCFj6M7WHcjLmeudmDY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":118951,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcSEtiCRA9TVsSAnZWagAAKGsP/RkvCzVepYNhz2eZ0v/+\neVnkLSy2OWFU4AMLjAiqVLDHqgkRwQ6qdpFyD/iFO34nx8nxvc70Q1XIzcmw\ntWmXMlyRy6yEPKBetEbdNQ8m0AWzfkWbpiM9ebUO0q6pcsyLvlEX6nK/7VAB\nheAm9qsiGuQg80GVf6N+WRJx6RXRaTi/nlhMYepeKyAz5K6kC/sTzsnu18v+\nhmSv7rL0SjATiGDNOzRJuHHn0XdSnqM0XLsvLgLzIkJdBVQfhjyN3rQlZ76N\nD2GE3i93DOYBWxNxlA+mbKr95G9/ZcoDZ94QtSVm535HC5gcXcPX6IcBJIzM\ndVA/ZkejglWWpIhTH3F3fdKgo/NgEdOPN1o7dxy59TLRBuCI1BRDrnAM80Tp\nUzxBACK/UI6dqS6UWncJQLP+OxrQFPsL2LvmNNJZ9cZsw9/wfmbbGX0GfQWc\nRa7vE3HXk177TTqne5b7puIwX6TbkzMvyqlUxIMVbki5qs2GwjX/gtLQuVNd\nNAnkSTGjnk6UQD24oezVlJkAX+4m5uj8+BNmul20YqutV4EbV8Xs6r5wnDxy\nVVYrJPfP6v9tzFD+O+cNF9T3fSPYSRhSCRkWKv89W3HYfPS+t8CV43bMTIrs\nen8+rN2QDHSI1cUD7L4kAVWkDIlM3UfatSRfL6HpvjdbU1bAECvfKWVfPi2T\ncjHi\r\n=GLfS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/compressor.common.js","husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"lint-staged"}},"types":"types/index.d.ts","unpkg":"dist/compressor.js","module":"dist/compressor.esm.js","gitHead":"eee1943bccf249ebe37a523cba3e3e531422494f","scripts":{"dev":"rollup -c -m -w","lint":"npm run lint:js && npm run lint:css","test":"cross-env NODE_ENV=test karma start test/karma.conf.js","build":"rollup -c","clear":"del-cli dist","start":"npm run dev","codecov":"cat coverage/lcov.info | codecov","lint:js":"eslint src test *.js --fix","release":"npm run clear && npm run lint && npm run build && npm run compress && npm test","compress":"uglifyjs dist/compressor.js -o dist/compressor.min.js -c -m --comments /^!/","lint:css":"stylelint {docs,examples}/**/*.{css,html} --fix"},"_npmUser":{"name":"chenfengyuan","email":"chenfengyuan@outlook.com"},"commitlint":{"extends":["@commitlint/config-conventional"]},"repository":{"url":"git+https://github.com/fengyuanchen/compressorjs.git","type":"git"},"_npmVersion":"6.6.0","description":"JavaScript image compressor.","directories":{},"lint-staged":{"ignore":["{dist,docs}/**/*.js"],"linters":{"*.js":["eslint --fix","git add"],"*.{css,html}":["stylelint --fix","git add"]}},"_nodeVersion":"10.9.0","browserslist":["last 2 versions","> 1%","not ie <= 9"],"dependencies":{"is-blob":"^2.0.1","blueimp-canvas-to-blob":"^3.14.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","husky":"^1.3.1","karma":"^3.1.4","mocha":"^5.2.0","eslint":"^5.12.1","rollup":"^0.68.2","codecov":"^3.1.0","del-cli":"^1.1.0","cross-env":"^5.2.0","puppeteer":"^1.11.0","stylelint":"^9.10.1","uglify-js":"^3.4.9","karma-chai":"^0.1.0","@babel/core":"^7.2.2","change-case":"^3.1.0","karma-mocha":"^1.3.0","lint-staged":"^8.1.0","rollup-watch":"^4.3.1","create-banner":"^1.0.0","@commitlint/cli":"^7.3.2","stylelint-order":"^2.0.0","@babel/preset-env":"^7.3.1","rollup-plugin-babel":"^4.3.2","eslint-plugin-import":"^2.15.0","karma-mocha-reporter":"^2.2.5","babel-plugin-istanbul":"^5.1.0","karma-chrome-launcher":"^2.2.0","rollup-plugin-commonjs":"^9.2.0","eslint-config-airbnb-base":"^13.1.0","karma-rollup-preprocessor":"^6.1.2","rollup-plugin-postprocess":"^1.0.2","stylelint-config-standard":"^18.2.0","rollup-plugin-node-resolve":"^4.0.0","@commitlint/config-conventional":"^7.3.1","karma-coverage-istanbul-reporter":"^2.0.4","@babel/plugin-transform-object-assign":"^7.2.0"},"_npmOperationalInternal":{"tmp":"tmp/compressorjs_1.0.5_1548241761929_0.4297971768163553","host":"s3://npm-registry-packages"}},"1.0.6":{"name":"compressorjs","version":"1.0.6","keywords":["image","compress","compressor","compressor.js","image-compressor","lossy-compression","javascript","front-end","web"],"author":{"url":"https://chenfengyuan.com/","name":"Chen Fengyuan"},"license":"MIT","_id":"compressorjs@1.0.6","maintainers":[{"name":"chenfengyuan","email":"chenfengyuan@outlook.com"}],"homepage":"https://fengyuanchen.github.io/compressorjs","bugs":{"url":"https://github.com/fengyuanchen/compressorjs/issues"},"dist":{"shasum":"75c55e2c3d797afeaa3084bd0cbf03e8374e4b6d","tarball":"https://registry.npmjs.org/compressorjs/-/compressorjs-1.0.6.tgz","fileCount":16,"integrity":"sha512-HgaDx4AGCjJOyOt08JsGO9VLJIHwy8guZDU1OG2jtuz77MG8PQr+reKt5J6aYZCajVIKXsFXJreZeEmk6lXFmA==","signatures":[{"sig":"MEQCICpgolj8QmV0r7ZriRobkOH5CpVIC71NwLVB6Vev51i0AiAlzwXZq7kMcJ6T/WtkndpZ7y/GBYfOHhAYtkc7mV/gzA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":248404,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd2L0PCRA9TVsSAnZWagAAwEcP/iPFvv/9DncegjKpusmm\nEHYHVEWe6H9fDYyCDBYMItapjgft86+hZlvARnicn7+HV5DlRLLk6aMOpIBL\nVr/VGIuflheIO3wACNsZVCn3/5akrT2i8Uk5/Qo3SWPE9Wxhg5XD5s8IQT7D\nNlOaYAJw0EMYzV52QWw6B3gjQ+7VHsKaczwkFQamWRqpCrGT1yGhfyaCwDLX\norFWdkwhH/2T9z5l9k+OlheHDRkOgRgx0tcZXKOWkOBA5qZWsdcKNRIAtK30\n1nfSh0Mkon2/BMNBKT/YuQZgpHE0Rqx9JDC2lW8adCJpKN6G5AoKqr6B9eNi\niY11DHmFiBPuS6TspLqlIPbUcMc0ngrBRLGyl+0K/+5tUBwaPyolIVksI2IN\nHW1mEOy26zIhhU7KUTXtSuZ/42TIfZP7sT4MwiwtcS8O6po0X/tHoEvJII9a\nkiI3HUYRU/h1Gz/yPkecpt7+HlY/jK2LEeyMpfp0nR3jQzqa6mI+yJRxr97V\nrzOlb2/cX6nBLMfhLmw+nGhatx47YTsOyl8sT9+LyfK95cd/Ke5g2b5Iq3xl\nXoh9VSWZ/vsA2kZl37OoO9NbzRFT4qad+lMhWx+5d99NyHax5eJhFEyb3PsF\n95L9QLfiQ+wgV2mRXTWc5NDV3TZQWsHxD/jGfuZI3V+0UpZy0MqskwAdtnP+\n3shr\r\n=pBEO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/compressor.common.js","husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"lint-staged"}},"types":"types/index.d.ts","module":"dist/compressor.esm.js","browser":"dist/compressor.js","gitHead":"5c873ddf9c9d68ad088c474cd9a367e2488d9d11","scripts":{"dev":"rollup -c -m -w","lint":"npm run lint:js && npm run lint:css","test":"cross-env NODE_ENV=test karma start test/karma.conf.js","build":"rollup -c","clear":"del-cli dist","start":"npm run dev","codecov":"cat coverage/lcov.info | codecov","lint:js":"eslint src test *.js --fix","release":"npm run clear && npm run lint && npm run build && npm run compress && npm test","compress":"uglifyjs dist/compressor.js -o dist/compressor.min.js -c -m --comments /^!/","lint:css":"stylelint {docs,examples}/**/*.{css,html} --fix"},"_npmUser":{"name":"chenfengyuan","email":"chenfengyuan@outlook.com"},"commitlint":{"extends":["@commitlint/config-conventional"]},"repository":{"url":"git+https://github.com/fengyuanchen/compressorjs.git","type":"git"},"_npmVersion":"6.13.1","description":"JavaScript image compressor.","directories":{},"lint-staged":{"{src,docs}*.{css,scss,html}":["stylelint --fix","git add"],"{src,test}/**/*.js|*.conf*.js":["eslint --fix","git add"]},"_nodeVersion":"10.9.0","browserslist":["last 2 versions","> 1%","not ie <= 9"],"dependencies":{"is-blob":"^2.0.1","blueimp-canvas-to-blob":"^3.16.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","husky":"^3.1.0","karma":"^4.4.1","mocha":"^6.2.2","eslint":"^6.7.0","rollup":"^1.27.4","codecov":"^3.6.1","del-cli":"^3.0.0","cross-env":"^6.0.3","puppeteer":"^2.0.0","stylelint":"^12.0.0","uglify-js":"^3.6.9","karma-chai":"^0.1.0","@babel/core":"^7.7.4","change-case":"^3.1.0","karma-mocha":"^1.3.0","lint-staged":"^9.4.3","create-banner":"^1.0.0","@commitlint/cli":"^8.2.0","stylelint-order":"^3.1.1","@babel/preset-env":"^7.7.4","rollup-plugin-babel":"^4.3.3","eslint-plugin-import":"^2.18.2","karma-mocha-reporter":"^2.2.5","babel-plugin-istanbul":"^5.2.0","karma-chrome-launcher":"^3.1.0","rollup-plugin-commonjs":"^10.1.0","eslint-config-airbnb-base":"^14.0.0","karma-rollup-preprocessor":"^7.0.2","rollup-plugin-postprocess":"^1.0.2","stylelint-config-standard":"^19.0.0","rollup-plugin-node-resolve":"^5.2.0","@commitlint/config-conventional":"^8.2.0","karma-coverage-istanbul-reporter":"^2.1.1","@babel/plugin-transform-object-assign":"^7.7.4"},"_npmOperationalInternal":{"tmp":"tmp/compressorjs_1.0.6_1574485262390_0.4176713313613245","host":"s3://npm-registry-packages"}},"1.0.7":{"name":"compressorjs","version":"1.0.7","keywords":["image","compress","compressor","compressor.js","image-compressor","lossy-compression","javascript","front-end","web"],"author":{"url":"https://chenfengyuan.com/","name":"Chen Fengyuan"},"license":"MIT","_id":"compressorjs@1.0.7","maintainers":[{"name":"chenfengyuan","email":"chenfengyuan@outlook.com"}],"homepage":"https://fengyuanchen.github.io/compressorjs","bugs":{"url":"https://github.com/fengyuanchen/compressorjs/issues"},"dist":{"shasum":"67cd0b3b9ac97540515b22b334dc32eb92b730b1","tarball":"https://registry.npmjs.org/compressorjs/-/compressorjs-1.0.7.tgz","fileCount":13,"integrity":"sha512-ca+H8CGrn0LG103//VQmXBbNdvzvHiW26LGdWncp4RmLNbNQjaaFWIUxMN9++hbhGobLtofkHoxzzXGisNyD3w==","signatures":[{"sig":"MEQCIHdL0iG8DdR/MWt6oISgvABkWWSfvQl5JWYWQWETgyujAiBhwvjpiP3QTy+9xalJMm4XE4rorQBIuhhfrVpMKzrjNA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":125160,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfwfpECRA9TVsSAnZWagAA2YsP/1c1pHbQ8/4xvk8dCyor\nZ3VxCJz1zQpVzEhG0fkx0CkcCO1VjGJPHCSkIR/Y0ewyHf6ui6ysQwbNDVh2\n/QhVGEg2CT9a1xMEcUggnRIVMxqfRtGU8Bj0rg/ufbHym7FrYTQjNsp8o4Np\nfrtjzAM62snNVPPdSSmDcrF5GGHwja7NatnVsqWOtTFIOcBrwv7SlwI1QjBA\nvBE/yBH25T7TFbmVOtdHmVsq+y53z/1LbOLMmXe/WUiz6ubpk7OhKpeTu8kT\nhaOw8mt3JWFEJKfq+0mgI5faM5tBNpoqSzFKSfBkI9wYzkXdnqUG1vPbaY1l\naFVzxZ4bqzrwzVu5WZUnuEGOlk2XskqnFK358FqSjF85EqF3GC/T8y+fW22e\nrcR+qP6pMHH2jbVAShGfLFwFTjrYoFua/xFc7J3yDZIDfjZkqRT4BFKRpxMT\nTmDLvbNHUvrjNU2MMgthYWafLAgUj/A3mm9pU7Q100OGROJ+CSFk37Fl5HJ9\nc62oCjGCrpJQzYmFOleR41dZlEM4w5YNcvM3EEZQrPU3ek42kydOwv2d/Bkf\nj4g52pt84kV653dT5felfqG/T5VAMYeQcIfETO5vreU/QKMB9hax2xkQTRs2\nA7fC3UUpZN2ERtfjFIv5zqyIFy2WukquCNjH3JYYgEc8E0JDaJkuBBAsw28M\nLIvX\r\n=9zLe\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/compressor.common.js","husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"lint-staged"}},"types":"types/index.d.ts","module":"dist/compressor.esm.js","browser":"dist/compressor.js","gitHead":"3b9a283be18adef9af674e54d869f7cc791914c8","scripts":{"dev":"rollup -c -m -w","lint":"npm run lint:js && npm run lint:css","test":"cross-env NODE_ENV=test karma start test/karma.conf.js","build":"rollup -c","clear":"del-cli dist","start":"npm run dev","codecov":"cat coverage/lcov.info | codecov","lint:js":"eslint src test *.js --fix","release":"npm run clear && npm run lint && npm run build && npm run compress && npm test","compress":"uglifyjs dist/compressor.js -o dist/compressor.min.js -c -m --comments /^!/","lint:css":"stylelint {docs,examples}/**/*.{css,html} --fix"},"_npmUser":{"name":"chenfengyuan","email":"chenfengyuan@outlook.com"},"commitlint":{"extends":["@commitlint/config-conventional"]},"repository":{"url":"git+https://github.com/fengyuanchen/compressorjs.git","type":"git"},"_npmVersion":"6.14.5","description":"JavaScript image compressor.","directories":{},"lint-staged":{"{src,test}/**/*.js|*.conf*.js":["eslint --fix","git add"],"{src,docs}/**/*.{css,scss,html}":["stylelint --fix","git add"]},"_nodeVersion":"12.18.2","browserslist":["last 2 versions","> 1%","not ie <= 9"],"dependencies":{"is-blob":"^2.1.0","blueimp-canvas-to-blob":"^3.28.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","husky":"^4.3.0","karma":"^5.2.3","mocha":"^8.2.1","eslint":"^7.14.0","rollup":"^2.33.3","codecov":"^3.8.1","del-cli":"^3.0.1","cross-env":"^7.0.2","puppeteer":"^5.5.0","stylelint":"^13.8.0","uglify-js":"^3.12.0","karma-chai":"^0.1.0","@babel/core":"^7.12.9","change-case":"^4.1.1","karma-mocha":"^2.0.1","lint-staged":"^10.5.2","create-banner":"^1.0.0","@commitlint/cli":"^11.0.0","stylelint-order":"^4.1.0","@babel/preset-env":"^7.12.7","@rollup/plugin-babel":"^5.2.1","eslint-plugin-import":"^2.22.1","karma-mocha-reporter":"^2.2.5","babel-plugin-istanbul":"^6.0.0","karma-chrome-launcher":"^3.1.0","@rollup/plugin-replace":"^2.3.4","@rollup/plugin-commonjs":"^16.0.0","eslint-config-airbnb-base":"^14.2.1","karma-rollup-preprocessor":"^7.0.5","stylelint-config-standard":"^20.0.0","@rollup/plugin-node-resolve":"^10.0.0","@commitlint/config-conventional":"^11.0.0","karma-coverage-istanbul-reporter":"^3.0.3","@babel/plugin-transform-object-assign":"^7.12.1"},"_npmOperationalInternal":{"tmp":"tmp/compressorjs_1.0.7_1606548035746_0.908935679010741","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"compressorjs","version":"1.1.0","keywords":["image","compress","compressor","compressor.js","image-compressor","lossy-compression","javascript","front-end","web"],"author":{"url":"https://chenfengyuan.com/","name":"Chen Fengyuan"},"license":"MIT","_id":"compressorjs@1.1.0","maintainers":[{"name":"chenfengyuan","email":"chenfengyuan@outlook.com"}],"homepage":"https://fengyuanchen.github.io/compressorjs","bugs":{"url":"https://github.com/fengyuanchen/compressorjs/issues"},"dist":{"shasum":"cde5ee6b49f8199fd211435100c79f45a5640b35","tarball":"https://registry.npmjs.org/compressorjs/-/compressorjs-1.1.0.tgz","fileCount":16,"integrity":"sha512-73W5hc+rtFeWmE4Sm03J+bsO8nIj1OT4Hgd4y/x+oYftm5/2vnkdpE6WXLX6Ce72LL+vV9Tf7Gg/i6aPw2utbw==","signatures":[{"sig":"MEYCIQCfjPRieWzAfwQwAKIm609y05rTdUqZCXLa9rBHIV8mQAIhAOJzBBccWOc8UNBmplcf5wKYlMyS4pBn3U0WNtw4utQe","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":288550},"main":"dist/compressor.common.js","types":"types/index.d.ts","module":"dist/compressor.esm.js","browser":"dist/compressor.js","gitHead":"d1bdbf2c1c97e6d927deb03496b466b3a67a745b","scripts":{"dev":"rollup -c -m -w","lint":"npm run lint:js && npm run lint:css","test":"cross-env NODE_ENV=test karma start test/karma.conf.js","build":"rollup -c","clean":"del-cli dist","start":"npm run dev","lint:js":"eslint src test *.js --fix","prepare":"husky install","release":"npm run clean && npm run lint && npm run build && npm run compress && npm test","compress":"uglifyjs dist/compressor.js -o dist/compressor.min.js -c -m --comments /^!/","lint:css":"stylelint {docs,examples}/**/*.{css,html} --fix","test:coverage":"cat coverage/lcov.info | codecov"},"_npmUser":{"name":"chenfengyuan","email":"chenfengyuan@outlook.com"},"repository":{"url":"git+https://github.com/fengyuanchen/compressorjs.git","type":"git"},"_npmVersion":"6.14.13","description":"JavaScript image compressor.","directories":{},"_nodeVersion":"14.17.0","dependencies":{"is-blob":"^2.1.0","blueimp-canvas-to-blob":"^3.29.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.4","husky":"^7.0.2","karma":"^6.3.4","mocha":"^9.1.2","eslint":"^7.32.0","rollup":"^2.57.0","codecov":"^3.8.3","del-cli":"^4.0.1","cross-env":"^7.0.3","puppeteer":"^10.4.0","stylelint":"^13.13.1","uglify-js":"^3.14.2","karma-chai":"^0.1.0","@babel/core":"^7.15.5","change-case":"^4.1.2","karma-mocha":"^2.0.1","lint-staged":"^11.1.2","create-banner":"^2.0.0","@commitlint/cli":"^13.2.0","stylelint-order":"^4.1.0","@babel/preset-env":"^7.15.6","@rollup/plugin-babel":"^5.3.0","eslint-plugin-import":"^2.24.2","karma-mocha-reporter":"^2.2.5","babel-plugin-istanbul":"^6.0.0","karma-chrome-launcher":"^3.1.0","@rollup/plugin-replace":"^3.0.0","@rollup/plugin-commonjs":"^20.0.0","eslint-config-airbnb-base":"^14.2.1","karma-rollup-preprocessor":"^7.0.7","stylelint-config-standard":"^22.0.0","@rollup/plugin-node-resolve":"^13.0.5","@commitlint/config-conventional":"^13.2.0","karma-coverage-istanbul-reporter":"^3.0.3","@babel/plugin-transform-object-assign":"^7.14.5"},"_npmOperationalInternal":{"tmp":"tmp/compressorjs_1.1.0_1633070654672_0.428028175637879","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"compressorjs","version":"1.1.1","keywords":["image","compress","compressor","compressor.js","image-compressor","lossy-compression","javascript","front-end","web"],"author":{"url":"https://chenfengyuan.com/","name":"Chen Fengyuan"},"license":"MIT","_id":"compressorjs@1.1.1","maintainers":[{"name":"chenfengyuan","email":"chenfengyuan@outlook.com"}],"homepage":"https://fengyuanchen.github.io/compressorjs","bugs":{"url":"https://github.com/fengyuanchen/compressorjs/issues"},"dist":{"shasum":"54c147cf37fb38828b08c48646d0258d52faf050","tarball":"https://registry.npmjs.org/compressorjs/-/compressorjs-1.1.1.tgz","fileCount":13,"integrity":"sha512-SysRuUPfmUNoq+RviE0iMFVUmoX2q/x+7PkEPUmk6NGkd85hDrmvujx0Qtp8UCGA6KMe5kuodsylPQcNaLf60w==","signatures":[{"sig":"MEUCIQC8aSmqzF6TzS104K70rbwqIEBl0VlDU/M+odzBHaWnIwIgEhnhEsrTj72QzUSfe9Fu/RzWrkPMZoCRgjKBFfhoNxM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":138488,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2mn8CRA9TVsSAnZWagAADM8P/RUi5DuQU9Kehsu7yAIZ\nGcBxYmQckqbB2dQXW7gcWYVOMmGwOK+Cz+aS7RPW3Xr4ItOXhGeU8Yd3vgB8\nWXya6gUN2Nk8XElsV6Fw7fnL1N40pIm2L+GliSNzcSAp0GSyyKXxOR6gsjIE\ni+mujC7b6ZpsGXSkzrhjQcZanN3iIECxvg+OwlZ0JHTv882C+HXCeLFfep2m\nsORnZRvaC0P5K5U4vRl+2pUx/TaXUAlZlSle+no0X1I+bQaPnNydzK8plT/X\nmpChfVU14C6iBA44JmyFrEB1CjUO4l0W53tu0ztp9MuDzaDR6QO0zmQnQY8Q\nr/NxOtAl55lazzOAD9LMVwMexWh7pVmxsquPYT8nqCSAC64YFW1bl6J9LjnO\ns5hOBdJPMGC3RqvDmqRm7ZF6G6TROj1L8BbTe59StMPEsUAtd6SnSuSZU3fk\nJdgRQyniTqBDHlmONfWkHD11MH35yrWcokZBs48vzJWGP3cDyNzyozX++i7Q\nJpk6URtksVjvcqnLuxZ2UIajsyCa7xzHc07RkGo9usDx05wVGKRthK3W/dyv\nk98pu4XjUUsCE0qzvBEqdtyar5PXVBzNUDh+0YdDl1vsRp7wqCIcppgX6JvC\nG1+3yMy+7xyxQxNrZNkFelqUsk5ADDZ3Jqs30P3mbVHrDYUG6ynDoL50HWfx\nGuZ+\r\n=wnlJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/compressor.common.js","types":"types/index.d.ts","module":"dist/compressor.esm.js","browser":"dist/compressor.js","gitHead":"617061be7b448cb3d5d5fa9a0026f70320bd61b4","scripts":{"dev":"rollup -c -m -w","lint":"npm run lint:js && npm run lint:css","test":"cross-env NODE_ENV=test karma start test/karma.conf.js","build":"rollup -c","clean":"del-cli dist","start":"npm run dev","lint:js":"eslint src test *.js --fix","prepare":"husky install","release":"npm run clean && npm run lint && npm run build && npm run compress && npm test","compress":"uglifyjs dist/compressor.js -o dist/compressor.min.js -c -m --comments /^!/","lint:css":"stylelint {docs,examples}/**/*.{css,html} --fix","test:coverage":"cat coverage/lcov.info | codecov"},"_npmUser":{"name":"chenfengyuan","email":"chenfengyuan@outlook.com"},"repository":{"url":"git+https://github.com/fengyuanchen/compressorjs.git","type":"git"},"_npmVersion":"6.14.13","description":"JavaScript image compressor.","directories":{},"_nodeVersion":"14.17.0","dependencies":{"is-blob":"^2.1.0","blueimp-canvas-to-blob":"^3.29.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.4","husky":"^7.0.2","karma":"^6.3.4","mocha":"^9.1.2","eslint":"^7.32.0","rollup":"^2.58.0","codecov":"^3.8.3","del-cli":"^4.0.1","cross-env":"^7.0.3","puppeteer":"^10.4.0","stylelint":"^13.13.1","uglify-js":"^3.14.2","karma-chai":"^0.1.0","@babel/core":"^7.15.5","change-case":"^4.1.2","karma-mocha":"^2.0.1","lint-staged":"^11.2.0","create-banner":"^2.0.0","@commitlint/cli":"^13.2.0","stylelint-order":"^4.1.0","@babel/preset-env":"^7.15.6","@rollup/plugin-babel":"^5.3.0","eslint-plugin-import":"^2.24.2","karma-mocha-reporter":"^2.2.5","babel-plugin-istanbul":"^6.0.0","karma-chrome-launcher":"^3.1.0","@rollup/plugin-replace":"^3.0.0","@rollup/plugin-commonjs":"^21.0.0","eslint-config-airbnb-base":"^14.2.1","karma-rollup-preprocessor":"^7.0.7","stylelint-config-standard":"^22.0.0","@rollup/plugin-node-resolve":"^13.0.5","@commitlint/config-conventional":"^13.2.0","karma-coverage-istanbul-reporter":"^3.0.3","@babel/plugin-transform-object-assign":"^7.14.5"},"_npmOperationalInternal":{"tmp":"tmp/compressorjs_1.1.1_1633401552165_0.4549184580321499","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"compressorjs","version":"1.2.0","keywords":["image","compress","compressor","compressor.js","image-compressor","lossy-compression","javascript","front-end","web"],"author":{"url":"https://chenfengyuan.com/","name":"Chen Fengyuan"},"license":"MIT","_id":"compressorjs@1.2.0","maintainers":[{"name":"chenfengyuan","email":"chenfengyuan@outlook.com"}],"homepage":"https://fengyuanchen.github.io/compressorjs","bugs":{"url":"https://github.com/fengyuanchen/compressorjs/issues"},"dist":{"shasum":"2993d625623f777d960dd5f8b96fda71637b1690","tarball":"https://registry.npmjs.org/compressorjs/-/compressorjs-1.2.0.tgz","fileCount":12,"integrity":"sha512-XSXEzIlzJpRWz3ikNYVfwgKHS1rDL4okJQ1Hqu1RDFwnR9P/C3EU9IRPbPrOVAPwB0XcyKMow0RNzbGKfC36FQ==","signatures":[{"sig":"MEUCIQC5fZL5VD/NHxC9kq628sDGO0ow46GeOHrY3mnXV0A1RAIgWSdh6iLeMXSXYIsnGWQfo6kzybjpgKVnO57/Kn1mKBQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":136998,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+fq7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqkTA//XrascxHCr1umSvPRpIyQpRB3+XQUn7osZPFczPcTDn2e8k8r\r\ntHQLcGgLGPWWoay99mNQXiS9Xekx+pV3bC5oqWs6CldgNog3dGcxU2FlHxP6\r\nnMEmTAZip1skzkBJHnXeDuaxAT/OrQxdE9X99maUE0oTZQ83b6jwulOjOomQ\r\nVlfrt/2IZ3+Ds28BpNePbI0RgpsarF4LJoku0Z0YatvBR7QzaKQ7zVv8Qxo3\r\nirYtcsNd9jEsmOhEpD1wD3UQKhloZN2nTzNNaNCDsh0sTt9vXrHr1tUZrCzB\r\nK7KgsF+FTp9kU7fgFSMzHTnlMeCYkYFbTCddklKy0xwHI3Cl5ZnIlH4C+WM4\r\n+KnX/Kf24ZtFEhqRDvO9XeX17+CVHm/jsxmpSd1G67hZl9M5jRqNjsqbHaXQ\r\n46TbsGq8Uyef10fxQUyzq/Pyr1PrjXsZVXL3XK/q8J04HZ1M6Ph69VpV6GBq\r\nXxu0ISkltpP63/SX2ihdv0/2xfm1mroXEmTBCYj+6T7yHThnQCzhSdqBBrHT\r\ngcgR4KPEVJgg/3cdzs6vZDh80Vmw/+K33H9eDj6PFjRi1K7sro4k7TvLcmSJ\r\n3EfmyiabqcC4TpcFvvX/wFMJuHhq1bnlYVValvhbULYCpjIy7KShZf+VDVys\r\nZONdQcklWdVzyIcB3Q1Nl2SIG+GsL6lDGoE=\r\n=rix8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/compressor.common.js","types":"types/index.d.ts","module":"dist/compressor.esm.js","browser":"dist/compressor.js","gitHead":"616ccc861eeaaf159c1ba54ad78d79299d6d313f","scripts":{"dev":"rollup -c -m -w","lint":"npm run lint:js && npm run lint:css","test":"cross-env NODE_ENV=test karma start test/karma.conf.js","build":"rollup -c","clean":"del-cli dist","start":"npm run dev","lint:js":"eslint src test *.js --fix","prepare":"husky install","release":"npm run clean && npm run lint && npm run build && npm run compress && npm test","compress":"uglifyjs dist/compressor.js -o dist/compressor.min.js -c -m --comments /^!/","lint:css":"stylelint docs/**/*.css --fix","test:coverage":"cat coverage/lcov.info | codecov"},"_npmUser":{"name":"chenfengyuan","email":"chenfengyuan@outlook.com"},"repository":{"url":"git+https://github.com/fengyuanchen/compressorjs.git","type":"git"},"_npmVersion":"9.4.1","description":"JavaScript image compressor.","directories":{},"_nodeVersion":"18.2.0","dependencies":{"is-blob":"^2.1.0","blueimp-canvas-to-blob":"^3.29.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.7","husky":"^8.0.3","karma":"^6.4.1","mocha":"^10.2.0","eslint":"^8.34.0","rollup":"^2.79.1","codecov":"^3.8.3","del-cli":"^5.0.0","cross-env":"^7.0.3","puppeteer":"^19.7.2","stylelint":"^15.2.0","uglify-js":"^3.17.4","karma-chai":"^0.1.0","@babel/core":"^7.21.0","change-case":"^4.1.2","karma-mocha":"^2.0.1","lint-staged":"^13.1.2","create-banner":"^2.0.0","@commitlint/cli":"^17.4.4","stylelint-order":"^6.0.2","@babel/preset-env":"^7.20.2","@rollup/plugin-babel":"^5.3.1","eslint-plugin-import":"^2.27.5","karma-mocha-reporter":"^2.2.5","babel-plugin-istanbul":"^6.1.1","karma-chrome-launcher":"^3.1.1","@rollup/plugin-replace":"^3.1.0","@rollup/plugin-commonjs":"^21.1.0","eslint-config-airbnb-base":"^15.0.0","karma-rollup-preprocessor":"^7.0.8","stylelint-config-standard":"^30.0.1","@rollup/plugin-node-resolve":"^13.3.0","@commitlint/config-conventional":"^17.4.4","karma-coverage-istanbul-reporter":"^3.0.3","@babel/plugin-transform-object-assign":"^7.18.6"},"_npmOperationalInternal":{"tmp":"tmp/compressorjs_1.2.0_1677327035058_0.11272564645689709","host":"s3://npm-registry-packages"}},"1.2.1":{"name":"compressorjs","version":"1.2.1","keywords":["image","compress","compressor","compressor.js","image-compressor","lossy-compression","javascript","front-end","web"],"author":{"url":"https://chenfengyuan.com/","name":"Chen Fengyuan"},"license":"MIT","_id":"compressorjs@1.2.1","maintainers":[{"name":"chenfengyuan","email":"chenfengyuan@outlook.com"}],"homepage":"https://fengyuanchen.github.io/compressorjs","bugs":{"url":"https://github.com/fengyuanchen/compressorjs/issues"},"dist":{"shasum":"4dee18ef5032f8166bd0a3258f045eda2cd07671","tarball":"https://registry.npmjs.org/compressorjs/-/compressorjs-1.2.1.tgz","fileCount":12,"integrity":"sha512-+geIjeRnPhQ+LLvvA7wxBQE5ddeLU7pJ3FsKFWirDw6veY3s9iLxAQEw7lXGHnhCJvBujEQWuNnGzZcvCvdkLQ==","signatures":[{"sig":"MEUCIQCWp8LJ3Q55exl3mCj1qK6MtBCHgtbzlxM1OxXhD01x0wIgCn/7yvj3uuEgf1sHFNkVXzebQfvRQQKi1KVpcVwK/Ak=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":154185,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/guvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqmFw/+IKO13m8xwzfsJJAJy2+RFCqcPU/I00YTnMOSEIk9r4eMD+pf\r\n51Svk9/+GOreCOoSY0kpmonPvzbctx0W7hvaS5miLtSfNAlQhWJ6HLF4bZSF\r\nLupYUp+EBRcO0GUDigBjd/f0+6Y5w8rpF8CM9kAxSbIvC5a97sSXyUcGH/z1\r\n/PlzeiBxY+cL8Ju6KLjoX9jh693nIzOuwnotM/50DCyRQekRyY5pbwQYY5op\r\nUrES0N091poUzpCZLTWwZMmr5bHRTm79E1uiREcsK3ct1DcRm3X/XHfYJB4C\r\n++EedL7OE609J7VEbe6RoEQ5mxGsIQuRsLLJnuZ0OIbA4/uafSNkWcu2Hrqi\r\nYXtN2FaewnCxxG3PyWt1tzQu9hees7SveD3gk03PlqdINgYGK5N4Jlo7+vjv\r\nGhhCo9dUeyvHCSF1cDqMsBxl1Hu9JFeTM2+5eF1FzZ2O52NAj0bXf0eZkL/Z\r\nLzZpWeXM9yQcw4YDVBvmfIKX48IdQWRMIO7l4G/i/saThsJL6woJoIs+j8qV\r\npEq76rt4R9G8/igN3zdIPtioZ+dBZsPTFvgXnGHCcAYzLhMDBHyTGwDCm15m\r\n+yk54o870y7t4ky9ipS+6T1zYbyg3O8iJZtU4PIfRimn3Y2lKOK6AtiKCTXs\r\nGscPETRjaab1upxKxvMCYSD/GASplVlRImk=\r\n=A6HZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/compressor.common.js","types":"types/index.d.ts","module":"dist/compressor.esm.js","browser":"dist/compressor.js","gitHead":"079669433076fc2dd034be82e42be4225e3fdeb6","scripts":{"dev":"rollup -c -m -w","lint":"npm run lint:js && npm run lint:css","test":"cross-env NODE_ENV=test karma start test/karma.conf.js","build":"rollup -c","clean":"del-cli dist","start":"npm run dev","lint:js":"eslint src test *.js --fix","prepare":"husky install","release":"npm run clean && npm run lint && npm run build && npm run compress && npm test","compress":"uglifyjs dist/compressor.js -o dist/compressor.min.js -c -m --comments /^!/","lint:css":"stylelint docs/**/*.css --fix","test:coverage":"cat coverage/lcov.info | codecov"},"_npmUser":{"name":"chenfengyuan","email":"chenfengyuan@outlook.com"},"repository":{"url":"git+https://github.com/fengyuanchen/compressorjs.git","type":"git"},"_npmVersion":"9.4.1","description":"JavaScript image compressor.","directories":{},"_nodeVersion":"18.2.0","dependencies":{"is-blob":"^2.1.0","blueimp-canvas-to-blob":"^3.29.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.7","husky":"^8.0.3","karma":"^6.4.1","mocha":"^10.2.0","eslint":"^8.35.0","rollup":"^2.79.1","codecov":"^3.8.3","del-cli":"^5.0.0","cross-env":"^7.0.3","puppeteer":"^19.7.2","stylelint":"^15.2.0","uglify-js":"^3.17.4","karma-chai":"^0.1.0","@babel/core":"^7.21.0","change-case":"^4.1.2","karma-mocha":"^2.0.1","lint-staged":"^13.1.2","create-banner":"^2.0.0","@commitlint/cli":"^17.4.4","stylelint-order":"^6.0.2","@babel/preset-env":"^7.20.2","@rollup/plugin-babel":"^5.3.1","eslint-plugin-import":"^2.27.5","karma-mocha-reporter":"^2.2.5","babel-plugin-istanbul":"^6.1.1","karma-chrome-launcher":"^3.1.1","@rollup/plugin-replace":"^3.1.0","@rollup/plugin-commonjs":"^21.1.0","eslint-config-airbnb-base":"^15.0.0","karma-rollup-preprocessor":"^7.0.8","stylelint-config-standard":"^30.0.1","@rollup/plugin-node-resolve":"^13.3.0","@commitlint/config-conventional":"^17.4.4","karma-coverage-istanbul-reporter":"^3.0.3","@babel/plugin-transform-object-assign":"^7.18.6"},"_npmOperationalInternal":{"tmp":"tmp/compressorjs_1.2.1_1677593519674_0.36760310683934727","host":"s3://npm-registry-packages"}},"1.3.0":{"name":"compressorjs","version":"1.3.0","description":"JavaScript image compressor.","main":"dist/compressor.common.js","module":"dist/compressor.esm.js","browser":"dist/compressor.js","types":"types/index.d.ts","scripts":{"build":"rollup -c","clean":"del-cli dist","compress":"uglifyjs dist/compressor.js -o dist/compressor.min.js -c -m --comments /^!/","dev":"rollup -c -m -w","lint":"npm run lint:js && npm run lint:css","lint:css":"stylelint docs/**/*.css --fix","lint:js":"eslint src test *.js --fix","prepare":"husky install","release":"npm run clean && npm run lint && npm run build && npm run compress && npm test","start":"npm run dev","test":"cross-env NODE_ENV=test karma start test/karma.conf.js"},"repository":{"type":"git","url":"git+https://github.com/fengyuanchen/compressorjs.git"},"keywords":["image","compress","compressor","compressor.js","image-compressor","lossy-compression","javascript","front-end","web"],"author":{"name":"Chen Fengyuan","url":"https://chenfengyuan.com/"},"license":"MIT","bugs":{"url":"https://github.com/fengyuanchen/compressorjs/issues"},"homepage":"https://fengyuanchen.github.io/compressorjs","dependencies":{"blueimp-canvas-to-blob":"^3.29.0","is-blob":"^2.1.0"},"devDependencies":{"@babel/core":"^7.29.0","@babel/plugin-transform-object-assign":"^7.27.1","@babel/preset-env":"^7.29.2","@commitlint/cli":"^17.8.1","@commitlint/config-conventional":"^17.8.1","@rollup/plugin-babel":"^5.3.1","@rollup/plugin-commonjs":"^21.1.0","@rollup/plugin-node-resolve":"^13.3.0","@rollup/plugin-replace":"^3.1.0","babel-plugin-istanbul":"^6.1.1","chai":"^4.5.0","change-case":"^4.1.2","codecov":"^3.8.3","create-banner":"^2.0.0","cross-env":"^7.0.3","del-cli":"^5.1.0","eslint":"^8.57.1","eslint-config-airbnb-base":"^15.0.0","eslint-plugin-import":"^2.32.0","husky":"^8.0.3","karma":"^6.4.4","karma-chai":"^0.1.0","karma-chrome-launcher":"^3.2.0","karma-coverage-istanbul-reporter":"^3.0.3","karma-mocha":"^2.0.1","karma-mocha-reporter":"^2.2.5","karma-rollup-preprocessor":"^7.0.8","lint-staged":"^13.3.0","mocha":"^10.8.2","puppeteer":"^19.11.1","rollup":"^2.80.0","stylelint":"^15.11.0","stylelint-config-standard":"^30.0.1","stylelint-order":"^6.0.4","uglify-js":"^3.19.3"},"gitHead":"3899df67a2c3085668e7a1980eea0405e61f23b2","_id":"compressorjs@1.3.0","_nodeVersion":"24.14.1","_npmVersion":"11.11.0","dist":{"integrity":"sha512-TsvzkRgDm/6mIRUdxJbrTH7kfSW3oJzOw8b1xU60fziQSosTML5TczpO6Z4H1LGF0yRmTotk6r5UNhuRxEwA1A==","shasum":"0511f985baf0ad6b29893a565aef8ca75e8ca785","tarball":"https://registry.npmjs.org/compressorjs/-/compressorjs-1.3.0.tgz","fileCount":12,"unpackedSize":161384,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/compressorjs@1.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDx0LIcnKfWVd2I6TkJfaZegH/2N8OUq05QxBaxGiWE9gIgY2jtBGBh9X9TSlhCUuJZktN12nm02UFK795N58enSNI="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:ddcb8de7-4cb0-410f-8f68-46af90e21e1b"}},"directories":{},"maintainers":[{"name":"chenfengyuan","email":"chenfengyuan@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/compressorjs_1.3.0_1775466620892_0.5114627770169722"},"_hasShrinkwrap":false}},"time":{"created":"2018-10-15T13:06:24.527Z","modified":"2026-04-06T09:10:21.325Z","1.0.0":"2018-10-15T13:06:24.702Z","1.0.1":"2018-10-24T13:02:35.907Z","1.0.2":"2018-12-10T13:35:54.874Z","1.0.3":"2018-12-18T15:00:15.623Z","1.0.4":"2019-01-19T08:02:45.141Z","1.0.5":"2019-01-23T11:09:22.023Z","1.0.6":"2019-11-23T05:01:02.649Z","1.0.7":"2020-11-28T07:20:35.905Z","1.1.0":"2021-10-01T06:44:14.836Z","1.1.1":"2021-10-05T02:39:12.356Z","1.2.0":"2023-02-25T12:10:35.192Z","1.2.1":"2023-02-28T14:11:59.951Z","1.3.0":"2026-04-06T09:10:21.066Z"},"bugs":{"url":"https://github.com/fengyuanchen/compressorjs/issues"},"author":{"name":"Chen Fengyuan","url":"https://chenfengyuan.com/"},"license":"MIT","homepage":"https://fengyuanchen.github.io/compressorjs","keywords":["image","compress","compressor","compressor.js","image-compressor","lossy-compression","javascript","front-end","web"],"repository":{"type":"git","url":"git+https://github.com/fengyuanchen/compressorjs.git"},"description":"JavaScript image compressor.","maintainers":[{"name":"chenfengyuan","email":"chenfengyuan@outlook.com"}],"readme":"# Compressor.js\n\n[![Coverage Status](https://img.shields.io/codecov/c/github/fengyuanchen/compressorjs.svg)](https://codecov.io/gh/fengyuanchen/compressorjs) [![Downloads](https://img.shields.io/npm/dm/compressorjs.svg)](https://www.npmjs.com/package/compressorjs) [![Version](https://img.shields.io/npm/v/compressorjs.svg)](https://www.npmjs.com/package/compressorjs) [![Gzip Size](https://img.shields.io/bundlephobia/minzip/compressorjs.svg)](https://unpkg.com/compressorjs/dist/compressor.common.js)\n\n> JavaScript image compressor. Uses the Browser's native [HTMLCanvasElement.toBlob()](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob) method to do the compression work, which means it is **lossy compression**, **asynchronous**, and has **different compression effects in different browsers**. Generally use this to precompress a image on the client side before uploading it.\n\n- [Website](https://fengyuanchen.github.io/compressorjs)\n\n## Table of contents\n\n- [Main Files](#main-files)\n- [Getting started](#getting-started)\n- [Options](#options)\n- [Methods](#methods)\n- [No conflict](#no-conflict)\n- [Browser support](#browser-support)\n- [Contributing](#contributing)\n- [Versioning](#versioning)\n- [License](#license)\n\n## Main Files\n\n```text\ndist/\n├── compressor.js        (UMD)\n├── compressor.min.js    (UMD, compressed)\n├── compressor.common.js (CommonJS, default)\n└── compressor.esm.js    (ES Module)\n```\n\n## Getting started\n\n### Install\n\n```shell\nnpm install compressorjs\n```\n\n### Usage\n\n#### Syntax\n\n```js\nnew Compressor(file[, options])\n```\n\n**file**\n\n- Type: [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File) or [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob)\n\nThe target image file for compressing.\n\n**options**\n\n- Type: `Object`\n- Optional\n\nThe options for compressing. Check out the available [options](#options).\n\n#### Example\n\n```html\n<input type=\"file\" id=\"file\" accept=\"image/*\">\n```\n\n```js\nimport axios from 'axios';\nimport Compressor from 'compressorjs';\n\ndocument.getElementById('file').addEventListener('change', (e) => {\n  const file = e.target.files[0];\n\n  if (!file) {\n    return;\n  }\n\n  new Compressor(file, {\n    quality: 0.6,\n\n    // The compression process is asynchronous,\n    // which means you have to access the `result` in the `success` hook function.\n    success(result) {\n      const formData = new FormData();\n\n      // The third parameter is required for server\n      formData.append('file', result, result.name);\n\n      // Send the compressed image file to server with XMLHttpRequest.\n      axios.post('/path/to/upload', formData).then(() => {\n        console.log('Upload success');\n      });\n    },\n    error(err) {\n      console.log(err.message);\n    },\n  });\n\n});\n```\n\n[⬆ back to top](#table-of-contents)\n\n## Options\n\nYou may set compressor options with `new Compressor(file, options)`.\nIf you want to change the global default options, You may use `Compressor.setDefaults(options)`.\n\n### strict\n\n- Type: `boolean`\n- Default: `true`\n\nIndicates whether to output the original image instead of the compressed one when the size of the compressed image is greater than the original one's, except the following cases:\n\n- The `retainExif` option is set to `true`.\n- The `mimeType` option is set and its value is different from the mime type of the image.\n- The `width` option is set and its value is greater than the natural width of the image.\n- The `height` option is set and its value is greater than the natural height of the image.\n- The `minWidth` option is set and its value is greater than the natural width of the image.\n- The `minHeight` option is set and its value is greater than the natural height of the image.\n- The `maxWidth` option is set and its value is less than the natural width of the image.\n- The `maxHeight` option is set and its value is less than the natural height of the image.\n\n### checkOrientation\n\n- Type: `boolean`\n- Default: `true`\n\nIndicates whether to read the image's Exif Orientation value (JPEG image only), and then rotate or flip the image automatically with the value.\n\n**Notes:**\n\n- Don't trust this all the time as some JPEG images have incorrect (not standard) Orientation values.\n- If the size of the target image is too large (e.g., greater than 10 MB), you should disable this option to avoid an out-of-memory crash.\n- The image's Exif information will be removed after compressed, so if you need the Exif information, you may need to upload the original image as well.\n\n### retainExif\n\n- Type: `boolean`\n- Default: `false`\n\nIndicates whether to retain the image's Exif information after compressed.\n\n### maxWidth\n\n- Type: `number`\n- Default: `Infinity`\n\nThe max-width of the output image. The value should be greater than `0`.\n\n> Avoid getting a blank output image, you might need to set the `maxWidth` and `maxHeight` options to limited numbers, because of [the size limits of a canvas element](https://stackoverflow.com/questions/6081483/maximum-size-of-a-canvas-element), recommend to use `4096` or lesser.\n\n### maxHeight\n\n- Type: `number`\n- Default: `Infinity`\n\nThe max height of the output image. The value should be greater than `0`.\n\n### minWidth\n\n- Type: `number`\n- Default: `0`\n\nThe min-width of the output image. The value should be greater than `0` and should not be greater than the `maxWidth`.\n\n### minHeight\n\n- Type: `number`\n- Default: `0`\n\nThe min-height of the output image. The value should be greater than `0` and should not be greater than the `maxHeight`.\n\n### width\n\n- Type: `number`\n- Default: `undefined`\n\nThe width of the output image. If not specified, the natural width of the original image will be used, or if the `height` option is set, the width will be computed automatically by the natural aspect ratio.\n\n### height\n\n- Type: `number`\n- Default: `undefined`\n\nThe height of the output image. If not specified, the natural height of the original image will be used, or if the `width` option is set, the height will be computed automatically by the natural aspect ratio.\n\n### resize\n\n- Type: `string`\n- Default: `\"none\"`\n- Options: `\"none\"`, `\"contain\"`, and `\"cover\"`.\n\nSets how the size of the image should be resized to the container specified by the `width` and `height` options.\n\n**Note:** This option only available when both the `width` and `height` options are specified.\n\n### quality\n\n- Type: `number`\n- Default: `0.8`\n\nThe quality of the output image. It must be a number between `0` and `1`. If this argument is anything else, the default values `0.92` and `0.80` are used for `image/jpeg` and `image/webp` respectively. Other arguments are ignored. Be careful to use `1` as it may make the size of the output image become larger.\n\n**Note:** This option only available for `image/jpeg` and `image/webp` images.\n\n> Check out the documentation of the [HTMLCanvasElement.toBlob()](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob) method for more detail.\n\n**Examples**:\n\n| Quality | Input size | Output size | Compression ratio | Description |\n| --- | --- | --- | --- | --- |\n| 0 | 2.12 MB | 114.61 KB | 94.72% | - |\n| 0.2 | 2.12 MB | 349.57 KB | 83.90% | - |\n| 0.4 | 2.12 MB | 517.10 KB | 76.18% | - |\n| 0.6 | 2.12 MB | 694.99 KB | 67.99% | Recommend |\n| 0.8 | 2.12 MB | 1.14 MB | 46.41% | Recommend |\n| 1 | 2.12 MB | 2.12 MB | 0% | Not recommend |\n| NaN | 2.12 MB | 2.01 MB | 5.02% | - |\n\n### mimeType\n\n- Type: `string`\n- Default: `'auto'`\n- Options: `\"auto\"`, `\"image/png\"`, `\"image/jpeg\"`, and `\"image/webp\"`.\n\nThe mime type of the output image. By default, the original mime type of the source image file will be used.\n\n> **Note:** Safari does not support `mimeType` conversion to `\"image/webp\"`. For more details, see the [browser compatibility of the `HTMLCanvasElement.toBlob()` method](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob#browser_compatibility).\n\n### convertTypes\n\n- Type: `Array` or `string` (multiple types should be separated by commas)\n- Default: `[\"image/png\"]`\n- Examples:\n  - `[\"image/png\", \"image/webp\"]`\n  - `\"image/png,image/webp\"`\n\nFiles whose file type is included in this list, and whose file size exceeds the `convertSize` value will be converted to JPEGs.\n\n> For image file type support, see the [Image file type and format guide](https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Image_types).\n\n### convertSize\n\n- Type: `number`\n- Default: `5000000` (5 MB)\n\nFiles whose file type is included in the `convertTypes` list, and whose file size exceeds this value will be converted to JPEGs. To disable this, just set the value to `Infinity`.\n\n**Examples**:\n\n| convertSize | Input size (type) | Output size (type) | Compression ratio |\n| --- | --- | --- | --- |\n| 5 MB | 1.87 MB (PNG) | 1.87 MB (PNG) | 0% |\n| 5 MB | 5.66 MB (PNG) | 450.24 KB (JPEG) | 92.23% |\n| 5 MB | 9.74 MB (PNG) | 883.89 KB (JPEG) | 91.14% |\n\n### beforeDraw(context, canvas)\n\n- Type: `Function`\n- Default: `null`\n- Parameters:\n  - `context`: The 2d rendering context of the canvas.\n  - `canvas`: The canvas for compression.\n\nThe hook function to execute before drawing the image into the canvas for compression.\n\n```js\nnew Compressor(file, {\n  beforeDraw(context, canvas) {\n    context.fillStyle = '#fff';\n    context.fillRect(0, 0, canvas.width, canvas.height);\n    context.filter = 'grayscale(100%)';\n  },\n});\n```\n\n### drew(context, canvas)\n\n- Type: `Function`\n- Default: `null`\n- Parameters:\n  - `context`: The 2d rendering context of the canvas.\n  - `canvas`: The canvas for compression.\n\nThe hook function to execute after drawing the image into the canvas for compression.\n\n```js\nnew Compressor(file, {\n  drew(context, canvas) {\n    context.fillStyle = '#fff';\n    context.font = '2rem serif';\n    context.fillText('watermark', 20, canvas.height - 20);\n  },\n});\n```\n\n### success(result)\n\n- Type: `Function`\n- Default: `null`\n- Parameters:\n  - `result`: The compressed image (a `File` (**read only**) or `Blob` object).\n\nThe hook function to execute when successful to compress the image.\n\n### error(err)\n\n- Type: `Function`\n- Default: `null`\n- Parameters:\n  - `err`: The compression error (an `Error` object).\n\nThe hook function executes when fails to compress the image.\n\n[⬆ back to top](#table-of-contents)\n\n## Methods\n\n### abort()\n\nAbort the compression process.\n\n```js\nconst compressor = new Compressor(file);\n\n// Do something...\ncompressor.abort();\n```\n\n## No conflict\n\nIf you have to use another compressor with the same namespace, just call the `Compressor.noConflict` static method to revert to it.\n\n```html\n<script src=\"other-compressor.js\"></script>\n<script src=\"compressor.js\"></script>\n<script>\n  Compressor.noConflict();\n  // Code that uses other `Compressor` can follow here.\n</script>\n```\n\n## Browser support\n\n- Chrome (latest)\n- Firefox (latest)\n- Safari (latest)\n- Opera (latest)\n- Edge (latest)\n- Internet Explorer 10+\n\n## Contributing\n\nPlease read through our [contributing guidelines](.github/CONTRIBUTING.md).\n\n## Versioning\n\nMaintained under the [Semantic Versioning guidelines](https://semver.org/).\n\n## License\n\n[MIT](https://opensource.org/licenses/MIT) © [Chen Fengyuan](https://chenfengyuan.com/)\n\n[⬆ back to top](#table-of-contents)\n","readmeFilename":"README.md","users":{"vcboom":true}}