{"id":21525818,"url":"https://github.com/bkwld/vue-media-loader-directive","last_synced_at":"2025-03-17T18:19:58.024Z","repository":{"id":143926311,"uuid":"49972942","full_name":"BKWLD/vue-media-loader-directive","owner":"BKWLD","description":"Vue Directive preloads media depending on pixel density and viewport size","archived":false,"fork":false,"pushed_at":"2016-04-09T00:33:21.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-26T22:40:57.801Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","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/BKWLD.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}},"created_at":"2016-01-19T18:16:58.000Z","updated_at":"2016-08-19T04:55:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"a5ac63f7-5440-4e83-9a2a-ac9c35adc9d6","html_url":"https://github.com/BKWLD/vue-media-loader-directive","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BKWLD%2Fvue-media-loader-directive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BKWLD%2Fvue-media-loader-directive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BKWLD%2Fvue-media-loader-directive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BKWLD%2Fvue-media-loader-directive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BKWLD","download_url":"https://codeload.github.com/BKWLD/vue-media-loader-directive/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244085008,"owners_count":20395523,"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-24T01:38:35.970Z","updated_at":"2025-03-17T18:19:58.019Z","avatar_url":"https://github.com/BKWLD.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vue Media Loader Directive\n\nLoads \u003cimg\u003e or background image with multiple sources, depending on\nthe viewport width. Use the `:media` attribute to pass in an obj with keys\n`low`, `medium`, and `high` image sources.\n\nOnce the image is loaded, if will be set on the element and a class of\n`media-loaded` will be added.\n\nYou would use this package instead of, say, \n[PictureFill](https://github.com/scottjehl/picturefill) because there is a\nsingle API for dealing with both `img` tags and css background images.\n\n*Usage:*\n\n* Register the directive globally\n\n\t`Vue.directive 'media-loader', require 'vue-media-loader-directive'`\n\n* Single image source string. Just add this to any element you want to load\n\n\t`v-media-loader='/img/temp-project-marquee-low.png'`\n\n* Bundle of media sizes. Should be a JS object with keys `low`, `medium`, `high`\n\n\t`img(v-if='marquee' v-media-loader :media='[YOUR_OBJECT_REFERENCE]')`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbkwld%2Fvue-media-loader-directive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbkwld%2Fvue-media-loader-directive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbkwld%2Fvue-media-loader-directive/lists"}