npm

Join us for the upcoming webinar, "Enterprise JavaScript done right: the tools you love, the security you need."Sign up here »

mongoose-ratbird

0.0.0 • Public • Published

Mongoose Ratbird Preferences

Extend your Mongoose schemas with Ratbird notifier preferences.

Usage

Install with Node Package Manager:

npm install mongoose-ratbird

Invoke in you Mongoose schema:

var User = new mongoose.Schema({
  // ...
});
 
User.plugin(require('mongoose-ratbird'));

Now your mongoose Documents will have notification preferences that can be fed to the dispatch() method of an instance of ratbird.Notifier.

var notifier = ratbird.createNotifier(config);
// ...
notifier.dispatch({
  title: 'Some Notification',
  content: 'Something <em>really</em> important just happened!'
}, user._notifications);

install

npm i mongoose-ratbird

Downloadsweekly downloads

3

version

0.0.0

license

LGPLv3

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability