New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

mongoose-createdmodified

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongoose-createdmodified

Mongoose plugin adding created and modified fields to a schema

latest
Source
npmnpm
Version
0.0.2
Version published
Weekly downloads
283
-18.68%
Maintainers
1
Weekly downloads
 
Created
Source

About mongoose-createdmodified

mongoose plugin that adds created and modified fields to a mongoose schema.

Install

npm install mongoose-createdmodified

Usage

JavaScript

var mongoose = require('mongoose');
var createdModifiedPlugin = require('mongoose-createdmodified').createdModifiedPlugin;

...

var SampleSchema = new Schema({
  ...
});
SampleSchema.plugin(createdModifiedPlugin, {index: true});
var SampleModel = db.model("SampleModel", SampleSchema);

CoffeeScript

mongoose = require 'mongoose'
createdModifiedPlugin = require 'mongoose-createdmodified'.createdModifiedPlugin

...

SampleSchema = new Schema
  ...
SampleSchema.plugin createdModifiedPlugin, {index: true}
SampleModel = db.model("SampleModel", SampleSchema)

Bugs and pull requests

Please use the github repository to notify bugs and make pull requests.

License

This software is © 2012 Marco Pantaleoni, released under the MIT licence. Use it, fork it.

See the LICENSE file for details.

Keywords

mongoose

FAQs

Package last updated on 14 Sep 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts