sails-async

Utilities to enable async/promise methods for controllers and policies


License
ISC
Install
npm install sails-async@1.3.7

Documentation

sails-async

CircleCI

These are utilities to enable async/promise methods for controllers and policies

Guide

Generally, just import method or policy. Method converts a single controller method, and policy converts a policy function

API

Asyncification

respond

method

policy

Custom Response

send

fail

success

TODO

(Optionally?) Use Symbols for http status codes instead of relying on numbers