# pug-beautify

> Simple Pug(Jade) Beautify

Latest version **0.1.1** (published 2016-02-24) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2016-02-24 |
| First published | 2016-02-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 20 |
| Maintainers | vingorius |
| Keywords | jade, pug, beautify, formatter |

## Links

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

## 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.1.1 (latest) — 2016-02-24
- 0.1.0 — 2016-02-24
- 0.0.3 — 2016-02-23
- 0.0.2 — 2016-02-23
- 0.0.1 — 2016-02-23

## README

# Pug(former jade) beautify
    This tiny program is formatting a pug(former jade) template file.
    For reusability, it's made as a module suggested by @Glaving001
    https://github.com/vingorius/jade-beautify/issues/7
## Installation
```shell
npm install pug-beautify
```
## Test
```shell
npm test
```
### Options
    fill_tab : true/false,default true, fill whether tab or space.
    omit_div : true/false,default false, whether omit 'div' tag.
    tab_size : number, default 4, when 'fill_tab' is false, fill 'tab_size' spaces.

## How to use
```javascript
var output = pugBeautify(code);
```
```javascript
var output = pugBeautify(code,{fill_tab:true,omit_div:false,tab_size:4});
```

## Example code
```javascript
var fs = require('fs');
var pugBeautify = require('pug-beautify');
var code = fs.readFileSync('sample.jade','utf8');
var option = {
    fill_tab: true,
    omit_div: false,
    tab_size: 4
};
try {
    var output = pugBeautify(code,option);
}catch(error){
    // Error occurred
}
```
## Todo

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