{"id":16760261,"url":"https://github.com/ryanve/avant","last_synced_at":"2025-03-16T09:16:32.673Z","repository":{"id":11525923,"uuid":"14009052","full_name":"ryanve/avant","owner":"ryanve","description":"Cross-browser JavaScript events module","archived":false,"fork":false,"pushed_at":"2014-09-19T12:17:03.000Z","size":244,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T21:51:20.742Z","etag":null,"topics":["event-listener","events","javascript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/avant","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ryanve.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-10-31T06:07:17.000Z","updated_at":"2023-08-08T21:08:05.000Z","dependencies_parsed_at":"2022-09-26T17:51:02.024Z","dependency_job_id":null,"html_url":"https://github.com/ryanve/avant","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/ryanve%2Favant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanve%2Favant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanve%2Favant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanve%2Favant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryanve","download_url":"https://codeload.github.com/ryanve/avant/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243847056,"owners_count":20357317,"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":["event-listener","events","javascript"],"created_at":"2024-10-13T04:22:55.107Z","updated_at":"2025-03-16T09:16:32.419Z","avatar_url":"https://github.com/ryanve.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# avant\n#### Cross-browser JavaScript events module\n\n```sh\n$ npm install avant --save\n```\n\n### Basic usage\n\n```js\nvar avant = require('avant');\navant.listen(document, 'click', function(event) {\n  console.log(event)\n});\n```\n\n## API\n\n### `avant.listen(node, type, listener)`\n- Add an event \u003cvar\u003elistener\u003c/var\u003e for the specified event \u003cvar\u003etype\u003c/var\u003e\n\n### `avant.unlisten(node, type, listener)`\n- Remove the event \u003cvar\u003elistener\u003c/var\u003e for the specified event \u003cvar\u003etype\u003c/var\u003e\n\n### `avant.support(type, node|tagname?)`\n- Detect if the \u003cvar\u003enode\u003c/var\u003e supports the event \u003cvar\u003etype\u003c/var\u003e\n- \u0026rarr; \u003cb\u003eboolean\u003c/b\u003e\n\n## License\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanve%2Favant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryanve%2Favant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanve%2Favant/lists"}