
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
Still under development, subscribe at project homepage to be up to date.
Install package by running npm install bugflux --save.
By default all uncaught exceptions are sent to bugflux server, the only thing you have to do is to set the default configuration:
var bugflux = require('bugflux');
bugflux.setDefault({
url: 'https://bugflux.your-domain.com/',
project: 'Your project name',
version: '0.1.0',
language: 'en_US',
environment: 'Production',
});
console.log(bugflux.default.project); // <-- Print "Your project name"
throw new Error(); // <-- Report will be sent here
You can disable it by setting bugflux.options.sendUncaughtExceptions to false.
All global settings can be found at bugflux.options.*:
silent - Disable priting error message to standard error stream when uncaught exception occurs (default false);sendUncaughtExceptions - Enable automatic error reporting when uncaught exception occurs (default true).strictSSL - Force to use https protocol and verified certificates (default true, we do not recommend changing this value, but you can use it for testing or developing purposes).You can send reports manually by calling send method:
var bugflux = require('bugflux');
fn(args, function(err) {
if(err) bugflux.send(err); // <-- Use default settings
});
The send method accept bugflux.report, raw Object or Error:
// 1. bugflux.report
var report = new bugflux.report(new Error());
// - or -
var report = new bugflux.report(new Error(), { project: 'Custom project name'});
// - or -
var report = new bugflux.report({ project: 'Awesome project name' });
report.fill(new Error()); // <-- Fill error details (hash, name, stack_trace)
bugflux.send(report);
// 2. Object
bugflux.send({
url: 'https://bugflux-server/',
project: 'Awesome project name',
// and more... see bugflux.com/api/report-an-error.html
});
// 3. Error
bugflux.send(new Error('test'));
The send method accept callback as a second argument. The callback parameters are forwarded from request method.
var bugflux = require('bugflux');
bugflux.send(new Error(), function(err, res, body) {
console.log(err, res, body);
});
FAQs
Bugflux reporting library for Node.js
The npm package bugflux receives a total of 5 weekly downloads. As such, bugflux popularity was classified as not popular.
We found that bugflux demonstrated a not healthy version release cadence and project activity because the last version was released 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
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.