{"id":23629779,"url":"https://github.com/willworks/img-size-checker","last_synced_at":"2025-11-08T03:30:34.044Z","repository":{"id":57272543,"uuid":"97839533","full_name":"willworks/img-size-checker","owner":"willworks","description":"images size checker use in pre-commit","archived":false,"fork":false,"pushed_at":"2018-02-10T11:15:04.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-28T05:46:40.847Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/willworks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-20T13:37:19.000Z","updated_at":"2017-09-03T08:27:33.000Z","dependencies_parsed_at":"2022-09-04T04:52:05.643Z","dependency_job_id":null,"html_url":"https://github.com/willworks/img-size-checker","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willworks%2Fimg-size-checker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willworks%2Fimg-size-checker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willworks%2Fimg-size-checker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willworks%2Fimg-size-checker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willworks","download_url":"https://codeload.github.com/willworks/img-size-checker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239547410,"owners_count":19657148,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-28T01:18:11.868Z","updated_at":"2025-02-18T20:40:55.213Z","avatar_url":"https://github.com/willworks.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# img-size-checker\n\n[![NPM version][npm-image]][npm-url]\n[![github location][github-tag]][github-url]\n[![Dependency Status][david-image]][david-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\nA images size checker use in pre-commit\n\n## Installation\n```js\nnpm install husky // use husky to run precommit script\nnpm install lint-staged // lint staged code and we hack this to check images size in staged as well\nnpm install img-size-checker\n```\n\n## Precommit configuration\n```js\n\"precommit\": \"lint-staged\",\n```\n\n## Lint-staged configuration\n```js\n\"lint-staged\": {\n  \"*.{jpg,png}\": \"img-size-checker 100\" // size in kb\n}\n```\n\n## License\n\n  MIT\n\n[npm-image]: https://img.shields.io/npm/v/img-size-checker.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/img-size-checker\n[github-tag]: http://img.shields.io/github/tag/willworks/img-size-checker.svg?style=flat-square\n[github-url]: https://github.com/willworks/img-size-checker/tags\n[david-image]: http://img.shields.io/david/willworks/img-size-checker.svg?style=flat-square\n[david-url]: https://david-dm.org/willworks/img-size-checker\n[license-image]: http://img.shields.io/npm/l/img-size-checker.svg?style=flat-square\n[license-url]: LICENSE\n[downloads-image]: http://img.shields.io/npm/dm/img-size-checker.svg?style=flat-square\n[downloads-url]: https://npmjs.org/package/img-size-checker","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillworks%2Fimg-size-checker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillworks%2Fimg-size-checker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillworks%2Fimg-size-checker/lists"}