{"id":21937642,"url":"https://github.com/cap32/subscribable-lite","last_synced_at":"2026-04-12T15:47:39.540Z","repository":{"id":88318994,"uuid":"71860584","full_name":"Cap32/subscribable-lite","owner":"Cap32","description":"Super lightweight Subscribe/Publish event system for Node.js and browser","archived":false,"fork":false,"pushed_at":"2017-10-08T09:11:06.000Z","size":93,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-27T13:48:28.357Z","etag":null,"topics":["events","publish-subscribe","subscribe","tiny"],"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/Cap32.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-25T04:50:47.000Z","updated_at":"2017-10-08T09:13:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"2c020bd7-f7d1-4d7c-afc5-9e57fef34e24","html_url":"https://github.com/Cap32/subscribable-lite","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cap32%2Fsubscribable-lite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cap32%2Fsubscribable-lite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cap32%2Fsubscribable-lite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cap32%2Fsubscribable-lite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cap32","download_url":"https://codeload.github.com/Cap32/subscribable-lite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244967875,"owners_count":20540026,"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":["events","publish-subscribe","subscribe","tiny"],"created_at":"2024-11-29T01:21:06.298Z","updated_at":"2026-04-12T15:47:34.485Z","avatar_url":"https://github.com/Cap32.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# subscribable-lite\n\n[![Build Status](https://travis-ci.org/Cap32/subscribable-lite.svg?branch=master)](https://travis-ci.org/Cap32/subscribable-lite) [![Coverage Status](https://coveralls.io/repos/github/Cap32/subscribable-lite/badge.svg?branch=master)](https://coveralls.io/github/Cap32/subscribable-lite?branch=master)\n\nSuper Light weight Subscribe/Publish event system for Node.js and browser. (UMD version only 395B after gzipped)\n\n## Installing\n\nUsing npm:\n\n```bash\n$ npm install subscribable-lite\n```\n\nUsing yarn:\n\n```bash\n$ yarn add subscribable-lite\n```\n\n## Usage\n\nsub.subscribe(handler)\n\nsub.publish([arg[, ...]])\n\n```js\nimport SubLite from 'subscribable-lite';\n\nconst sub = new SubLite();\n\nsub.subscribe((a, b, c) =\u003e {\n    console.log(a, b, c); // =\u003e 'you are awesome'\n});\nsub.publish('you', 'are', 'awesome');\n```\n\nsub.unsubscribe([handler])\n\n```js\nconst unsubscribe = sub.subscribe((a, b, c) =\u003e {\n    console.log(a, b, c); // =\u003e 'will not trigger'\n});\n\nunsubscribe();\n/* or `sub.unsubscribe();` */\n\nsub.publish('you', 'are', 'awesome');\n```\n\n## License\n\nMIT (c) Christopher Peng (Cap32)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcap32%2Fsubscribable-lite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcap32%2Fsubscribable-lite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcap32%2Fsubscribable-lite/lists"}