beautify
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/beautify package

0.0.8 • Public • Published

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

Package Sidebar

Install

npm i beautify

Weekly Downloads

22,487

Version

0.0.8

License

MIT

Last publish

Collaborators

  • konstantin