mongoose-timestamp : Mongoose plugin that adds createdAt and updatedAt auto-assigned date properties. You can installing mongoose-timestamp npm packages, there are two ways to install this module locally and globaly. -g option is specified to global. Execute the below command.
$ sudo npm install mongoose-timestamp $ sudo npm install -g mongoose-timestamp
If want to update the mongoose-timestamp package execute the command as below,
$ sudo npm update mongoose-timestamp
Update package globally,
$ npm install -g mongoose-timestamp
$ sudo git clone https://github.com/rektide/mongoose-timestamp.git
$ sudo npm install -g ./mongoose-timestamp
mongoose-timestamp@0.6.0 /usr/lib/node_modules/mongoose-timestamp
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall mongoose-timestamp
Package Name | mongoose-timestamp |
Version | 0.6.0 |
Description | Mongoose plugin that adds createdAt and updatedAt auto-assigned date properties |
Released Date | 2016-07-05T21:52:10.892Z |
Published by | drudge |
How to Learn | https://www.npmjs.com/package/mongoose-timestamp/tutorial |