Socket
Socket
Sign inDemoInstall

edge-error

Package Overview
Dependencies
0
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    edge-error

Create errors with custom stack trace pointing to the .edge template file


Version published
Weekly downloads
30K
increased by7.42%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

edge-error

Create errors with custom stack trace pointing to a ".edge" file

github-actions-image npm-image license-image typescript-image

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

Usage

Install the package from the npm packages registry.

npm i edge-error

# yarn
yarn add edge-error

Then use it as follows

import { EdgeError } from 'edge-error'

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

Keywords

FAQs

Last updated on 04 Jan 2024

Did you know?

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc