catch-errors
Generated by OSS Project Generator.
A high-order function to catch errors from promises.
Installation
Install package
$ npm install --save catch-errors
Usage
const fetch = ;const catchErrors = ; { const response = await ; const user = await response; console;} const wrappedLoad = ; ;
Development
- Cloning the repo
$ git clone https://github.com/robertoachar/node-catch-errors.git
- Installing dependencies
$ npm install
- Running scripts
Action | Usage |
---|---|
Linting code | npm run lint |