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 |
|
6 | Mongoose 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 |
|
26 | Copyright (c) 20014 Big Mountain Ideas + Innovations <jovan@bigmountainideas.com>
|
27 |
|
28 | Permission is hereby granted, free of charge, to any person obtaining
|
29 | a copy of this software and associated documentation files (the
|
30 | 'Software'), to deal in the Software without restriction, including
|
31 | without limitation the rights to use, copy, modify, merge, publish,
|
32 | distribute, sublicense, and/or sell copies of the Software, and to
|
33 | permit persons to whom the Software is furnished to do so, subject to
|
34 | the following conditions:
|
35 |
|
36 | The above copyright notice and this permission notice shall be
|
37 | included in all copies or substantial portions of the Software.
|
38 |
|
39 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
40 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
41 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
42 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
43 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
44 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
45 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
\ | No newline at end of file |