await-call
Async await wrapper for easy error handling without try-catch
Installation
$ npm install await-call
Example
const call = ; const findUserById = async { ifMath > 5 throw Error'BOOM!'; return name: 'lsong' ;}; const cb = { console;}; async { const err user = await ; iferr return ; console; };
Contributing
- Fork this Repo first
- Clone your Repo
- Install dependencies by
$ npm install
- Checkout a feature branch
- Feel free to add your features
- Make sure your features are fully tested
- Publish your local branch, Open a pull request
- Enjoy hacking <3
MIT
This work is licensed under the MIT license.