{"id":14385152,"url":"https://github.com/pukhalski/tap","last_synced_at":"2025-08-23T18:31:32.175Z","repository":{"id":16433052,"uuid":"19184513","full_name":"pukhalski/tap","owner":"pukhalski","description":"1Kb library for easy unified handling of user interactions such as mouse, touch and pointer events.","archived":false,"fork":false,"pushed_at":"2024-10-15T01:56:59.000Z","size":85,"stargazers_count":528,"open_issues_count":10,"forks_count":45,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-08-09T17:17:09.545Z","etag":null,"topics":["delay","pointer-events","tap","touch","touch-events"],"latest_commit_sha":null,"homepage":"https://github.com/pukhalski/tap/archive/master.zip","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/pukhalski.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-26T18:05:12.000Z","updated_at":"2025-07-29T13:23:26.000Z","dependencies_parsed_at":"2022-09-11T05:04:27.367Z","dependency_job_id":null,"html_url":"https://github.com/pukhalski/tap","commit_stats":null,"previous_names":["pukhalski/tap.js"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/pukhalski/tap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pukhalski%2Ftap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pukhalski%2Ftap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pukhalski%2Ftap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pukhalski%2Ftap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pukhalski","download_url":"https://codeload.github.com/pukhalski/tap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pukhalski%2Ftap/sbom","scorecard":{"id":749303,"data":{"date":"2025-08-11","repo":{"name":"github.com/pukhalski/tap","commit":"86a3e3f26bc39facd13bc4f6730ecfe991c355b6"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":2,"reason":"Found 8/27 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 12 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T19:47:29.441Z","repository_id":16433052,"created_at":"2025-08-22T19:47:29.441Z","updated_at":"2025-08-22T19:47:29.441Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271762965,"owners_count":24816843,"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","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["delay","pointer-events","tap","touch","touch-events"],"created_at":"2024-08-28T18:01:59.455Z","updated_at":"2025-08-23T18:31:31.937Z","avatar_url":"https://github.com/pukhalski.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# TAP.JS [DEPRECATED]\n\n`Tap` is a Javascript library for easy unified handling of user interactions such as mouse, touch and pointer events.\n\n* No need to detect what kind of events are supported, `Tap` handles this for you\n* Small distribution size of 1Kb\n* Use fastest event types supported (majority of browsers has ~300ms delay between touch/pointer events and click). Every millisecond does really matter!\n\n## Installation\n\nIf you are using Bower:\n\n```\nbower install tap\n```\n\nFor npm users:\n\n```\nnpm install tapjs\n```\n\nOtherwise just [download the library](https://raw.githubusercontent.com/pukhalski/tap/master/dist/tap.min.js).\n\nInclude it anywhere in your html file (it does not matter where — in `\u003chead\u003e` or not):\n```html\n\u003cscript src=\"bower_components/tap/dist/tap.min.js\"\u003e\u003c/script\u003e\n```\n\n## Usage\n\nUsing `Tap` is super easy. Just handle the 'tap' event in a way you are familiar with:\n\n```javascript\ndocument.getElementById('any-element').addEventListener('tap', function (e) {\n    // All the magic happens here\n});\n```\n\n### With jQuery\n\n```javascript\n$('#any-element').on('tap', function (e) {\n    // All the magic happens here\n});\n```\n\n### With Zepto\n\n```javascript\n$('#any-element').on('tap', function (e) {\n    // All the magic happens here\n});\n```\n\n### With Dojo\n\n```javascript\nvar myButton = dojo.byId('any-element');\ndojo.connect(myButton, 'tap', function(e){\n    // All the magic happens here\n});\n```\n\n### With YUI\n\n```javascript\nYUI().use('event', 'node', function (Y) {\n    Y.one('#any-element').on('tap', function(e) {\n        // All the magic happens here\n    });\n});\n```\n\n### With ExtJS\n\n```javascript\nExt.get('any-element').on('tap', function (e) {\n    // All the magic happens here\n});\n```\n\n### With Meteor\n\nFirst, install Meteor package:\n\n`meteor add jimbog:tap`\n\nThen, the tap event is used just like any other event in Meteor, here is an example for\nan anchor element:\n\n```javascript\nTemplate.MyTemplate.events({\n    'tap a': function(evt, tmpl){\n        evt.preventDefault();\n        console.log('you tapped the link');\n    }\n})\n```\n\n### With Angular\n\nJust add the code below or `dist/tap.angular.js` to your project, and use `ng-tap` insted of `ng-click`. Do not forget add `ngTap` as a dependency.\n\n```javascript\nangular.module('ngTap', []).directive('ngTap', function() {\n    return function(scope, element, attrs) {\n        element.bind('tap', function() {\n            scope.$apply(attrs['ngTap'], element);\n        });\n    };\n});\n```\n\n### With Knockout\n\n`tap` is not in the list of known events for Knockout, so use custom event binding to handle `tap` event:\n\n```html\n\u003cbutton data-bind=\"event: {tap: onAddToCart}\"\u003eAdd to cart\u003c/button\u003e\n```\n\n## Browser Support\n\nTap was tested on the wide range of devices:\n\n* HTC T9295\n* iPhone 4, 5s\n* HTC Inspire 4G\n* Motorola Xoom\n* Nexus 4\n* Nexus 5\n* BlackBerry Bold 9800\n* Acer S7\n* Nokia Lumia 825\n* Nokia Lumia 800\n\nAnd browsers:\n\n* Android Browser 2+\n* BlackBerry Browser 6+\n* Chrome 31+\n* Firefox for Android\n* Firefox 24+\n* IE 9+\n* Mobile Chrome\n* Mobile Safari 5+\n* Opera 12+\n* Opera Mini\n* Safari 5+\n\nIt doesn't mean that all other platforms and browsers (or older versions of them) are not supported.\n\n## LICENSE\n\nTap is distributed under MIT license. Enjoy!\n\n\n[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/pukhalski/tap/trend.png)](https://bitdeli.com/free \"Bitdeli Badge\")\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpukhalski%2Ftap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpukhalski%2Ftap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpukhalski%2Ftap/lists"}