a quick function for controlling how and when a promise resolves its subsequent then and catch handlers.
install with
npm install @timelaps/promise
and see the tests with
npm t
to use simply import at the root
var Promise = require('@timelaps/promise');
or grab the synchronous version
var Promise = require('@timelaps/promise/sync'); // resolves synchronously