{"id":18074268,"url":"https://github.com/cijiugechu/napi-image-cli","last_synced_at":"2025-06-28T00:06:12.548Z","repository":{"id":65184910,"uuid":"585469606","full_name":"cijiugechu/napi-image-cli","owner":"cijiugechu","description":"An efficient cli tool that helps you compress and convert images, powered by @napi-rs/image","archived":false,"fork":false,"pushed_at":"2025-01-16T18:16:11.000Z","size":1139,"stargazers_count":6,"open_issues_count":11,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-20T17:12:45.654Z","etag":null,"topics":["avif","cli","compression","converter","image","napi-rs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/cijiugechu.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-01-05T08:51:48.000Z","updated_at":"2023-03-17T13:37:07.000Z","dependencies_parsed_at":"2023-02-15T21:15:31.301Z","dependency_job_id":"23560377-13bd-4de1-be23-070042e1f8f8","html_url":"https://github.com/cijiugechu/napi-image-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"jufuku-haijo/ts-lib-starter","purl":"pkg:github/cijiugechu/napi-image-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cijiugechu%2Fnapi-image-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cijiugechu%2Fnapi-image-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cijiugechu%2Fnapi-image-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cijiugechu%2Fnapi-image-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cijiugechu","download_url":"https://codeload.github.com/cijiugechu/napi-image-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cijiugechu%2Fnapi-image-cli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262352626,"owners_count":23297689,"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":["avif","cli","compression","converter","image","napi-rs"],"created_at":"2024-10-31T10:11:57.667Z","updated_at":"2025-06-28T00:06:12.486Z","avatar_url":"https://github.com/cijiugechu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# napi-image-cli\n\nAn efficient cli tool that helps you compress and convert images, powered by [@napi-rs/image](https://github.com/Brooooooklyn/Image).\n\nsee [example](./packages/playground/)\n\n## Installation\n```shell\nnpm install napi-image-cli --save-dev\n# or you use pnpm \npnpm add napi-image-cli -D\n```\n\n## Usage\nin your `package.json`, add following code to `scripts` field:\n```json\n//...\n{\n    \"image\": \"napi-image assets --type lossy --quality 75 --mode modern\"\n}\n//...\n```\nand run:\n```shell\nnpm run image\n```\n\n## Options\n\n| flag   |   default   | description   |\n| :--    | :--    | :--       |\n| --type [type] |   `lossless`  | specify type, `lossy` or `lossless` |\n| --quality [quality] |   75  | specify quality, ranges from 0 to 100 and controls the loss and quality during compression |\n| --mode [mode] |  `lazy`   | specify mode, `compat` mode means compatibility with browsers that don't support `avif`, i.e. transforming `avif` to `jpg` ; `modern` mode will transform all the formats to `avif`; `lazy` mode will do nothing about format transforming. |\n| --outDir [outDir] |  `dist/assets`   |   specify Specify the output directory (relative to project root).\n\n## License\n\nMIT \u0026copy; [nemurubaka](https://github.com/cijiugechu)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcijiugechu%2Fnapi-image-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcijiugechu%2Fnapi-image-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcijiugechu%2Fnapi-image-cli/lists"}