UNPKG

1.76 kBMarkdownView Raw
1[![NPM version](https://badge.fury.io/js/mongoose-modeler.png)](http://badge.fury.io/js/mongoose-modeler) [![Build Status](https://secure.travis-ci.org/bigmountainideas/mongoose-modeler.png)](http://travis-ci.org/bigmountainideas/mongoose-modeler)
2
3
4## Overview
5
6Mongoose Modeler is a [Mongoose](http://www.mongoosejs.com/) model manager and generator.
7
8
9## Installation
10 $ npm install mongoose-modeler
11
12## Usage
13
14 var modeler = require('mongoose-modeler');
15
16 // Generate Mongoose Model from cats schema
17 var models = modeler( [
18 db_connection],[
19 require('./schemas/cats')
20 ], true);
21
22## License
23
24(The MIT License)
25
26Copyright (c) 20014 Big Mountain Ideas + Innovations <jovan@bigmountainideas.com>
27
28Permission is hereby granted, free of charge, to any person obtaining
29a copy of this software and associated documentation files (the
30'Software'), to deal in the Software without restriction, including
31without limitation the rights to use, copy, modify, merge, publish,
32distribute, sublicense, and/or sell copies of the Software, and to
33permit persons to whom the Software is furnished to do so, subject to
34the following conditions:
35
36The above copyright notice and this permission notice shall be
37included in all copies or substantial portions of the Software.
38
39THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
40EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
41MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
42IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
43CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
44TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
45SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\No newline at end of file