# beautify

> beautify whatever

Latest version **0.0.8** (published 2016-10-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install beautify
pnpm add beautify
yarn add beautify
bun add beautify
```

Provides the command `beautify`.

## Health

**Score 23/100 (F)** — status: abandoned.

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.8 |
| Published | 2016-10-03 |
| First published | 2016-10-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/beautify) |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Konstantin Gorodinskiy |
| Maintainers | konstantin |
| Keywords | json, js, css, html, xml, prettify, beautify |

## Links

- npm: https://www.npmjs.com/package/beautify
- Repository: https://github.com/gko/beautify
- Homepage: https://github.com/gko/beautify#readme
- Issues: https://github.com/gko/beautify/issues
- npm.io page: https://npm.io/package/beautify

## Dependencies (3)

- [html](https://npm.io/package/html.md) ^1.0.0
- [cssbeautify](https://npm.io/package/cssbeautify.md) ^0.3.1
- [js-beautify](https://npm.io/package/js-beautify.md) ^1.6.4

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.0.8 (latest) — 2016-10-03
- 0.0.4 — 2016-10-03
- 0.0.1 — 2016-10-02

## README

# Beautify
![build](https://travis-ci.org/gko/beautify.svg?branch=master)
[![Dependency Status](https://www.versioneye.com/user/projects/57f1c07b9907da004fa9a784/badge.svg?style=flat-square)](https://www.versioneye.com/user/projects/57f1c07b9907da004fa9a784)
[![npm version](https://badge.fury.io/js/beautify.svg)](https://badge.fury.io/js/beautify)

Beautify CSS/JS/JSON/HTML/XML formats

## Installation

```bash
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:
```bash
beautify -o output.html ./test.html
```

```bash
curl -L https://raw.githubusercontent.com/gko/beautify/master/test/mock/test1.json | beautify
```

```bash
echo 'body{width: "200px"}' | beautify -f css
```

You can also use it from node:

```javascript
const beautify = require('beautify');

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

## Tests

To run tests you simply need to do:
```bash
npm run test
```

## License

[MIT](http://opensource.org/licenses/MIT)

Copyright (c) 2016 Konstantin Gorodinskiy

---
_Source: https://npm.io/package/beautify · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
