simple-switch
Easily switch between callbacks and Promises.
- Only 28 LOC.
- No dependencies.
- 100% test coverage.
- Wraps Errors.
- Requires Node 6+.
Installation
npm i -S simple-switch
Quickstart
promisifiy:
const promisify = const sum = { } const promisifiedSum =
callbackify:
const callbackify = const sum = { return Promise} const callbackifiedSum =
License
WTFPL – Do What the F*ck You Want to Public License.
Made with ❤️ by @MarkTiedemann.