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

pretify-js

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pretify-js

Beautifies js objects

latest
Source
npmnpm
Version
1.2.0
Version published
Maintainers
1
Created
Source

Travis

pretify-js

Pretifies the javascript object given as arguments.

Usage

npm install --save-dev pretify-js

  • Requiring the module var p = require('pretify-js')

  • Pretify an array or js object or combination of both.

    • The object is passed as the first argument followed indending space which is optional. By default indend is by 4 spaces.
      p.pretify(obj, indend);
  • Writing the pretified object to a file.

    • The pretified can be viewed from a file, which helps to views if the data is too long view in console. Also acting as an offline json beautifier. p.toFile(obj, filename); Note: This operation overwrites any data on the file given.

Keywords

js-beautify

FAQs

Package last updated on 08 Oct 2017

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