{"id":13782535,"url":"https://github.com/arnellebalane/parcel-plugin-data-src","last_synced_at":"2025-09-02T23:38:04.366Z","repository":{"id":56263917,"uuid":"160008624","full_name":"arnellebalane/parcel-plugin-data-src","owner":"arnellebalane","description":"ParcelJS plugin to bundle resources defined in data-* attributes","archived":false,"fork":false,"pushed_at":"2020-11-17T20:37:26.000Z","size":176,"stargazers_count":9,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T19:08:19.129Z","etag":null,"topics":["hacktoberfest","npm-package","parcel","parceljs-plugin"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/parcel-plugin-data-src","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/arnellebalane.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":"2018-12-02T03:05:57.000Z","updated_at":"2022-10-27T07:07:07.000Z","dependencies_parsed_at":"2022-08-15T15:40:33.816Z","dependency_job_id":null,"html_url":"https://github.com/arnellebalane/parcel-plugin-data-src","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/arnellebalane/parcel-plugin-data-src","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnellebalane%2Fparcel-plugin-data-src","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnellebalane%2Fparcel-plugin-data-src/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnellebalane%2Fparcel-plugin-data-src/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnellebalane%2Fparcel-plugin-data-src/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arnellebalane","download_url":"https://codeload.github.com/arnellebalane/parcel-plugin-data-src/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnellebalane%2Fparcel-plugin-data-src/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273367403,"owners_count":25092862,"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","status":"online","status_checked_at":"2025-09-02T02:00:09.530Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["hacktoberfest","npm-package","parcel","parceljs-plugin"],"created_at":"2024-08-03T18:01:38.688Z","updated_at":"2025-09-02T23:38:04.300Z","avatar_url":"https://github.com/arnellebalane.png","language":"JavaScript","funding_links":[],"categories":["Plugins"],"sub_categories":["Other"],"readme":"# parcel-plugin-data-src\n\nParcelJS plugin to bundle resources defined in `data-src` and `data-srcset`\nattributes.\n\nThis is particularly useful when doing lazyloading of images, which doesn't\ndirectly place the image path in the `src` attribute.\n\n\n## Installation\n\n```bash\n$ npm install --save-dev parcel-plugin-data-src\n```\n\n\n## Example\n\n```html\n\u003cpicture\u003e\n  \u003csource\n    data-srcset=\"\n      ./images/image-lg.webp 1000w,\n      ./images/image-md.webp 500w,\n      ./images/image-sm.webp 250w\"\n    sizes=\"100vw\"\n    type=\"image/webp\"\n  \u003e\n  \u003cimg\n    data-srcset=\"\n      ./images/image-lg.jpg 1000w,\n      ./images/image-md.jpg 500w,\n      ./images/image-sm.jpg 250w\"\n    sizes=\"100vw\"\n    data-src=\"./images/image-lg.jpg\"\n    src=\"./images/image-placeholder.jpg\"\n  \u003e\n\u003c/picture\u003e\n```\n\nBy default, Parcel will only bundle `./images/image-placeholder.jpg` since it's\ndefined in the `src` attribute.\n\nUsing this plugin, the following resosurces that are defined in `data-srcset`\nand `data-src` will also be bundled.\n\n- `./images/image-lg.webp`\n- `./images/image-md.webp`\n- `./images/image-sm.webp`\n- `./images/image-lg.jpg`\n- `./images/image-md.jpg`\n- `./images/image-sm.jpg`\n\n## License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farnellebalane%2Fparcel-plugin-data-src","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farnellebalane%2Fparcel-plugin-data-src","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farnellebalane%2Fparcel-plugin-data-src/lists"}