From 652a66d282e6fd9ce02878f0f9126f608632fee2 Mon Sep 17 00:00:00 2001 From: Emman Date: Tue, 21 Mar 2023 08:43:32 +0800 Subject: [PATCH] change project url --- README.md | 10 +++++++--- package.json | 4 ++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index e87d639..97246d6 100644 --- a/README.md +++ b/README.md @@ -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'); @@ -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]); @@ -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 \ No newline at end of file diff --git a/package.json b/package.json index 9221a10..5f664c3 100644 --- a/package.json +++ b/package.json @@ -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 ", "license": "MIT", "main": "./lib/index", @@ -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"