{"id":29275857,"url":"https://github.com/peterroe/vue-img-lazy-tiny","last_synced_at":"2025-09-19T20:19:32.152Z","repository":{"id":42064250,"uuid":"475903281","full_name":"peterroe/vue-img-lazy-tiny","owner":"peterroe","description":"A Tiny img lazy load vue directive","archived":false,"fork":false,"pushed_at":"2023-12-15T05:22:41.000Z","size":260,"stargazers_count":5,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-12T17:17:51.365Z","etag":null,"topics":["lazy-load-img","vue-directive","vue3"],"latest_commit_sha":null,"homepage":"","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/peterroe.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null},"funding":{"patreon":"peterroe"}},"created_at":"2022-03-30T13:57:35.000Z","updated_at":"2023-03-04T03:23:04.000Z","dependencies_parsed_at":"2024-01-02T23:28:45.638Z","dependency_job_id":"b095bf3d-c88e-4f47-9475-bbc18ab8c3b5","html_url":"https://github.com/peterroe/vue-img-lazy-tiny","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/peterroe/vue-img-lazy-tiny","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterroe%2Fvue-img-lazy-tiny","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterroe%2Fvue-img-lazy-tiny/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterroe%2Fvue-img-lazy-tiny/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterroe%2Fvue-img-lazy-tiny/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peterroe","download_url":"https://codeload.github.com/peterroe/vue-img-lazy-tiny/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterroe%2Fvue-img-lazy-tiny/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263699785,"owners_count":23497963,"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":["lazy-load-img","vue-directive","vue3"],"created_at":"2025-07-05T07:11:21.172Z","updated_at":"2025-09-19T20:19:27.097Z","avatar_url":"https://github.com/peterroe.png","language":"TypeScript","funding_links":["https://patreon.com/peterroe"],"categories":["Components \u0026 Libraries"],"sub_categories":["UI Components"],"readme":"## vue-img-lazy-tiny\n\nA Tiny img lazy load `vue directive`\n\n\u003ca href=\"http://img.badgesize.io/https://unpkg.com/vue-img-lazy-tiny?compression=gzip\u0026label=gzip%20size:%20JS\"\u003e\n    \u003cimg src=\"http://img.badgesize.io/https://unpkg.com/vue-img-lazy-tiny?compression=gzip\u0026label=gzip%20size:%20JS\"\u003e\n\u003c/a\u003e\n\n## Usage\n\nInstall it with `npm` or other package manager\n\n```shell\n$ npm install vue-img-lazy-tiny\n```\n\nRegister vue directive\n\n```ts\nimport vilt from 'vue-img-lazy-tiny'\n\ncreateApp(App)\n  .use(vilt)     // install vilt\n  .mount('#app')\n```\n\nUse it in your template, your image will be lazy loaded.\n\n```html\n\u003ctemplate\u003e\n  \u003cdiv class=\"demo\"\u003e\n    \u003cimg\n      v-for=\"it in 20\"\n      :key=\"it\"\n      v-lazy=\"'https://unsplash.it/1600/900?random=' + Math.random()\"\n      alt=\"img\" /\u003e\n  \u003c/div\u003e\n\u003c/template\u003e\n```\n\n## Preview\n\nThe directive will provide a sheild element to cover the original image, and a loading spinner.\n\n\u003chttps://peterroe.github.io/vue-img-lazy-tiny/\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterroe%2Fvue-img-lazy-tiny","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeterroe%2Fvue-img-lazy-tiny","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterroe%2Fvue-img-lazy-tiny/lists"}