sr

sails-rigger

A reliable callback handler for loading an external Sails.js app via require()

Showing:

Popularity

Downloads/wk

10

Maintenance

No Maintenance Data Available

Package

Dependencies

1

Size (min+gzip)

10.6KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

-rigged

NPM version Build status Dependency Status

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial