{"id":15923823,"url":"https://github.com/gobeli/rollup-plugin-sharp","last_synced_at":"2026-01-21T14:03:42.942Z","repository":{"id":38970705,"uuid":"205157235","full_name":"gobeli/rollup-plugin-sharp","owner":"gobeli","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-04T08:26:56.000Z","size":628,"stargazers_count":1,"open_issues_count":16,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-08T08:53:24.653Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gobeli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-29T12:19:13.000Z","updated_at":"2021-12-12T01:38:42.000Z","dependencies_parsed_at":"2022-08-19T14:30:51.802Z","dependency_job_id":null,"html_url":"https://github.com/gobeli/rollup-plugin-sharp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gobeli/rollup-plugin-sharp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gobeli%2Frollup-plugin-sharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gobeli%2Frollup-plugin-sharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gobeli%2Frollup-plugin-sharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gobeli%2Frollup-plugin-sharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gobeli","download_url":"https://codeload.github.com/gobeli/rollup-plugin-sharp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gobeli%2Frollup-plugin-sharp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28634787,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-10-06T21:02:31.669Z","updated_at":"2026-01-21T14:03:42.925Z","avatar_url":"https://github.com/gobeli.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rollup-plugin-sharp\n\nA rollup plugin which scales and moves images to enable [gatsby-image](https://www.gatsbyjs.org/packages/gatsby-image/)-like image lazy-loading\n\n## Usage\n\n**Config**\n\n```js\nimport sharp from 'rollup-plugin-sharp'\n\nexport default {\n    ...\n    plugins: [\n        ...\n        sharp({\n            include: [\"**/*.jpg\"], // defaults to .png, .jpg and .gif files\n            fileName: \"[hash][extname]\" // defaults to [name].[hash][extname]\n        })\n    ]\n}\n```\n\n**Import**\n\n```js\nimport image from \"./image.jpg\";\n\nconsole.log(image.src); // public url to image i.e: image.ff84eb7eb7196ae2.jpg\nconsole.log(image.placeholder); // data-url placeholder image, i.e: data:image/png;base64,iVBORw0KGgoAAAANSUhEU...\nconsole.log(image.width); // height of the image in pixels, i.e 1024\nconsole.log(image.height); // width of the image in pixels, i.e 1024\n```\n\n## Options\n\n| Name          | Type                                       | Description                                                                      |\n| ------------- | ------------------------------------------ | -------------------------------------------------------------------------------- |\n| include       | `string \\| RegExp \\| (string \\| RegExp)[]` | files to include                                                                 |\n| exclude       | `string \\| RegExp \\| (string \\| RegExp)[]` | files to exclude                                                                 |\n| publicPath    | `string`                                   | public path for the `src` attribute                                              |\n| destDir       | `string`                                   | destination of the processed image files                                         |\n| minifiedWidth | `string`                                   | width of the minified placeholder image                                          |\n| fileName      | `string`                                   | template for the exported file names, accepts `[name]`, `[hash]` and `[extname]` |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgobeli%2Frollup-plugin-sharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgobeli%2Frollup-plugin-sharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgobeli%2Frollup-plugin-sharp/lists"}