Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

errsole

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

errsole

Capture, replay, and debug errors in your Node.js server

  • 1.3.7
  • unpublished
  • npm
  • Socket score

Version published
Weekly downloads
457
decreased by-27.23%
Maintainers
1
Weekly downloads
 
Created
Source

Errsole

npm version

Capture, replay, and debug errors in your Node.js server

:star: We appreciate your star, it helps!

Installation and Usage

  1. Errsole is a Node.js module. You can install this module using the npm install command:

    npm install errsole
    
  2. Click on the button below to get the Errsole code snippet. Put the code snippet at the top of your app's main file.

    GENERATE TOKEN

    Example
    /**
     * Put the Errsole code snippet at the top of your app's main file
     */
    const errsole = require('errsole')
    errsole.initialize({
      framework: 'express',
      token: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
    })
    
    /**
     * Your app code starts here
     */
    const express = require('express')
    const app = express()
    
    app.get('/', function (req, res) {
      res.send('Hello World')
    })
    
    app.listen(3000)
    

Advanced Configuration

NameTypeDefaultDescription
frameworkstringRequired. Your Node.js framework name.
tokenstringRequired. Click here to generate a unique token.
enableDebuggerbooleantrueOptional. If false, the debugger is disabled.
editCodebooleanfalseOptional. If true, you can edit code while debugging an error.
Setting true in staging and production environments is not recommended because your developers can run arbitrary code on your production server.
evalExpressionbooleanfalseOptional. If true, you can evaluate JavaScript expressions while debugging an error.
Setting true in staging and production environments is not recommended because your developers can run arbitrary code on your production server.
Example
/**
 * Put the Errsole code snippet at the top of your app's main file
 */
const errsole = require('errsole')
errsole.initialize({
  framework: 'express',
  token: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
  enableDebugger: true,
  editCode: false, // Set true in development and testing environments
  evalExpression: false // Set true in development and testing environments
})

/**
 * Your app code starts here
 */
const express = require('express')
const app = express()

app.get('/', function (req, res) {
  res.send('Hello World')
})

app.listen(3000)

Features

View your Node.js errors and their root cause

Errsole captures all errors raised in your Node.js app and the HTTP requests that caused the errors. View all your Node.js errors and the root cause of each error in one place.

View session logs

When an error occurs, Errsole saves the error and the series of HTTP requests the user has made before the error. These are requests made by a single user to whom the error has occurred. With this information, you can see what the user has done before the error and which user activities have caused the error.

Debug your server code in real-time

Errsole creates a clone of your Node.js app in your server and provides a debugger interface to the app clone. You can replay the captured errors in the app clone and debug the server code in real-time. Your users are not impacted while you debug the server code.

Collaborate with your team members

Add developers to your app team. Then the developers can view, replay, and debug errors raised in your Node.js app.

Demo Video

Errsole Demo Video

Support

License

MIT

Keywords

FAQs

Package last updated on 23 Aug 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