{"id":20725323,"url":"https://github.com/l-chris/v-webp","last_synced_at":"2025-06-30T22:34:45.410Z","repository":{"id":57398607,"uuid":"133392836","full_name":"L-Chris/v-webp","owner":"L-Chris","description":"vue directive, use webp if support","archived":false,"fork":false,"pushed_at":"2018-05-19T09:41:40.000Z","size":185,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-09T00:38:40.609Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/L-Chris.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-05-14T16:43:38.000Z","updated_at":"2018-05-19T09:41:34.000Z","dependencies_parsed_at":"2022-09-12T06:01:57.373Z","dependency_job_id":null,"html_url":"https://github.com/L-Chris/v-webp","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/L-Chris/v-webp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/L-Chris%2Fv-webp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/L-Chris%2Fv-webp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/L-Chris%2Fv-webp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/L-Chris%2Fv-webp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/L-Chris","download_url":"https://codeload.github.com/L-Chris/v-webp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/L-Chris%2Fv-webp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262862350,"owners_count":23376404,"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-11-17T04:18:22.220Z","updated_at":"2025-06-30T22:34:45.380Z","avatar_url":"https://github.com/L-Chris.png","language":"JavaScript","readme":"\u003ch1 align=\"center\"\u003e\n  v-webp-next\n\u003c/h1\u003e\n\n## ✨ Features:\n\n- use webp when supported\n- support background-image and img\n\n## 🔧 Installation\n\n### NPM\n\n```bash\nnpm install v-webp-next --save\n```\n### YARN\n\n```bash\nyarn add v-webp-next\n```\n\n## 📦 Usage\n\n```js\n// install\nimport VWebp from 'v-webp-next'\nVue.use(VWebp)\n\n// nromal use with img\n\u003cimg v-webp=\"./static/img/test.jpg\"/\u003e\n\u003cimg v-webp=\"require('./assets/test.jpg')\"/\u003e\n\u003cimg v-webp=\"[require('./assets/test.jpg'), require('./assets/test.webp')]\"/\u003e\n\n// add modifier .bg when use image in background-image property\n\u003cdiv v-webp.bg=\"[require('./assets/test.jpg'), require('./assets/test.webp')]\"\u003e\u003c/div\u003e\n\u003cdiv v-webp.bg=\"./static/img/test.jpg\"\u003e\u003c/div\u003e\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fl-chris%2Fv-webp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fl-chris%2Fv-webp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fl-chris%2Fv-webp/lists"}