{"id":22490672,"url":"https://github.com/shwilliam/vue-direction","last_synced_at":"2025-04-12T19:36:05.691Z","repository":{"id":42216719,"uuid":"173419174","full_name":"shwilliam/vue-direction","owner":"shwilliam","description":"👋 Declarative, direction-aware hover in Vuejs","archived":false,"fork":false,"pushed_at":"2022-12-30T06:49:04.000Z","size":108,"stargazers_count":35,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T13:53:47.946Z","etag":null,"topics":["component","direction","hover","mouse","vue"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/vue-direction","language":"Vue","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/shwilliam.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":"2019-03-02T07:48:06.000Z","updated_at":"2025-02-28T03:02:41.000Z","dependencies_parsed_at":"2023-01-31T10:45:38.831Z","dependency_job_id":null,"html_url":"https://github.com/shwilliam/vue-direction","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shwilliam%2Fvue-direction","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shwilliam%2Fvue-direction/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shwilliam%2Fvue-direction/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shwilliam%2Fvue-direction/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shwilliam","download_url":"https://codeload.github.com/shwilliam/vue-direction/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248623234,"owners_count":21135210,"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":["component","direction","hover","mouse","vue"],"created_at":"2024-12-06T17:22:30.932Z","updated_at":"2025-04-12T19:36:05.664Z","avatar_url":"https://github.com/shwilliam.png","language":"Vue","funding_links":[],"categories":["Utilities [🔝](#readme)","Components \u0026 Libraries","Vue","Utilities"],"sub_categories":["Utilities","Miscellaneous"],"readme":"# vue-direction\n\n![Minified size](https://img.shields.io/bundlephobia/min/vue-direction.svg?style=plastic)\n\n\u003e Direction aware hover in Vuejs\n\n![Usage](https://user-images.githubusercontent.com/38357771/53678998-b326c680-3c94-11e9-8e4f-f65feee8651f.gif)\n\n[![Try it on codesandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/3x46lrlk1q)\n\n## Installation\n\nInstall the component via npm by running `npm i vue-direction` or `yarn add vue-direction`.\n\n## Usage\n\nImport, register and place the component in your Vue app.\n\n```html\n\u003ctemplate\u003e\n  \u003cVueDirection\u003e\n    \u003ctemplate slot-scope=\"{ mouseDirection }\"\u003e\n      \u003c!-- do something with 'mouseDirection' --\u003e\n      {{ mouseDirection.x }}\n      {{ mouseDirection.y }}\n    \u003c/template\u003e\n  \u003cVueDirection/\u003e\n\u003c/template\u003e\n```\n\n```js\nimport VueDirection from 'vue-direction'\n\nexport default {\n  components: {\n    VueDirection,\n  },\n}\n```\n\n## Dev\n\nRunning `dev` script requires @vue/cli and @vue/cli-service-global to be installed. Install these globally by running `npm i --g @vue/cli @vue/cli-service-global` or `yarn add global vue/cli @vue/cli-service-global`.\n\n## Contributing\n\nThis project is open to and encourages contributions! Feel free to discuss any bug fixes/features in the [issues](https://github.com/shwilliam/vue-direction/issues). If you wish to work on this project:\n\n1.  [Fork the project](https://github.com/shwilliam/vue-direction/archive/master.zip)\n2.  Create your feature branch (`git checkout -b new-feature-branch`)\n3.  Commit your changes (`git commit -am 'add new feature'`)\n4.  Push to the branch (`git push origin new-feature-branch`)\n5.  [Submit a pull request!](https://github.com/shwilliam/vue-direction/pull/new/master)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshwilliam%2Fvue-direction","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshwilliam%2Fvue-direction","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshwilliam%2Fvue-direction/lists"}