You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

beautify

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

beautify

beautify whatever

0.0.8
latest
Source
npmnpm
Version published
Weekly downloads
115K
21.34%
Maintainers
1
Weekly downloads
 
Created
Source

Beautify

build Dependency Status npm version

Beautify CSS/JS/JSON/HTML/XML formats

Installation

npm i beautify -g

Usage

beautify [options]:

-h, --help output usage information

-V, --version output the version number

-f, --format input format.(optional) json/xml/html/js/css

-o, --output output file or folder

examles:

beautify -o output.html ./test.html
curl -L https://raw.githubusercontent.com/gko/beautify/master/test/mock/test1.json | beautify
echo 'body{width: "200px"}' | beautify -f css

You can also use it from node:

const beautify = require('beautify');

beautify(`{"a":1}`, {format: 'json'})

Tests

To run tests you simply need to do:

npm run test

License

MIT

Copyright (c) 2016 Konstantin Gorodinskiy

Keywords

json

FAQs

Package last updated on 03 Oct 2016

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