mongoose-timestamp-plugin
A simple, yet configurable plugin to add timestamps for creations and modifications of mongoose documents.
Installation
$ npm install mongoose-timestamp-plugin
Usage
const mongoose = ;const timestamp = ; const schema = forename: String surname: String note: String; schema; const model = mongoose;