Skip to content

Commit

Permalink
update name to windowpubsub
Browse files Browse the repository at this point in the history
  • Loading branch information
griffithtp committed May 12, 2020
1 parent 38b6f86 commit fa5b0e8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
localpubsub
windowpubsub
===

Simple pubsub lightweight library using Window event listener and storage event.
Simple and lightweight Pub/Sub library using Window event listener and storage event with zero dependencies.

This enable applications to subscribe to events across different windows or tabs.
Some use cases are for shopping carts updates or theme switching.

#### Subscribing
`subscribe(topic, callbackFunction);`
Expand Down Expand Up @@ -31,4 +34,4 @@ const subscription = localpubsub.subscribe(topic, displayMessage);
subscription.unsubscribe();
localpubsub.unsubscribe(topic);
```
```
14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
{
"name": "localpubsub",
"version": "0.0.1",
"name": "windowpubsub",
"version": "0.0.2",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/griffithtp/localpubsub.git"
"url": "git+https://github.com/griffithtp/windowpubsub.git"
},
"keywords": [
"windowpubsub",
"pubsub",
"localstorage"
"localstorage",
"localStorage subscription"
],
"author": "griffithtp",
"license": "MIT",
"bugs": {
"url": "https://github.com/griffithtp/localpubsub/issues"
"url": "https://github.com/griffithtp/widowpubsub/issues"
},
"homepage": "https://github.com/griffithtp/localpubsub#readme"
"homepage": "https://github.com/griffithtp/windowpubsub#readme"
}

0 comments on commit fa5b0e8

Please sign in to comment.