# jsbeautify

> Online http://jsbeautifier.org/ - node version.

Latest version **0.3.6** (published 2013-03-20) · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

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

Provides the command `jsbeautify`.

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.3.6 |
| Published | 2013-03-20 |
| First published | 2012-05-05 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.4.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Praveen |
| Maintainers | praveenvijayan |
| Keywords | javascript, format, source format |

## Links

- npm: https://www.npmjs.com/package/jsbeautify
- Repository: https://github.com/praveenvijayan/js-beautify
- Homepage: http://decodize.com/
- Issues: https://github.com/praveenvijayan/js-beautify/issues
- npm.io page: https://npm.io/package/jsbeautify

## Dependencies (1)

- [optimist](https://npm.io/package/optimist.md) 0.x.x

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.3.6 (latest) — 2013-03-20
- 0.3.5 — 2012-05-05

## README

# JS Beautifier

...or, more specifically, all of the code powering
[jsbeautifier.org](http://jsbeautifier.org/).

This is a node implementation of jsbeautifier.  

###Install

``` 
npm install -g jsbeautify
```

###Usage

``` 
jsbeautify [options] [input file] [output file]

Eg:

jsbeautify minifiy.js ../lib/main.js 

```

###Options
``` 
indent_size - Indentation size,
indent_char: Character to indent with,
preserve_newlines: Whether existing line breaks should be preserved,
preserve_max_newlines: Maximum number of line breaks to be preserved in one chunk,
jslint_happy: If true, then jslint-stricter mode is enforced,
brace_style: "collapse" | "expand" | "end-expand" | "expand-strict" - put braces on the same line as control statements (default), or put braces on own line (Allman / ANSI style), or just put end braces on own line.,
space_before_conditional: Should the space before conditional statement be added, "if(true)" vs "if (true)"

```

### Links
[jsbeautifier.org](http://jsbeautifier.org/)
[jsbeautifier.org github](https://github.com/einars/js-beautify)
[node jsbeautify](http://decodize.com/jsbeautify)

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