Awesome
<p align="center" style="padding: 0; margin: 0;"> <img src="./merz.png"> </p> <p align="center"> <a href="https://codeclimate.com/github/tunnckoCore/merz"> <img src="https://img.shields.io/codeclimate/github/tunnckoCore/merz.svg"> </a> <a href="https://github.com/feross/standard"> <img src="https://img.shields.io/badge/code%20style-standard-brightgreen.svg"> </a> <a href="https://travis-ci.org/tunnckoCore/merz"> <img src="https://img.shields.io/travis/tunnckoCore/merz.svg"> </a> <a href="https://coveralls.io/r/tunnckoCore/merz"> <img src="https://img.shields.io/coveralls/tunnckoCore/merz.svg"> </a> <a href="https://david-dm.org/tunnckoCore/merz"> <img src="https://img.shields.io/david/tunnckoCore/merz.svg"> </a> </p>merz
Wrapper to handle completion and errors of sync and async functions, promises, generators, streams, observables and child processes.
Install
npm i merz --save
Usage
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)
Contributing
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.