# mongoose-uuid

> mongoose-uuid is a plugin which adds uuid _id to a model

Latest version **0.0.2** (published 2014-05-21) · 0 weekly downloads

## Install

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

## 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.0.2 |
| Published | 2014-05-21 |
| First published | 2014-02-18 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Darin Lampson |
| Maintainers | dlampson |
| Keywords | mongoose, uuid |

## Links

- npm: https://www.npmjs.com/package/mongoose-uuid
- Repository: git@github.com:dlamp/mongoose-uuid
- Homepage: https://github.com/dlamp/mongoose-uuid
- Issues: https://github.com/dlamp/mongoose-uuid/issues
- npm.io page: https://npm.io/package/mongoose-uuid

## Dependencies (1)

- [node-uuid](https://npm.io/package/node-uuid.md) ~1.4.1

## 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
- [mongoose-typescript](https://npm.io/package/mongoose-typescript.md) — 85 weekly downloads

## Recent versions

- 0.0.2 (latest) — 2014-05-21
- 0.0.1 — 2014-02-18

## README

mongoose-uuid
=============

mongoose-uuid is a plugin which adds uuid _id to a model

## Example

```javascript
var mongoose = require('mongoose');
var Schema   = mongoose.Schema;
var uuid = require('mongoose-uuid');

var UserSchema = new Schema({}, {_id: false});

UserSchema.plugin(uniqueid, {
  models: ['users']
});

UserSchema.plugin(uuid.plugin, 'User');

```

## Installation
* `npm install mongoose-uuid --save`

## License
Copyright (c) 2014 Darin Lampson. Licensed under the MIT license.

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