beautify
beautify whatever
Last updated 4 years ago by konstantin .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install beautify 
SYNC missed versions from official npm registry.

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 <format> input format.(optional) json/xml/html/js/css

-o, --output <file> 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

Current Tags

  • 0.0.8                                ...           latest (4 years ago)

3 Versions

  • 0.0.8                                ...           4 years ago
  • 0.0.4                                ...           4 years ago
  • 0.0.1                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 6
This Month 8
Last Day 2
Last Week 5
Last Month 65
Dependencies (3)
Dev Dependencies (2)

Copyright 2014 - 2016 © taobao.org |