Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
Socket
Book a DemoInstallSign in
Socket

printerr

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

printerr

print information about the place where the error occurred

latest
Source
npmnpm
Version
0.0.4
Version published
Maintainers
1
Created
Source

PrintErr

print information about the place where the error occurred

printerr

Example #1

Print information for all uncaughtException

require('./index')();

throw new Error('error!!!');

Example #2

Print information for custom exception

const printErr = require('printerr')();

try {
    throw new Error('error!!!');
} catch (e) {
    printErr(e);
}

Example with custom print function

require('./index')(console.debug);

throw new Error('error!!!');

Keywords

print

FAQs

Package last updated on 15 Feb 2019

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