Socket
Socket
Sign inDemoInstall

beautify

Package Overview
Dependencies
46
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    beautify

beautify whatever


Version published
Weekly downloads
31K
increased by6.82%
Maintainers
1
Install size
2.37 MB
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 03 Oct 2016

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc