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

console-decor

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

console-decor

Decorate console functions with timestamps, file path, line number, and object pretty print

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
3
50%
Maintainers
1
Weekly downloads
 
Created
Source

Console Decor

Console function enhancement. Adds timestamp, file path, line number to console log and error calls

Usage

Call as a function with optional config parameter to override console functions

require('console-decor')();
console.log('Hello World');

Config options

appdir

Manually specify the application directory. Defaults to require.main.filename. Functionally, this parameter is removed from the absolute file path in order to condense the output.

require('console-decor')({appdir: ''}); // show absolute path
console.log('Hello World');

Keywords

enhanced

FAQs

Package last updated on 02 Jan 2018

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