Skip to content

Commit

Permalink
change project url
Browse files Browse the repository at this point in the history
  • Loading branch information
Emman committed Mar 21, 2023
1 parent 660bdfc commit 652a66d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 7 additions & 3 deletions README.md
Expand Up @@ -3,12 +3,13 @@
Mubsub is a pub/sub implementation for Node.js and MongoDB. It utilizes Mongo's capped collections and tailable cursors to notify subscribers of inserted documents that match a given query. It supports mongodb driver 5.x and mongodb 6.x now.

[![NPM](https://img.shields.io/npm/v/mubsub-es.svg?style=flat)](http://npm.im/mubsub-es)
[![Run tests](https://github.com/emmansun/mubsub/actions/workflows/ci.yml/badge.svg)](https://github.com/emmansun/mubsub/actions/workflows/ci.yml)
[![Run tests](https://github.com/emmansun/mubsub-es/actions/workflows/ci.yml/badge.svg)](https://github.com/emmansun/mubsub-es/actions/workflows/ci.yml)
[![NPM Downloads][npm-downloads-image]][npm-url]

## Example

```javascript
var mubsub = require('mubsub');
var mubsub = require('mubsub-es');

var client = mubsub('mongodb://localhost:27017/mubsub_example');
var channel = client.channel('test');
Expand Down Expand Up @@ -36,7 +37,7 @@ channel.publish('baz', 'baz');
You can pass a Db instance or a URI string. For more information about the URI format visit [http://mongodb.github.io/node-mongodb-native/driver-articles/mongoclient.html](http://mongodb.github.io/node-mongodb-native/driver-articles/mongoclient.html)

```javascript
var mubsub = require('mubsub');
var mubsub = require('mubsub-es');

// Using a URI
var client = mubsub('mongodb://localhost:27017/mubsub_example', [options]);
Expand Down Expand Up @@ -131,3 +132,6 @@ You can optionally specify the MongoDB URI to be used for tests:
## Projects using mubsub

- [simpleio](https://github.com/kof/simpleio) Simple long polling based communication.

[npm-downloads-image]: https://badgen.net/npm/dm/mubsub-es
[npm-url]: https://npmjs.org/package/mubsub-es
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -2,7 +2,7 @@
"name": "mubsub-es",
"version": "1.2.0",
"description": "Pub/sub for Node.js and MongoDB, updated for mongodb 4.x, 5.x, 6.x and fix some deprecated usages by emman sun",
"homepage": "https://github.com/emmansun/mubsub",
"homepage": "https://github.com/emmansun/mubsub-es",
"author": "Scott Nelson <scott@scttnlsn.com>",
"license": "MIT",
"main": "./lib/index",
Expand All @@ -29,7 +29,7 @@
],
"repository": {
"type": "git",
"url": "git://github.com/emmansun/mubsub.git"
"url": "git://github.com/emmansun/mubsub-es.git"
},
"dependencies": {
"mongodb": "^5.1.0"
Expand Down

0 comments on commit 652a66d

Please sign in to comment.