{"id":16897776,"url":"https://github.com/behnammodi/xwiper","last_synced_at":"2025-03-22T09:31:52.538Z","repository":{"id":41436170,"uuid":"146246016","full_name":"behnammodi/xwiper","owner":"behnammodi","description":"swipe handler","archived":false,"fork":false,"pushed_at":"2023-03-04T03:18:55.000Z","size":311,"stargazers_count":25,"open_issues_count":3,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-29T10:08:34.970Z","etag":null,"topics":["javascript"],"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/behnammodi.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}},"created_at":"2018-08-27T04:14:48.000Z","updated_at":"2023-05-12T17:43:07.000Z","dependencies_parsed_at":"2023-02-06T11:16:37.571Z","dependency_job_id":null,"html_url":"https://github.com/behnammodi/xwiper","commit_stats":{"total_commits":22,"total_committers":4,"mean_commits":5.5,"dds":"0.18181818181818177","last_synced_commit":"5a9a7647bf3ed5d1cda58854bf0b97bf3fb63f32"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/behnammodi%2Fxwiper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/behnammodi%2Fxwiper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/behnammodi%2Fxwiper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/behnammodi%2Fxwiper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/behnammodi","download_url":"https://codeload.github.com/behnammodi/xwiper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244937751,"owners_count":20535124,"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":["javascript"],"created_at":"2024-10-13T17:39:46.298Z","updated_at":"2025-03-22T09:31:52.519Z","avatar_url":"https://github.com/behnammodi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Xwiper\n\n[![NPM](https://nodei.co/npm/xwiper.png)](https://nodei.co/npm/xwiper/)\n\n[![install size](https://packagephobia.now.sh/badge?p=xwiper)](https://packagephobia.now.sh/result?p=keal) [![dependencies](https://david-dm.org/uxitten/xwiper.svg)](https://david-dm.org/uxitten/xwiper.svg)\n\n\u003ca href=\"https://www.npmjs.com/package/xwiper\"\u003e\n  \u003cimg src=\"https://img.shields.io/npm/v/xwiper.svg\" alt=\"Version\"\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://www.npmjs.com/package/xwiper\"\u003e\n  \u003cimg src=\"https://img.shields.io/npm/l/xwiper.svg\" alt=\"License\"\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://www.npmjs.com/package/xwiper\"\u003e\n  \u003cimg src=\"https://img.shields.io/npm/dm/xwiper.svg\" alt=\"Downloads\"\u003e\n\u003c/a\u003e\n\nSwipe handler, support all browser\n\n# Install\n\n```npm\nnpm install xwiper --save\n```\n\n# How to use\n\n```javascript\nimport Xwiper from 'xwiper';\n\nconst xwiper = new Xwiper('.slider');\n\nxwiper.onSwipeLeft(() =\u003e console.log('swipe left'));\n\nxwiper.onSwipeRight(() =\u003e console.log('swipe right'));\n\nxwiper.onSwipeUp(() =\u003e console.log('swipe up'));\n\nxwiper.onSwipeDown(() =\u003e console.log('swipe down'));\n\nxwiper.onTap(() =\u003e console.log('tap'));\n\n// Remove listener\nxwiper.destroy();\n```\n\n# Advance\n\nYou can use element instance\n\n```javascript\nconst slider = document.querySelector('.slider');\nconst xwiper = new Xwiper(slider);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbehnammodi%2Fxwiper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbehnammodi%2Fxwiper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbehnammodi%2Fxwiper/lists"}