New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

node-guardian

Package Overview
Dependencies
Maintainers
0
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-guardian

Start of a new project

latest
Source
npmnpm
Version
1.1.4
Version published
Maintainers
0
Created
Source

Logo

NodeGuardian.js

Monitor, manage and resolve errors with NodeGuardian’s error monitoring platform. Start tracking errors today!

Key benefits of using NodeGuardian.js are:

  • Automatic error grouping: NodeGuardian aggregates Occurrences caused by the same error into Items that represent application issues.
  • Alarm system: NodeGuardian is capable of sending emails upon detecting anomaly.
  • Customizable notifications: NodeGuardian supports different notifications rules, letting users modify their notification settings based on their need.

Setup Instructions

  • Sign up for a NodeGuardian account. (or you can use guest info to sign in)
  • Create a project, which should give you an access token, copy this token as you will need it to authenticate your project.
  • Follow instructions below to import and initialize the package.
// install package node-guardian
$ npm install node-guardian

// inside express framework, ESM only
import NodeGuardian from 'node-guardian';
const guard = new NodeGuardian({ accessToken: "< your project access token >" });

// calling next on error
try {
} catch (err) {
    next(err);
}


// use it as an error handling middleware
app.use(guard.handleError());

// your own error handler
app.use(globalErrorHandler);

Contributing

  • Fork it
  • Create your feature branch (git checkout -b my-new-feature).
  • Commit your changes (git commit -am 'Added some feature').
  • Push to the branch (git push origin my-new-feature).
  • Create a new Pull Request.

FAQ

Is this package ESM only?

Yes, this package right now can only be initialized using ESM.

Can I use this package outside Express framework?

No, this package now can only be used in Express's error handling middleware. Future update will release more feature and functionality.

FAQs

Package last updated on 26 Aug 2024

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