UNPKG

dota2-radiant

Version:

Radiant: a small little library/framework for building awesome apps backed by the Dota 2 WebAPI. Utilizes Node with Express

10 lines (9 loc) 269 B
var _ = require('underscore'); var mongoose = require('mongoose'); var Schema = mongoose.Schema; module.exports = exports = { define: function (name, schema) { var modelSchema = new Schema(schema); return mongoose.model(name, modelSchema); } };