JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 41875
  • Score
    100M100P100Q142104F
  • License MIT

Create errors custom stack trace pointing to the Edge source file

Package Exports

  • edge-error

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (edge-error) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Table of contents

Edge error

Create errors custom stack trace pointing to the Edge source file

circleci-image npm-image license-image

Usage

Install the package from npm registry as follows

npm i edge-error

# yarn
yarn add edge-error

Then use it as follows

const { EdgeError } = require('edge-error')

throw new EdgeError('message', 'status', {
  line: 1,
  col: 2,
  filename: '/path/to/index.edge'
})

Maintainers

Harminder virk