Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/denghuiquan/mongoose-enhance-tag
an mongoose plugin about tag support custom Schema options
https://github.com/denghuiquan/mongoose-enhance-tag
js mongoose node plugin
Last synced: about 1 month ago
JSON representation
an mongoose plugin about tag support custom Schema options
- Host: GitHub
- URL: https://github.com/denghuiquan/mongoose-enhance-tag
- Owner: denghuiquan
- Created: 2017-03-08T09:41:55.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-03-08T10:09:30.000Z (over 7 years ago)
- Last Synced: 2024-10-03T03:33:53.707Z (about 1 month ago)
- Topics: js, mongoose, node, plugin
- Language: JavaScript
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Tag Everything
Mongoose plugin that adds a tags path to your models.## Installation
```
npm install mongoose-tag-everything
```
## Using in your app
```
var mongoose = require('mongoose');
var tagEnhance = require('mongoose-enhance-tag');var animal = new mongoose.Schema({
name: String
});
schema.plugin(tagEnhance);### Custom path, collection, and model names
Pass the `path`, `collection`, or `ModelName` options to customize the respective names. It is recommended to load the plugin globally if any custom values are being used so there is consistency across models.### for demo detail
# please just have a look in the test folder## Running tests
```
npm test
```