Utilities to handle Mongoose Schema Definitions, to convert to JSON and vice versa
klei-mongodef is a utility library for working with Mongoose Schema definitions.
The library can convert a Mongoose Schema definition to JSON or the other way around, which is useful for sending schema definitions via e.g. a REST API or Websockets.
klei-mongodef with npm:
npm install klei-mongodef
var mongodef = ;
Convert a Mongoose Schema Definition to a JSON string
Get a Schema Definition object from JSON
Make sure the dev-dependencies are installed, and then run:
klei-mongodef uses the Git Flow branching model so make your pull requests to the