New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

console-pretty-print

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

console-pretty-print

Adds pretty print to console.

1.0.4
latest
Source
npm
Version published
Weekly downloads
17
1600%
Maintainers
1
Weekly downloads
 
Created
Source

console-pretty-print

CircleCI codecov Greenkeeper badge

Description

Adds "console-pretty-print" functionality for console

Install

npm install console-pretty-print

Usage

Add require("console-pretty-print"); as the first line of the app's main module.

require("console-pretty-print");

console.pretty({
  one: 1,
  two: 2,
  nested: {
    one: 1,
    two: 2
  }
});

Output:

{
  "one": 1,
  "two": 2,
  "nested": {
    "one": 1,
    "two": 2
  }
}

Arguments:

value : any js object

message: some description

indent: spaces to indent

Keywords

javascript

FAQs

Package last updated on 04 Oct 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