1.0.1 • Published 8 years ago
mongoose-repo v1.0.1
Installation
npm install --save mongoose-repo
// Then include in a node.js file
var Repository = require('mongoose-repo').Repository;
For typing you also need to install at least the typesrcipt definitions of packages mongoose
, winston
.
Contributing
Clone the repo, then
npm install
node_modules/typings/dist/bin.js install
and here we go.
Develop you new features or fixes, test it using npm test
and create a pull request.
Features
Repository Class and Interface
Repository
and require('mongoose-repo').IRepository
(TypeScript Interface)
Instanciate
var repository = new Repository(collection: mongoose.Model<T>, logger?: winston.LoggerInstance);