{"_id":"@davidsneighbour/imagemin-lint-staged","_rev":"9-6c2dc6e297a27ffa111a4a630c3b8aeb","name":"@davidsneighbour/imagemin-lint-staged","dist-tags":{"latest":"3.0.2"},"versions":{"0.6.0":{"name":"@davidsneighbour/imagemin-lint-staged","version":"0.6.0","keywords":["imagemin","CLI","git hook","compress images","lint-staged"],"author":{"url":"https://github.com/tomchentw","name":"tomchentw","email":"developer@tomchentw.com"},"license":"MIT","_id":"@davidsneighbour/imagemin-lint-staged@0.6.0","maintainers":[{"name":"davidsneighbour","email":"pkollitsch@gmail.com"}],"homepage":"https://github.com/davidsneighbour/imagemin-lint-staged/","bugs":{"url":"https://github.com/davidsneighbour/imagemin-lint-staged/issues"},"bin":{"imagemin-lint-staged":"bin/index.js"},"dist":{"shasum":"2a4e19ef4469727d7ac1d6642d403e308b95fdd7","tarball":"https://registry.npmjs.org/@davidsneighbour/imagemin-lint-staged/-/imagemin-lint-staged-0.6.0.tgz","fileCount":6,"integrity":"sha512-DN7IAIAG0W/Z7c8oDrdRoNc6Zv5kh8xgo4U81PxYthiE1MHy4VGFS4WVllmF12I3TatJq2jJSVe0kYw3DGBJhA==","signatures":[{"sig":"MEUCIQCxnoxIANCtyQnA9dDETjpy2eptPAmCl2gXM4k4Oq1kEgIgDDpraMNEBLY6skqbY2kd8dK9h+Z5Rttr2srFYshORPA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10081},"jest":{"testPathIgnorePatterns":["\\d+\\.\\d+\\.\\d+"]},"babel":{"env":{"test":{"presets":["@babel/preset-env"]}}},"husky":{"hooks":{"pre-commit":"lint-staged"}},"gitHead":"089872ead6a894a943255ad11695cac8b77c93c4","scripts":{"test":"jest --runInBand","release":"standard-version"},"_npmUser":{"name":"davidsneighbour","email":"pkollitsch@gmail.com"},"repository":{"url":"git+https://github.com/davidsneighbour/imagemin-lint-staged.git","type":"git"},"_npmVersion":"10.1.0","description":"imagemin CLI designed for lint-staged usage with sensible defaults","directories":{},"lint-staged":{"*.{js,jsx,json,css}":["prettier --write"],"*.{png,jpeg,jpg,gif,svg}":["node ./bin/index.js"]},"_nodeVersion":"20.9.0","dependencies":{"cosmiconfig":"^9.0.0","imagemin-svgo":"^10.0.1","util.promisify":"^1.1.2","imagemin-optipng":"^8.0.0","imagemin-gifsicle":"^7.0.0","imagemin-jpegtran":"^7.0.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","husky":"^8.0.3","rimraf":"^5.0.5","prettier":"^3.2.4","babel-jest":"^29.7.0","@babel/core":"^7.23.7","lint-staged":"^15.2.0","standard-version":"^9.5.0","@babel/preset-env":"^7.23.8"},"_npmOperationalInternal":{"tmp":"tmp/imagemin-lint-staged_0.6.0_1705924991203_0.9719272986738616","host":"s3://npm-registry-packages"}},"0.6.1":{"name":"@davidsneighbour/imagemin-lint-staged","version":"0.6.1","keywords":["imagemin","CLI","git hook","compress images","lint-staged"],"author":{"url":"https://github.com/tomchentw","name":"tomchentw","email":"developer@tomchentw.com"},"license":"MIT","_id":"@davidsneighbour/imagemin-lint-staged@0.6.1","maintainers":[{"name":"davidsneighbour","email":"pkollitsch@gmail.com"}],"homepage":"https://github.com/davidsneighbour/imagemin-lint-staged/","bugs":{"url":"https://github.com/davidsneighbour/imagemin-lint-staged/issues"},"bin":{"imagemin-lint-staged":"bin/index.js"},"dist":{"shasum":"d410bae5193d30fc0641409b0a5d55f1b975878c","tarball":"https://registry.npmjs.org/@davidsneighbour/imagemin-lint-staged/-/imagemin-lint-staged-0.6.1.tgz","fileCount":6,"integrity":"sha512-QyMVAmr+EkZhPN7MgBjSmOPgo+4h8Ir04bky+7siMc0T3vDoyQKwM/bd4TDONf/BrJU3ZRGvsXyWhifULyHpFQ==","signatures":[{"sig":"MEYCIQCFsMMsJ1CSTluM/bitt/ijjZHPbjbIb9TmWEwGusl2OwIhAPv4D0MBS7tbPpRn9PrDlNo+ZHnNOfbIggWk+gIVMvv1","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10662},"jest":{"testPathIgnorePatterns":["\\d+\\.\\d+\\.\\d+"]},"type":"module","husky":{"hooks":{"pre-commit":"lint-staged"}},"gitHead":"1b961a3f6d6247262c495b739a1adc9599f34428","scripts":{"test":"NODE_OPTIONS=--experimental-vm-modules jest --runInBand","release":"standard-version"},"_npmUser":{"name":"davidsneighbour","email":"pkollitsch@gmail.com"},"repository":{"url":"git+https://github.com/davidsneighbour/imagemin-lint-staged.git","type":"git"},"_npmVersion":"11.12.1","description":"imagemin CLI designed for lint-staged usage with sensible defaults","directories":{},"lint-staged":{"*.{js,jsx,json,css}":["prettier --write"],"*.{png,jpeg,jpg,gif,svg}":["node ./bin/index.js"]},"_nodeVersion":"25.9.0","dependencies":{"cosmiconfig":"9.0.1","imagemin-svgo":"12.0.0","util.promisify":"1.1.3","imagemin-optipng":"8.0.0","imagemin-gifsicle":"7.0.0","imagemin-jpegtran":"8.0.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"30.4.2","husky":"9.1.7","rimraf":"6.1.3","prettier":"3.8.3","babel-jest":"30.4.1","@babel/core":"7.29.0","lint-staged":"17.0.5","standard-version":"9.5.0","@babel/preset-env":"7.29.5"},"_npmOperationalInternal":{"tmp":"tmp/imagemin-lint-staged_0.6.1_1779576493532_0.8969295370308745","host":"s3://npm-registry-packages-npm-production"}},"0.6.2":{"name":"@davidsneighbour/imagemin-lint-staged","version":"0.6.2","keywords":["imagemin","CLI","git hook","compress images","lint-staged"],"author":{"url":"https://github.com/tomchentw","name":"tomchentw","email":"developer@tomchentw.com"},"license":"MIT","_id":"@davidsneighbour/imagemin-lint-staged@0.6.2","maintainers":[{"name":"davidsneighbour","email":"pkollitsch@gmail.com"}],"homepage":"https://github.com/davidsneighbour/imagemin-lint-staged/","bugs":{"url":"https://github.com/davidsneighbour/imagemin-lint-staged/issues"},"bin":{"imagemin-lint-staged":"bin/index.js"},"dist":{"shasum":"1ab31ecc5d867c5a8e35671e30324f4f02519cdb","tarball":"https://registry.npmjs.org/@davidsneighbour/imagemin-lint-staged/-/imagemin-lint-staged-0.6.2.tgz","fileCount":6,"integrity":"sha512-LikTGCGvNVd/D5Suq+t/821TIaDxB+3gzukqRrFT7QYZwFeK/OKs+PWATdh85ynC5YA4SbRo//CYmGPeIGE+VA==","signatures":[{"sig":"MEYCIQCwBz8N+jA3iXX9BjmWp8p/P7q7nJVAQyHextsV1P55dgIhAK6ddvv3/+D2I2dtjyN9gtJMHrH2du7wQK4sa/RATFNz","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@davidsneighbour%2fimagemin-lint-staged@0.6.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":11068},"jest":{"testPathIgnorePatterns":["\\d+\\.\\d+\\.\\d+"]},"type":"module","husky":{"hooks":{"pre-commit":"lint-staged"}},"gitHead":"afc884b7b93566b81c3f1322b787b53e241b4620","scripts":{"test":"NODE_OPTIONS=--experimental-vm-modules jest --runInBand","release":"release-it --ci"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:854a0390-bc45-45eb-997e-84e84a0c096d"}},"repository":{"url":"git+https://github.com/davidsneighbour/imagemin-lint-staged.git","type":"git"},"_npmVersion":"11.12.1","description":"imagemin CLI designed for lint-staged usage with sensible defaults","directories":{},"lint-staged":{"*.{js,jsx,json,css}":["prettier --write"],"*.{png,jpeg,jpg,gif,svg}":["node ./bin/index.js"]},"_nodeVersion":"24.15.0","dependencies":{"cosmiconfig":"9.0.1","imagemin-svgo":"12.0.0","util.promisify":"1.1.3","imagemin-optipng":"8.0.0","imagemin-gifsicle":"7.0.0","imagemin-jpegtran":"8.0.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"30.4.2","husky":"9.1.7","rimraf":"6.1.3","prettier":"3.8.3","babel-jest":"30.4.1","@babel/core":"7.29.0","lint-staged":"17.0.5","@babel/preset-env":"7.29.5"},"_npmOperationalInternal":{"tmp":"tmp/imagemin-lint-staged_0.6.2_1779577929058_0.8792821084617373","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@davidsneighbour/imagemin-lint-staged","version":"1.0.0","keywords":["imagemin","CLI","git hook","compress images","lint-staged"],"author":{"url":"https://github.com/tomchentw","name":"tomchentw","email":"developer@tomchentw.com"},"license":"MIT","_id":"@davidsneighbour/imagemin-lint-staged@1.0.0","maintainers":[{"name":"davidsneighbour","email":"pkollitsch@gmail.com"}],"homepage":"https://github.com/davidsneighbour/imagemin-lint-staged/","bugs":{"url":"https://github.com/davidsneighbour/imagemin-lint-staged/issues"},"bin":{"imagemin-lint-staged":"bin/index.js"},"dist":{"shasum":"bd95547f72da3c12f07d266fce5b43dd9c371d7f","tarball":"https://registry.npmjs.org/@davidsneighbour/imagemin-lint-staged/-/imagemin-lint-staged-1.0.0.tgz","fileCount":6,"integrity":"sha512-oi7nSDIwAk0A5a48slP3ploDHv6qyOhl8BwHugsbxn2xjEZxAzXriV4DzujagtCbP8gfHYZvBKP63nysksL/+A==","signatures":[{"sig":"MEYCIQDAV7NyaQY2FqT9JcisaPghxWcawCIQ+DKghxJviPDn0QIhAK68UKyCX5AWntdbqCqhXScDmtE7qI8B48CTmQkoj+bw","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@davidsneighbour%2fimagemin-lint-staged@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":11560},"jest":{"testPathIgnorePatterns":["\\d+\\.\\d+\\.\\d+"]},"type":"module","husky":{"hooks":{"pre-commit":"lint-staged"}},"gitHead":"65a30ab9a60ed2615d246f485d2e8013af73dde5","scripts":{"test":"NODE_OPTIONS=--experimental-vm-modules jest --runInBand","release":"release-it --ci"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:854a0390-bc45-45eb-997e-84e84a0c096d"}},"repository":{"url":"git+https://github.com/davidsneighbour/imagemin-lint-staged.git","type":"git"},"_npmVersion":"11.12.1","description":"imagemin CLI designed for lint-staged usage with sensible defaults","directories":{},"lint-staged":{"*.{js,jsx,json,css}":["prettier --write"],"*.{png,jpeg,jpg,gif,svg}":["node ./bin/index.js"]},"_nodeVersion":"24.15.0","dependencies":{"cosmiconfig":"9.0.1","imagemin-svgo":"12.0.0","util.promisify":"1.1.3","imagemin-optipng":"8.0.0","imagemin-gifsicle":"7.0.0","imagemin-jpegtran":"8.0.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"30.4.2","husky":"9.1.7","rimraf":"6.1.3","prettier":"3.8.3","babel-jest":"30.4.1","@babel/core":"7.29.0","lint-staged":"17.0.5","@babel/preset-env":"7.29.5"},"_npmOperationalInternal":{"tmp":"tmp/imagemin-lint-staged_1.0.0_1779578188877_0.16160777104328372","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@davidsneighbour/imagemin-lint-staged","version":"1.0.1","keywords":["imagemin","CLI","git hook","compress images","lint-staged"],"author":{"url":"https://github.com/tomchentw","name":"tomchentw","email":"developer@tomchentw.com"},"license":"MIT","_id":"@davidsneighbour/imagemin-lint-staged@1.0.1","maintainers":[{"name":"davidsneighbour","email":"pkollitsch@gmail.com"}],"homepage":"https://github.com/davidsneighbour/imagemin-lint-staged/","bugs":{"url":"https://github.com/davidsneighbour/imagemin-lint-staged/issues"},"bin":{"imagemin-lint-staged":"bin/index.js"},"dist":{"shasum":"3f6bda6b48e244f87128efda0525f1a8aa443622","tarball":"https://registry.npmjs.org/@davidsneighbour/imagemin-lint-staged/-/imagemin-lint-staged-1.0.1.tgz","fileCount":6,"integrity":"sha512-W+vvl7Vm57FxRnt+L5a2cqgoM7SfmdMr3Y5iP1GasExTyq+YHJi9uEK+PLc5wVnToI+tj6lQ+FrHQFyUoGEpDg==","signatures":[{"sig":"MEYCIQCwS0Wc5I+L5+6HNPFUGfTDQ1lNaacK+1Q6pg/FOumntgIhAPXxTxDqtLwx42omm+I1sBhNmRxZrzHVFmB0NWSBxlWV","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@davidsneighbour%2fimagemin-lint-staged@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":13316},"jest":{"testPathIgnorePatterns":["\\d+\\.\\d+\\.\\d+"]},"type":"module","husky":{"hooks":{"pre-commit":"lint-staged"}},"gitHead":"a67a630abf59344e56e83ea177469de7fc9d4cd6","scripts":{"test":"NODE_OPTIONS=--experimental-vm-modules jest --runInBand","release":"release-it --ci"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:854a0390-bc45-45eb-997e-84e84a0c096d"}},"repository":{"url":"git+https://github.com/davidsneighbour/imagemin-lint-staged.git","type":"git"},"_npmVersion":"11.12.1","description":"imagemin CLI designed for lint-staged usage with sensible defaults","directories":{},"lint-staged":{"*.{js,jsx,json,css}":["prettier --write"],"*.{png,jpeg,jpg,gif,svg}":["node ./bin/index.js"]},"_nodeVersion":"24.15.0","dependencies":{"release-it":"20.0.1","cosmiconfig":"9.0.1","imagemin-svgo":"12.0.0","util.promisify":"1.1.3","imagemin-optipng":"8.0.0","imagemin-gifsicle":"7.0.0","imagemin-jpegtran":"8.0.0","@release-it/conventional-changelog":"11.0.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"30.4.2","husky":"9.1.7","rimraf":"6.1.3","prettier":"3.8.3","babel-jest":"30.4.1","@babel/core":"7.29.0","lint-staged":"17.0.5","@babel/preset-env":"7.29.5"},"_npmOperationalInternal":{"tmp":"tmp/imagemin-lint-staged_1.0.1_1779581461421_0.15084718150138277","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@davidsneighbour/imagemin-lint-staged","version":"2.0.0","keywords":["imagemin","CLI","git hook","compress images","lint-staged"],"author":{"url":"https://github.com/tomchentw","name":"tomchentw","email":"developer@tomchentw.com"},"license":"MIT","_id":"@davidsneighbour/imagemin-lint-staged@2.0.0","maintainers":[{"name":"davidsneighbour","email":"pkollitsch@gmail.com"}],"homepage":"https://github.com/davidsneighbour/imagemin-lint-staged/","bugs":{"url":"https://github.com/davidsneighbour/imagemin-lint-staged/issues"},"bin":{"imagemin-lint-staged":"bin/index.js"},"dist":{"shasum":"2aa5a0f5bf8be994be04741325ac8650bf6469e3","tarball":"https://registry.npmjs.org/@davidsneighbour/imagemin-lint-staged/-/imagemin-lint-staged-2.0.0.tgz","fileCount":6,"integrity":"sha512-FHWHiz3FcqmYp/ox4T2yY8pg2yu+VhkMZtzlaYM//tkA2OZCbY/BaUqs2G16kt5TLaYAfNhx7hqkY2NXAQazgQ==","signatures":[{"sig":"MEUCIGZNAlt4sBCUYm/wSdwGX+tCz1nq3vwYoAn2kfhBgqxQAiEAiUioL91z+LYc04sDc+XM/6XTddpWdD+eP5pV05pukTs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@davidsneighbour%2fimagemin-lint-staged@2.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":22128},"jest":{"testPathIgnorePatterns":["\\d+\\.\\d+\\.\\d+"]},"type":"module","husky":{"hooks":{"pre-commit":"lint-staged"}},"gitHead":"685936ccfc345a35d9c1f82c507600dae1ae70e6","scripts":{"test":"NODE_OPTIONS=--experimental-vm-modules jest --runInBand","release":"release-it --ci"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:854a0390-bc45-45eb-997e-84e84a0c096d"}},"repository":{"url":"git+https://github.com/davidsneighbour/imagemin-lint-staged.git","type":"git"},"_npmVersion":"11.12.1","description":"imagemin CLI designed for lint-staged usage with sensible defaults","directories":{},"lint-staged":{"*.{js,jsx,json,css}":["prettier --write"],"*.{png,jpeg,jpg,gif,svg}":["node ./bin/index.js"]},"_nodeVersion":"24.15.0","dependencies":{"release-it":"20.0.1","cosmiconfig":"9.0.1","imagemin-svgo":"12.0.0","util.promisify":"1.1.3","imagemin-optipng":"8.0.0","imagemin-gifsicle":"7.0.0","imagemin-jpegtran":"8.0.0","@release-it/conventional-changelog":"11.0.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"30.4.2","husky":"9.1.7","rimraf":"6.1.3","prettier":"3.8.3","babel-jest":"30.4.1","@babel/core":"7.29.0","lint-staged":"17.0.5","@babel/preset-env":"7.29.5"},"_npmOperationalInternal":{"tmp":"tmp/imagemin-lint-staged_2.0.0_1779594591500_0.04337013069008888","host":"s3://npm-registry-packages-npm-production"}},"3.0.0":{"name":"@davidsneighbour/imagemin-lint-staged","version":"3.0.0","keywords":["imagemin","CLI","git hook","compress images","lint-staged"],"author":{"url":"https://github.com/tomchentw","name":"tomchentw","email":"developer@tomchentw.com"},"license":"MIT","_id":"@davidsneighbour/imagemin-lint-staged@3.0.0","maintainers":[{"name":"davidsneighbour","email":"pkollitsch@gmail.com"}],"homepage":"https://github.com/davidsneighbour/imagemin-lint-staged/","bugs":{"url":"https://github.com/davidsneighbour/imagemin-lint-staged/issues"},"bin":{"imagemin-lint-staged":"bin/index.js"},"dist":{"shasum":"4f75a8d5fcd0020b3903bfa284908bf3fd6721cf","tarball":"https://registry.npmjs.org/@davidsneighbour/imagemin-lint-staged/-/imagemin-lint-staged-3.0.0.tgz","fileCount":6,"integrity":"sha512-3I74zE7KTIIllCXX9SzR/pCKkg0/wc4C50tBDfq48PonApKBSTD9n62iKu34nVYoyaBE+vTy2Wp/9IX5f4V0Gw==","signatures":[{"sig":"MEYCIQDue3roNofOgJWX2sLAem16BRbFC/+9mdAvOdYaZ/aRDAIhAPp88Yym4HwjAtjBxavwrSX0+aDMJW2iR0K3OQTjFK74","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@davidsneighbour%2fimagemin-lint-staged@3.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":22830},"jest":{"testPathIgnorePatterns":["\\d+\\.\\d+\\.\\d+"]},"type":"module","husky":{"hooks":{"pre-commit":"lint-staged"}},"gitHead":"66f68b455c5e34a843a973e59e9286198fa2edff","scripts":{"test":"NODE_OPTIONS=--experimental-vm-modules jest --runInBand","release":"release-it --ci"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:854a0390-bc45-45eb-997e-84e84a0c096d"}},"overrides":{"js-yaml":"^4.2.0"},"repository":{"url":"git+https://github.com/davidsneighbour/imagemin-lint-staged.git","type":"git"},"_npmVersion":"11.13.0","description":"imagemin CLI designed for lint-staged usage with sensible defaults","directories":{},"lint-staged":{"*.{js,jsx,json,css}":["prettier --write"],"*.{png,jpeg,jpg,gif,svg}":["node ./bin/index.js"]},"_nodeVersion":"24.17.0","dependencies":{"sharp":"^0.35.2","release-it":"20.2.1","cosmiconfig":"9.0.1","imagemin-svgo":"12.0.0","util.promisify":"1.1.3","@release-it/conventional-changelog":"11.0.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"30.4.2","husky":"9.1.7","rimraf":"6.1.3","prettier":"3.8.3","babel-jest":"30.4.1","@babel/core":"7.29.7","lint-staged":"17.0.5","@babel/preset-env":"7.29.5"},"_npmOperationalInternal":{"tmp":"tmp/imagemin-lint-staged_3.0.0_1782691273212_0.8964530070272543","host":"s3://npm-registry-packages-npm-production"}},"3.0.1":{"name":"@davidsneighbour/imagemin-lint-staged","version":"3.0.1","keywords":["imagemin","CLI","git hook","compress images","lint-staged"],"author":{"url":"https://github.com/tomchentw","name":"tomchentw","email":"developer@tomchentw.com"},"license":"MIT","_id":"@davidsneighbour/imagemin-lint-staged@3.0.1","maintainers":[{"name":"davidsneighbour","email":"pkollitsch@gmail.com"}],"homepage":"https://github.com/davidsneighbour/imagemin-lint-staged/","bugs":{"url":"https://github.com/davidsneighbour/imagemin-lint-staged/issues"},"bin":{"imagemin-lint-staged":"bin/index.js"},"dist":{"shasum":"bbfcb25c9a90663dd240c90112eee6f0ed321fca","tarball":"https://registry.npmjs.org/@davidsneighbour/imagemin-lint-staged/-/imagemin-lint-staged-3.0.1.tgz","fileCount":6,"integrity":"sha512-4QK3zO+GEWXxs6PAVTPyLzlfnbn9U/4SRhH5zzRo6hSz/H88syTFwJJzKZuooxeD5X6Phjod+C70MlCjPAOofg==","signatures":[{"sig":"MEUCICdGdNigfQrwITjUqVWmsnAsi4bRCVhVjDs/1E1I2TjdAiEA5Len3oP7qUTdO4AXlWjR4Fhbd0GLe4jsa3uzTkxjha4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@davidsneighbour%2fimagemin-lint-staged@3.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":23139},"jest":{"testPathIgnorePatterns":["\\d+\\.\\d+\\.\\d+"]},"type":"module","husky":{"hooks":{"pre-commit":"lint-staged"}},"gitHead":"698f64a974dfeb35e9fdb028107e0773f1f22d8f","scripts":{"test":"NODE_OPTIONS=--experimental-vm-modules jest --runInBand","release":"release-it --ci"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:854a0390-bc45-45eb-997e-84e84a0c096d"}},"overrides":{"js-yaml":"^4.2.0"},"repository":{"url":"git+https://github.com/davidsneighbour/imagemin-lint-staged.git","type":"git"},"_npmVersion":"11.16.0","description":"imagemin CLI designed for lint-staged usage with sensible defaults","directories":{},"lint-staged":{"*.{js,jsx,json,css}":["prettier --write"],"*.{png,jpeg,jpg,gif,svg}":["node ./bin/index.js"]},"_nodeVersion":"24.18.0","dependencies":{"sharp":"^0.35.2","release-it":"^21.0.1","cosmiconfig":"9.0.1","imagemin-svgo":"12.0.0","util.promisify":"1.1.3","@release-it/conventional-changelog":"^12.0.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"30.4.2","husky":"9.1.7","rimraf":"6.1.3","prettier":"3.8.3","babel-jest":"30.4.1","@babel/core":"7.29.7","lint-staged":"17.0.5","@babel/preset-env":"7.29.5"},"_npmOperationalInternal":{"tmp":"tmp/imagemin-lint-staged_3.0.1_1786164097991_0.18432909291685928","host":"s3://npm-registry-packages-npm-production"}},"3.0.2":{"name":"@davidsneighbour/imagemin-lint-staged","version":"3.0.2","description":"imagemin CLI designed for lint-staged usage with sensible defaults","license":"MIT","maintainers":[{"name":"davidsneighbour","email":"pkollitsch@gmail.com"}],"author":{"name":"tomchentw","email":"developer@tomchentw.com","url":"https://github.com/tomchentw"},"repository":{"type":"git","url":"git+https://github.com/davidsneighbour/imagemin-lint-staged.git"},"bugs":{"url":"https://github.com/davidsneighbour/imagemin-lint-staged/issues"},"homepage":"https://github.com/davidsneighbour/imagemin-lint-staged/","bin":{"imagemin-lint-staged":"bin/index.js"},"keywords":["imagemin","CLI","git hook","compress images","lint-staged"],"scripts":{"test":"NODE_OPTIONS=--experimental-vm-modules jest --runInBand","release":"release-it --ci"},"lint-staged":{"*.{png,jpeg,jpg,gif,svg}":["node ./bin/index.js"],"*.{js,jsx,json,css}":["prettier --write"]},"jest":{"testPathIgnorePatterns":["\\d+\\.\\d+\\.\\d+"]},"overrides":{"js-yaml":"^4.2.0"},"dependencies":{"@release-it/conventional-changelog":"^12.0.0","cosmiconfig":"10.0.0","imagemin-svgo":"12.0.0","release-it":"^21.0.1","sharp":"^0.35.3","util.promisify":"1.1.3"},"devDependencies":{"@babel/core":"8.0.1","@babel/preset-env":"8.0.2","babel-jest":"30.4.1","husky":"9.1.7","jest":"30.4.2","lint-staged":"17.3.0","prettier":"3.9.6","rimraf":"6.1.3"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"type":"module","gitHead":"e6dec59620f55d4de31a9556197bdd0ce826cee4","_id":"@davidsneighbour/imagemin-lint-staged@3.0.2","_nodeVersion":"24.18.0","_npmVersion":"11.16.0","dist":{"integrity":"sha512-CgSIa6P1YzravKdCHS4GHr1JfAPfDmPQuu7dfy3kae0iHj+L2iHHFXVIYZQ6spQlMkwdDY7ysRLBR0tMY/aHxg==","shasum":"e91c7f454fbdcdad06b9afdcd1ee869214f1a82a","tarball":"https://registry.npmjs.org/@davidsneighbour/imagemin-lint-staged/-/imagemin-lint-staged-3.0.2.tgz","fileCount":6,"unpackedSize":23554,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@davidsneighbour%2fimagemin-lint-staged@3.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCcbcSOn2p2zSPI7bDCFCSmZLPdXfV0fPW7oIcXaQnDHwIgZIU4neEeAUQvlvIad0PEFuHz9vllMCMlFLyd4jNME+I="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:854a0390-bc45-45eb-997e-84e84a0c096d"}},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/imagemin-lint-staged_3.0.2_1786164923393_0.6567687926799293"},"_hasShrinkwrap":false}},"time":{"created":"2024-01-22T12:03:11.075Z","modified":"2026-08-08T04:55:23.837Z","0.6.0":"2024-01-22T12:03:11.367Z","0.6.1":"2026-05-23T22:48:13.678Z","0.6.2":"2026-05-23T23:12:09.218Z","1.0.0":"2026-05-23T23:16:29.029Z","1.0.1":"2026-05-24T00:11:01.561Z","2.0.0":"2026-05-24T03:49:51.646Z","3.0.0":"2026-06-29T00:01:13.352Z","3.0.1":"2026-08-08T04:41:38.394Z","3.0.2":"2026-08-08T04:55:23.528Z"},"bugs":{"url":"https://github.com/davidsneighbour/imagemin-lint-staged/issues"},"author":{"name":"tomchentw","email":"developer@tomchentw.com","url":"https://github.com/tomchentw"},"license":"MIT","homepage":"https://github.com/davidsneighbour/imagemin-lint-staged/","keywords":["imagemin","CLI","git hook","compress images","lint-staged"],"repository":{"type":"git","url":"git+https://github.com/davidsneighbour/imagemin-lint-staged.git"},"description":"imagemin CLI designed for lint-staged usage with sensible defaults","maintainers":[{"name":"davidsneighbour","email":"pkollitsch@gmail.com"}],"readme":"# imagemin-lint-staged\n\n> imagemin CLI designed for lint-staged usage with sensible defaults\n\n[![Version][npm-image]][npm-url] [![PR Workflow][github-workflows-pr-image]][github-workflows-pr-url]\n\nThis started as a fork of [tomchentw/imagemin-lint-staged](https://github.com/tomchentw/imagemin-lint-staged), but the original repository seems to be [unmaintained](https://github.com/tomchentw/imagemin-lint-staged/issues) and I wanted the error messages to disappear. So I took the liberty to update the dependencies and make it work again. If you are the original author and want to merge this back, please let me know.\n\n## Installation\n\n```sh\nnpm i --save-dev @davidsneighbour/imagemin-lint-staged\n```\n\n## Usage\n\nUse in conjunction with [lint-staged][lint-staged]. In your `package.json`\n\n```json\n\"lint-staged\": {\n  \"*.{png,jpeg,jpg,gif,svg}\": [\"imagemin-lint-staged\"]\n},\n```\n\n## Configuration\n\nThe package uses [cosmiconfig][cosmiconfig] with the module name `imagemin-lint-staged`. This means you can configure the imagemin plugins from a project-level configuration file instead of changing the package source.\n\nConfiguration is searched from the current working directory. For normal `lint-staged` usage this is usually the repository root, because `lint-staged` is run from there.\n\nSupported configuration locations include:\n\n* `package.json`, using the `imagemin-lint-staged` property\n* `.imagemin-lint-stagedrc`\n* `.imagemin-lint-stagedrc.{json,yaml,yml,js,ts,mjs,cjs}`\n* `.config/imagemin-lint-stagedrc`\n* `.config/imagemin-lint-stagedrc.{json,yaml,yml,js,ts,mjs,cjs}`\n* `imagemin-lint-staged.config.{js,ts,mjs,cjs}`\n\nThe package uses cosmiconfig's asynchronous API, so ESM configuration files are supported. In ESM projects, prefer `imagemin-lint-staged.config.js` or `imagemin-lint-staged.config.mjs` with `export default`.\n\n### Default configuration\n\nThe built-in defaults are configured for lossless optimisation. They favour smaller files while avoiding settings that intentionally reduce image quality, resize images, remove required SVG scaling behaviour, or remove basic SVG accessibility metadata.\n\n```js\nexport default {\n  gifsicle: {\n    interlaced: false,\n    optimizationLevel: 3,\n  },\n  jpegtran: {\n    progressive: true,\n  },\n  optipng: {\n    optimizationLevel: 7,\n    bitDepthReduction: true,\n    colorTypeReduction: true,\n    paletteReduction: true,\n    interlaced: null,\n    errorRecovery: false,\n  },\n  svgo: {\n    plugins: [\n      {\n        name: 'preset-default',\n        params: {\n          overrides: {\n            removeViewBox: false,\n            cleanupIds: false,\n            removeDesc: false,\n          },\n        },\n      },\n    ],\n  },\n};\n```\n\n### Example using `package.json`\n\n```json\n{\n  \"imagemin-lint-staged\": {\n    \"gifsicle\": {\n      \"interlaced\": false,\n      \"optimizationLevel\": 3\n    },\n    \"jpegtran\": {\n      \"progressive\": true\n    },\n    \"optipng\": {\n      \"optimizationLevel\": 7,\n      \"bitDepthReduction\": true,\n      \"colorTypeReduction\": true,\n      \"paletteReduction\": true,\n      \"interlaced\": null,\n      \"errorRecovery\": false\n    },\n    \"svgo\": {\n      \"plugins\": [\n        {\n          \"name\": \"preset-default\",\n          \"params\": {\n            \"overrides\": {\n              \"removeViewBox\": false,\n              \"cleanupIds\": false,\n              \"removeDesc\": false\n            }\n          }\n        }\n      ]\n    }\n  }\n}\n```\n\n### Example using `.imagemin-lint-stagedrc.json`\n\n```json\n{\n  \"optipng\": {\n    \"optimizationLevel\": 7,\n    \"bitDepthReduction\": true,\n    \"colorTypeReduction\": true,\n    \"paletteReduction\": true,\n    \"interlaced\": null,\n    \"errorRecovery\": false\n  },\n  \"svgo\": {\n    \"plugins\": [\n      {\n        \"name\": \"preset-default\",\n        \"params\": {\n          \"overrides\": {\n            \"removeViewBox\": false,\n            \"cleanupIds\": false,\n            \"removeDesc\": false\n          }\n        }\n      }\n    ]\n  }\n}\n```\n\n### Example using `imagemin-lint-staged.config.mjs`\n\n```js\nexport default {\n  gifsicle: {\n    interlaced: false,\n    optimizationLevel: 3,\n  },\n  jpegtran: {\n    progressive: true,\n  },\n  optipng: {\n    optimizationLevel: 7,\n    bitDepthReduction: true,\n    colorTypeReduction: true,\n    paletteReduction: true,\n    interlaced: null,\n    errorRecovery: false,\n  },\n  svgo: {\n    plugins: [\n      {\n        name: 'preset-default',\n        params: {\n          overrides: {\n            removeViewBox: false,\n            cleanupIds: false,\n            removeDesc: false,\n          },\n        },\n      },\n    ],\n  },\n};\n```\n\n### Example using `imagemin-lint-staged.config.js` in an ESM project\n\nWhen your project has `\"type\": \"module\"` in `package.json`, `.js` config files can use ESM syntax:\n\n```js\nexport default {\n  optipng: {\n    optimizationLevel: 7,\n  },\n};\n```\n\n## Options\n\nAll options are optional. Each top-level key configures one imagemin plugin.\n\n| Option | Plugin | Default |\n| --- | --- | --- |\n| `gifsicle` | [`imagemin-gifsicle`][imagemin-gifsicle] | `{ \"interlaced\": false, \"optimizationLevel\": 3 }` |\n| `jpegtran` | [`imagemin-jpegtran`][imagemin-jpegtran] | `{ \"progressive\": true }` |\n| `optipng` | [`imagemin-optipng`][imagemin-optipng] | `{ \"optimizationLevel\": 7, \"bitDepthReduction\": true, \"colorTypeReduction\": true, \"paletteReduction\": true, \"interlaced\": null, \"errorRecovery\": false }` |\n| `svgo` | [`imagemin-svgo`][imagemin-svgo] | `preset-default` with `removeViewBox: false`, `cleanupIds: false`, and `removeDesc: false` |\n\nThe option object for each key is passed directly to the matching imagemin plugin.\n\n### Default option details\n\n* `gifsicle.interlaced` is set to `false` because interlacing can increase GIF file size. This does not reduce image quality; it only disables progressive-style loading for GIF files.\n* `gifsicle.optimizationLevel` is set to `3`, the strongest optimisation level supported by gifsicle through this plugin. It tries more optimisation methods and is slower than lower levels, but usually gives smaller files.\n* `jpegtran.progressive` is set to `true` because jpegtran can convert JPEG files to progressive JPEG losslessly. This keeps image data intact while often improving file size and loading behaviour.\n* `optipng.optimizationLevel` is set to `7`, the strongest optimisation level exposed by this plugin. It is slower than the previous default of `5`, but performs more compression trials.\n* `optipng.bitDepthReduction`, `optipng.colorTypeReduction`, and `optipng.paletteReduction` are enabled because these are lossless PNG reductions when optipng can prove that the resulting image remains equivalent.\n* `optipng.interlaced` is set to `null` so optipng preserves the input file's interlace state. This avoids changing progressive-loading behaviour unless you explicitly configure it.\n* `optipng.errorRecovery` is set to `false` so corrupt or invalid PNG files fail instead of being silently recovered during a pre-commit optimisation step.\n* `svgo.removeViewBox` is disabled because removing `viewBox` can break SVG scaling.\n* `svgo.cleanupIds` is disabled because renamed or minified IDs can cause collisions or broken references when SVGs are inlined, styled, scripted, or referenced externally.\n* `svgo.removeDesc` is disabled so existing `<desc>` elements are preserved for accessibility and documentation context.\n\nImportant behaviour:\n\n* If no configuration file is found, all defaults listed above are used.\n* If a plugin key is missing, that plugin uses its package default listed above.\n* If a plugin key is present, its value replaces the package default for that plugin. The configuration is not deep-merged.\n* All four plugins are always loaded. The current implementation does not support disabling one plugin via configuration.\n* Invalid options are not validated by this package. They are passed to the underlying imagemin plugin.\n\nFor plugin-specific options, refer to the individual plugin documentation linked in the table.\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\n\n[lint-staged]: https://github.com/okonet/lint-staged\n[cosmiconfig]: https://github.com/cosmiconfig/cosmiconfig\n[imagemin-gifsicle]: https://github.com/imagemin/imagemin-gifsicle\n[imagemin-jpegtran]: https://github.com/imagemin/imagemin-jpegtran\n[imagemin-optipng]: https://github.com/imagemin/imagemin-optipng\n[imagemin-svgo]: https://github.com/imagemin/imagemin-svgo\n[npm-image]: https://img.shields.io/npm/v/imagemin-lint-staged.svg?style=flat-square\n[npm-url]: https://www.npmjs.org/package/imagemin-lint-staged\n\n[github-workflows-pr-image]: https://github.com/davidsneighbour/imagemin-lint-staged/actions/workflows/pr.yml/badge.svg\n[github-workflows-pr-url]: https://github.com/davidsneighbour/imagemin-lint-staged/actions/workflows/pr.yml\n","readmeFilename":"README.md"}