Let you customize error handle for Node CLI
npm install error-handle-clish
npm install erro-handle-cli
`
$3
`sh
yarn add error-handle-cli
`
Usage
`js
import handleError = from 'error-handle-cli';
const [err, res] = await somePromise();
handleError(Failed to build resources, err);
`
API
$3
#### ❯ heading
Type: string
Heading of the error message.
#### ❯ err
Type: error/object
#### ❯ displayError
Type: boolean
Default: true (optional)
Display the error message or not.
#### ❯ exit
Type: boolean
Default: true` (optional)