Skip to content

willworks/img-size-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

images size checker use in pre-commit

Resources

License

Stars

Watchers

Forks

Packages

No packages published