{"id":16832673,"url":"https://github.com/zswang/h5emitter","last_synced_at":"2025-03-18T00:49:56.084Z","repository":{"id":57260029,"uuid":"90609168","full_name":"zswang/h5emitter","owner":"zswang","description":"event emitter function","archived":false,"fork":false,"pushed_at":"2017-11-01T07:09:46.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T00:14:38.508Z","etag":null,"topics":["emitter","event"],"latest_commit_sha":null,"homepage":null,"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/zswang.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":"2017-05-08T09:18:10.000Z","updated_at":"2019-04-16T15:44:16.000Z","dependencies_parsed_at":"2022-08-25T01:52:13.086Z","dependency_job_id":null,"html_url":"https://github.com/zswang/h5emitter","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zswang%2Fh5emitter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zswang%2Fh5emitter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zswang%2Fh5emitter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zswang%2Fh5emitter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zswang","download_url":"https://codeload.github.com/zswang/h5emitter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244135897,"owners_count":20403797,"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":["emitter","event"],"created_at":"2024-10-13T11:50:00.889Z","updated_at":"2025-03-18T00:49:56.064Z","avatar_url":"https://github.com/zswang.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"h5emitter\n-----------\n\n# [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coverage-image]][coverage-url]\n\nemitter event function.\n\n## Install 安装\n\n```sh\n$ npm install --save h5emitter\n```\n\n## Usage 使用方法\n\n### 绑定和触发事件 bind and trigger events\n\n```js\nvar emitter = new h5emitter.Emitter()\n\nemitter.on('update', function (value) {\n  console.log(value)\n})\n\nemitter.emit('update', 'hello')\n```\n\n## License\n\nMIT © [zswang](http://weibo.com/zswang)\n\n[npm-url]: https://npmjs.org/package/h5emitter\n[npm-image]: https://badge.fury.io/js/h5emitter.svg\n[travis-url]: https://travis-ci.org/zswang/h5emitter\n[travis-image]: https://travis-ci.org/zswang/h5emitter.svg?branch=master\n[coverage-url]: https://coveralls.io/github/zswang/h5emitter?branch=master\n[coverage-image]: https://coveralls.io/repos/zswang/h5emitter/badge.svg?branch=master\u0026service=github","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzswang%2Fh5emitter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzswang%2Fh5emitter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzswang%2Fh5emitter/lists"}