GitHub repository: ludios/maybe-promise-factory
Primary language: JavaScript
Created: 2015-05-20T23:01:27Z
Description: Calls a function and wraps the retval or exception in a Promise only if it didn't already return a Promise; like Twisted's maybeDeferred.  Turns a sync-or-Promise API into a Promise API.