MongooseObserver
A small library that provides methods to listen changes in mongoose models.
Installation
npm install mongoose-observer
Usage
In order to use this library, you have to create and register a model using mongoose. After that, you can register listeners to create and update events using the following API:
mongooseObserver
Example:
var mongooseObserver = mongooseObserver; mongooseObserver; mongooseObserver;
Tests
npm test
Contributing
Add unit tests for any new or changed functionality. Lint and test your code.
Release History
- 0.1.1 Small changes to README.md
- 0.1.0 Initial release