{"id":27629492,"url":"https://github.com/kn0wn/vue-cosha","last_synced_at":"2026-03-08T10:37:42.039Z","repository":{"id":54848619,"uuid":"247335854","full_name":"kn0wn/vue-cosha","owner":"kn0wn","description":"🎨 A vue directive for the cosha library","archived":false,"fork":false,"pushed_at":"2022-01-17T09:04:49.000Z","size":606,"stargazers_count":81,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-23T15:17:35.956Z","etag":null,"topics":["directive","tiny","vue"],"latest_commit_sha":null,"homepage":"","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/kn0wn.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":"2020-03-14T18:57:25.000Z","updated_at":"2024-12-02T18:30:25.000Z","dependencies_parsed_at":"2022-08-14T04:40:41.215Z","dependency_job_id":null,"html_url":"https://github.com/kn0wn/vue-cosha","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kn0wn%2Fvue-cosha","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kn0wn%2Fvue-cosha/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kn0wn%2Fvue-cosha/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kn0wn%2Fvue-cosha/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kn0wn","download_url":"https://codeload.github.com/kn0wn/vue-cosha/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250457777,"owners_count":21433734,"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":["directive","tiny","vue"],"created_at":"2025-04-23T15:17:41.999Z","updated_at":"2026-03-08T10:37:41.988Z","avatar_url":"https://github.com/kn0wn.png","language":"JavaScript","funding_links":[],"categories":["Components \u0026 Libraries","UI Components [🔝](#readme)"],"sub_categories":["UI Components"],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"sample.jpg\" width=\"450\"\u003e\n\u003c/p\u003e\n\n# vue-cosha\n\n[![latest version on npm](https://img.shields.io/npm/v/vue-cosha)](https://www.npmjs.com/package/vue-cosha) [![npm downloads a month](https://img.shields.io/npm/dm/vue-cosha)](https://www.npmjs.com/package/vue-cosha) [![bundlephobia minified size](https://badgen.net/bundlephobia/min/vue-cosha)](https://bundlephobia.com/result?p=vue-cosha@0.1.1)\n\nVue cosha is a simple port of the [cosha](https://github.com/robinloeffel/cosha) library for ease of use in Vue projects.\n\n\u003e \"Colorful shadows for your images. 🎨\"\n\n[cosha](https://npm.robinloeffel.ch/cosha) lets you add **co**lorful **sha**dows to your images. Try it out and look for yourself—the bundle is less than 2kb and it couldn't be easier to use!\n\n## How\n\n```\nnpm i vue-cosha\n```\n\n```js\nimport Vue from \"vue\";\nimport VueCosha from \"vue-cosha\";\n\nVue.use(VueCosha);\n```\n\n```vue\n\u003c!-- regular old img tag --\u003e\n\u003ctemplate\u003e\n  \u003cimg src=\"my-dope-pic.jpg\" alt=\"mmmhm\" v-cosha /\u003e\n\u003c/template\u003e\n```\n\n## Nuxt\n\n```\nnpm i vue-cosha\n```\n\nCreate a file called `vue-chosha.js` in your plugins folder with the following inside\n\n```js\nimport Vue from \"vue\";\nimport VueCosha from \"vue-cosha\";\n\nVue.use(VueCosha);\n```\n\nRegister the plugin in your `nuxt.config.js`\n\n```js\nplugins: [\n    '~/plugins/vue-cosha'\n],\n```\n\n## Config\n\nEverything in the config is optional. The default values are:\n\n```js\nimport VueCosha from \"vue-cosha\";\n\nVue.use(VueCosha, {\n  blur: \"5px\",\n  brightness: 1,\n  saturation: 1,\n  x: 0,\n  y: 0\n});\n```\n\nYou can also add options in the directive to change for that specific element\n\n```vue\nv-cosha=\"{ blur: '15px' }\"\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkn0wn%2Fvue-cosha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkn0wn%2Fvue-cosha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkn0wn%2Fvue-cosha/lists"}