# mongoose-time

> mongoose timestamps

Latest version **0.1.0** (published 2012-12-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install mongoose-time
pnpm add mongoose-time
yarn add mongoose-time
bun add mongoose-time
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2012-12-08 |
| First published | 2012-11-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Amir Abu Shareb |
| Maintainers | yields |
| Keywords | mongoose, timestamps |

## Links

- npm: https://www.npmjs.com/package/mongoose-time
- Repository: https://github.com/yields/mongoose-time
- npm.io page: https://npm.io/package/mongoose-time

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [@temporal-architect/claude-plugin](https://npm.io/package/@temporal-architect/claude-plugin.md) — 335 weekly downloads

## Recent versions

- 0.1.0 (latest) — 2012-12-08
- 0.0.1 — 2012-11-28

## README

# mongoose-time

timestamps for mongoose, populates `created_at` and `updated_at`.

## Installation

    $ npm install mongoose-time

## Usage

```javascript

var mongoose = require('mongoose')
  , Schema = mongoose.Schema
  , model = mongoose.model.bind(mongoose)
  , timestamps = require('mongoose-time');

var schema = new Schema({}).plugin(timestamps());
var Artist = model('Artist', schema);

```

## Running tests

make sure you edit [db.json](/yields/mongoose-time/blob/master/test/db.json) to set the database the test
should run on.

    $ make test

## License

MIT

---
_Source: https://npm.io/package/mongoose-time · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
