
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@purinton/errors
Advanced tools
A generic handler for catching uncaught errors, warnings, and rejections.
Minimal Node.js process-level error handler utility for uncaught exceptions, unhandled rejections, and warnings. Works in both CommonJS and ESM environments.
npm install @purinton/errors
import { registerHandlers } from '@purinton/errors';
registerHandlers();
// Or with options:
// registerHandlers({ processObj: process, log: customLogger });
// Simulate an uncaught exception
setTimeout(() => { throw new Error('Demo uncaught exception'); }, 1000);
const { registerHandlers } = require('@purinton/errors');
registerHandlers();
// Or with options:
// registerHandlers({ processObj: process, log: customLogger });
// Simulate an uncaught exception
setTimeout(() => { throw new Error('Demo uncaught exception'); }, 1000);
Registers process-level exception handlers. Returns an object with a removeHandlers
function to detach all handlers (useful for testing).
options
(optional): An object with the following properties:
processObj
(optional): The process object to attach handlers to (default: process
)log
(optional): Logger for output (default: @purinton/log){ removeHandlers: () => void }
Type definitions are included:
export declare function registerHandlers(
options?: {
processObj?: NodeJS.Process,
log?: typeof import('@purinton/log')
}
): { removeHandlers: () => void };
For help, questions, or to chat with the author and community, visit:
FAQs
A generic handler for catching uncaught errors, warnings, and rejections.
The npm package @purinton/errors receives a total of 24 weekly downloads. As such, @purinton/errors popularity was classified as not popular.
We found that @purinton/errors 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.