Wrapper to handle completion and errors of sync and async functions, promises, generators, streams, observables and child processes.
npm i merz --save
For more use-cases see the tests
var fs = require('fs')
var merz = require('merz')
var readFile = merz(fs.readFile)
fn('package.json', 'utf8', console.log)
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
But before doing anything, please read the CONTRIBUTING.md guidelines.