sails-rigger
v0.10.0
Published
A reliable callback handler for loading an external Sails.js app via require()
Downloads
7
Maintainers
Readme
-rigged
A reliable callback handler for loading an external Sails.js app via require().
Install
$ npm install sails-rigged --save
var rigger = require('sails-rigged');
var app = require('sails-todomvc');
Usage
rigger.load(app, { models: { connection: 'customconnection' } }, function (sails) {
// sails.models, sails.controllers, etc. are available here
});
API
.load(app, config, callback)
|:---|:---|
| @param | description |
| app
| name of sails.js app to load (module id) |
| config
| config object for sails.load()
|
| callback
| callback function (error, sails)
|
License
MIT