img-size-checker

1.1.7 • Public • Published

img-size-checker

NPM version github location Dependency Status License Downloads

A images size checker use in pre-commit

Installation

npm install husky // use husky to run precommit script
npm install lint-staged // lint staged code and we hack this to check images size in staged as well
npm install img-size-checker

Precommit configuration

"precommit": "lint-staged",

Lint-staged configuration

"lint-staged": {
  "*.{jpg,png}": "img-size-checker 100" // size in kb
}

License

MIT

Package Sidebar

Install

npm i img-size-checker

Weekly Downloads

1

Version

1.1.7

License

MIT

Unpacked Size

3.45 kB

Total Files

5

Last publish

Collaborators

  • willworks