Socket
Socket
Sign inDemoInstall

edge-error

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

edge-error

Create errors custom stack trace pointing to the Edge source file


Version published
Weekly downloads
24K
decreased by-14.79%
Maintainers
1
Weekly downloads
 
Created
Source

Edge error

Create errors custom stack trace pointing to the Edge source file

gh-workflow-image typescript-image npm-image license-image synk-image

The package extends the native Error class and adds support for pushing an error stack frame pointing to an Edge template.

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: 'absolute/path/to/index.edge'
})

Keywords

FAQs

Package last updated on 08 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc