
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@exceptionless/node
Advanced tools
Using Exceptionless in the NodeJS environment is similar to using it in other JavaScript environments.
Using npm:
npm i @exceptionless/node
Using yarn:
yarn add @exceptionless/node
When your NodeJS app starts up, it should tell the Exceptionless client to startup like this:
await Exceptionless.startup(c => {
c.apiKey = "LhhP1C9gijpSKCslHHCvwdSIz298twx271n1l6xw";
c.serverUrl = "http://localhost:5000";
c.useDebugLogger();
c.defaultTags.push("Example", "Node");
// set some default data
c.defaultData["SampleUser"] = {
id: 1,
name: "Blake",
password: "123456",
passwordResetToken: "a reset token",
myPasswordValue: "123456",
myPassword: "123456",
customValue: "Password",
value: {
Password: "123456"
}
};
});
Once that's done, you can use the Exceptionless client anywhere in your app by calling Exceptionless
followed by the method you want to use. For example:
Exceptionless.submitLog("Hello, world");
When using this package with an Express server, you should call exceptionless.startup()
when the server starts. There are many ways to do this, but it's important that the client is instantiated before the server is used.
FAQs
JavaScript client for Exceptionless
The npm package @exceptionless/node receives a total of 22 weekly downloads. As such, @exceptionless/node popularity was classified as not popular.
We found that @exceptionless/node demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.