{"id":15397071,"url":"https://github.com/drublic/pubsub","last_synced_at":"2025-04-15T22:30:40.096Z","repository":{"id":24648528,"uuid":"28058405","full_name":"drublic/PubSub","owner":"drublic","description":"A JS pub/sub implementation","archived":false,"fork":false,"pushed_at":"2017-02-19T14:48:08.000Z","size":12,"stargazers_count":43,"open_issues_count":0,"forks_count":5,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-11T09:56:06.979Z","etag":null,"topics":["events","javascript","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/drublic.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":"2014-12-15T22:04:08.000Z","updated_at":"2022-07-14T11:40:48.000Z","dependencies_parsed_at":"2022-08-23T05:01:15.874Z","dependency_job_id":null,"html_url":"https://github.com/drublic/PubSub","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drublic%2FPubSub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drublic%2FPubSub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drublic%2FPubSub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drublic%2FPubSub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drublic","download_url":"https://codeload.github.com/drublic/PubSub/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249165849,"owners_count":21223333,"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","javascript","pubsub"],"created_at":"2024-10-01T15:36:06.766Z","updated_at":"2025-04-15T22:30:39.832Z","avatar_url":"https://github.com/drublic.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PubSub - vanilla-pubsub\n\nPubSub is a JS implementation of a publication/subscription pattern in JS\nusing vanilla JS.\n\n[![Build Status](https://api.travis-ci.org/drublic/PubSub.svg)](http://travis-ci.org/drublic/PubSub)\n[![Coverage Status](https://coveralls.io/repos/drublic/PubSub/badge.svg?branch=master)](https://coveralls.io/r/drublic/PubSub?branch=master)\n\n## Install\n\n    npm install --save vanilla-pubsub\n\n## Usage\n\nSubscribe\n\n    PubSub.subscribe('App.loaded', function () {});\n    PubSub.subscribe('App.done', [App.loadStack, App.clock]);\n    PubSub.subscribe(['App.undo', 'App.redo'], App.change);\n\nUnsubscribe\n\n    PubSub.unsubscribe('App.done', App.loadStack);\n    PubSub.unsubscribe(['App.undo', 'App.redo'], App.change);\n\nPublish\n\n    PubSub.publish('App.loaded');\n    PubSub.publish('App.loaded', { data: App.data });\n    PubSub.publish(['App.undo', 'App.redo']);\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrublic%2Fpubsub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrublic%2Fpubsub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrublic%2Fpubsub/lists"}