JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 39021
  • Score
    100M100P100Q141044F
  • 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

edge-error

Create errors custom stack trace pointing to the Edge source file

travis-image npm-image

Usage

Grab the package from npm as edge-error

npm i 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'
})

Change log

The change log can be found in the CHANGELOG.md file.

Contributing

Everyone is welcome to contribute. Please go through the following guides, before getting started.

  1. Contributing
  2. Code of conduct

Authors & License

thetutlage and contributors.

MIT License, see the included MIT file.