{"id":30060242,"url":"https://github.com/tiaanduplessis/xpel","last_synced_at":"2025-08-08T01:42:59.836Z","repository":{"id":57402124,"uuid":"93965917","full_name":"tiaanduplessis/xpel","owner":"tiaanduplessis","description":"♻️ Tiny single function event-emitter/pubsub","archived":false,"fork":false,"pushed_at":"2019-06-02T22:38:23.000Z","size":56,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-01T10:54:43.991Z","etag":null,"topics":["event-emitter","pubsub"],"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/tiaanduplessis.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-06-10T21:19:16.000Z","updated_at":"2022-05-30T09:52:02.000Z","dependencies_parsed_at":"2022-09-16T01:10:23.278Z","dependency_job_id":null,"html_url":"https://github.com/tiaanduplessis/xpel","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/tiaanduplessis/xpel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Fxpel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Fxpel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Fxpel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Fxpel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tiaanduplessis","download_url":"https://codeload.github.com/tiaanduplessis/xpel/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Fxpel/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269352285,"owners_count":24402672,"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-07T02:00:09.698Z","response_time":73,"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":["event-emitter","pubsub"],"created_at":"2025-08-08T01:42:47.656Z","updated_at":"2025-08-08T01:42:59.799Z","avatar_url":"https://github.com/tiaanduplessis.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"media/xpel.png\" alt=\"\"/\u003e\n\u003c/div\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003cstrong\u003eTiny single function event-emitter/pubsub\u003c/strong\u003e\n\u003c/div\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://npmjs.org/package/xpel\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/xpel.svg?style=flat-square\" alt=\"npm package version\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://npmjs.org/package/xpel\"\u003e\n  \u003cimg src=\"https://img.shields.io/npm/dm/xpel.svg?style=flat-square\" alt=\"npm downloads\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/feross/standard\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square\" alt=\"standard JS linter\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/prettier/prettier\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/styled_with-prettier-ff69b4.svg?style=flat-square\" alt=\"prettier code formatting\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://travis-ci.org/tiaanduplessis/xpel\"\u003e\n    \u003cimg src=\"https://img.shields.io/travis/tiaanduplessis/xpel.svg?style=flat-square\" alt=\"travis ci build status\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/tiaanduplessis/xpel/blob/master/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/l/xpel.svg?style=flat-square\" alt=\"project license\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"http://makeapullrequest.com\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square\" alt=\"make a pull request\" /\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://github.com/tiaanduplessis/xpel/watchers\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/watchers/tiaanduplessis/xpel.svg?style=social\" alt=\"Github Watch Badge\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/tiaanduplessis/xpel/stargazers\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/stars/tiaanduplessis/xpel.svg?style=social\" alt=\"Github Star Badge\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://twitter.com/intent/tweet?text=Check%20out%20xpel!%20https://github.com/tiaanduplessis/xpel%20%F0%9F%91%8D\"\u003e\n    \u003cimg src=\"https://img.shields.io/twitter/url/https/github.com/tiaanduplessis/xpel.svg?style=social\" alt=\"Tweet\" /\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\u003cdiv align=\"center\"\u003e\n  Built with ❤︎ by \u003ca href=\"https://github.com/tiaanduplessis\"\u003etiaanduplessis\u003c/a\u003e and \u003ca href=\"https://github.com/tiaanduplessis/xpel/contributors\"\u003econtributors\u003c/a\u003e\n\u003c/div\u003e\n\n\u003ch2\u003eTable of Contents\u003c/h2\u003e\n\u003cdetails\u003e\n  \u003csummary\u003eTable of Contents\u003c/summary\u003e\n  \u003cli\u003e\u003ca href=\"#install\"\u003eInstall\u003c/a\u003e\u003c/li\u003e\n  \u003cli\u003e\u003ca href=\"#usage\"\u003eUsage\u003c/a\u003e\u003c/li\u003e\n  \u003cli\u003e\u003ca href=\"#contribute\"\u003eContribute\u003c/a\u003e\u003c/li\u003e\n  \u003cli\u003e\u003ca href=\"#license\"\u003eLicense\u003c/a\u003e\u003c/li\u003e\n\u003c/details\u003e\n\n## Install\n\n```sh\n$ npm install xpel\n# OR\n$ yarn add xpel\n```\n\n## Usage\n\n```js\nconst xpel = require('xpel')\n\nconst emitter = xpel()\n\nemitter('foo', data =\u003e console.log('foo:', data))\nconst unsubBar = emitter('bar', data =\u003e console.log('bar:', data))\nemitter('bar', data =\u003e console.log('bar2:', data))\nconst unsubFoo = emitter('foo', data =\u003e console.log('foo2:', data))\n\n// listen to all events\nemitter('*', () =\u003e console.log('Things are happening!'))\n\n// Emit\nemitter('foo', 5)\n\n// unsub foo\nunsubFoo('foo')\n\nemitter('foo', 'nothing emitted')\nemitter('bar', 5)\n\n// unsub bar\nunsubBar('bar')\n\nemitter('bar', 'baz')\nemitter('foo', 'baz')\n\n// foo: 5\n// foo2: 5\n// Things are happening!\n// Things are happening!\n/// bar: 5\n// bar2: 5\n// Things are happening!\n// Things are happening!\n// Things are happening!\n\n```\n\n## Contributing\n\nContributions are welcome!\n\n1. Fork it.\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request :D\n\nOr open up [a issue](https://github.com/tiaanduplessis/xpel/issues).\n\n## License\n\nLicensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiaanduplessis%2Fxpel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftiaanduplessis%2Fxpel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiaanduplessis%2Fxpel/lists"}