@calipsa/wrap-error
TypeScript icon, indicating that this package has built-in type declarations

0.1.6 • Public • Published

@calipsa/wrap-error

NPM version Downloads Dependency status Dev Dependency status

Installation

# using npm:
npm install --save @calipsa/wrap-error

# or if you like yarn:
yarn add @calipsa/wrap-error

Usage

import wrapError from '@calipsa/wrap-error'

fs.readFile('incorrect path', (err, data) => {
  if (err) {
    throw wrapError(err, 'Failed to read file')
  }
  // ...
})

Readme

Keywords

Package Sidebar

Install

npm i @calipsa/wrap-error

Weekly Downloads

17

Version

0.1.6

License

ISC

Unpacked Size

4.98 kB

Total Files

12

Last publish

Collaborators

  • balaphp
  • inker
  • usama.ashraf