# grunt-pug-beautify

> A grunt wrapper for Jade-Beautify (now Pug-Beautify).

Latest version **0.0.2** (published 2016-04-12) · 0 weekly downloads

## Install

```sh
npm install grunt-pug-beautify
pnpm add grunt-pug-beautify
yarn add grunt-pug-beautify
bun add grunt-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.0.2 |
| Published | 2016-04-12 |
| First published | 2016-04-12 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10.0 |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+3 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Pierre Cholhot |
| Maintainers | pierrecholhot |
| Keywords | gruntplugin, code, quality, style, jade, pug, clean, format, indent, beautify, beautifier |

## Links

- npm: https://www.npmjs.com/package/grunt-pug-beautify
- Repository: https://github.com/pierrecholhot/grunt-pug-beautify
- Issues: https://github.com/pierrecholhot/grunt-pug-beautify/issues
- npm.io page: https://npm.io/package/grunt-pug-beautify

## Dependencies (3)

- [chalk](https://npm.io/package/chalk.md) ^1.1.3
- [grunt](https://npm.io/package/grunt.md) ~0.4.5
- [pug-beautify](https://npm.io/package/pug-beautify.md) 0.1.1

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads
- [datasets-fi-postalcodes](https://npm.io/package/datasets-fi-postalcodes.md) — 1.1K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2016-04-12
- 0.0.1 — 2016-04-12

## README

# grunt-pug-beautify [![Build Status](https://travis-ci.org/pierrecholhot/grunt-pug-beautify.svg?branch=master)](https://travis-ci.org/pierrecholhot/grunt-pug-beautify)

A grunt wrapper for <strike>Jade-Beautify</strike> (now Pug-Beautify).

*Issues regarding rules should be reported on the PugBeautify [issue tracker](https://github.com/vingorius/pug-beautify/issues) as it's the actual beautifier.*

## install

```
$ npm install --save-dev grunt-pug-beautify
```

## usage

```
module.exports = function(grunt) {
  grunt.initConfig({
    pugbeautify: {
      all: {
        expand: true,
        cwd: 'fixtures/',
        src: '*.jade',
        dest: 'dist/',
        options: { omit_empty_lines: true }
      }
    }
  });
  grunt.loadTasks('grunt-pug-beautify');
  grunt.registerTask('default', ['pugbeautify']);
};
```

## API

### options

#### [grunt-pug-beautify](https://github.com/PierreCholhot/grunt-pug-beautify)

In the gruntfile you can specify the following options:

##### omit_empty_lines

- Type: `boolean`
- Default: `'false'`

Omits all empty new lines (except at EOF)

#### [pug-beautify](https://github.com/vingorius/pug-beautify)

You can also specify the following options (parsed by pug-beautify):

##### fill_tab

- Type: `boolean`
- Default: `'true'`

Indent using tabs or spaces

##### omit_div

- Type: `boolean`
- Default: `'false'`

Whether to omit `div` tag [`div.hello(attr=..)` becomes `.hello(attr=..)`]

##### tab_size

- Type: `number`
- Default: `'false'`

When `fill_tab` is set to `false`, indents using spaces, default is 2.

## test

```
npm test
```

## develop

```
npm install
```

## contribute

All code in any code-base should look like a single person typed it, no matter how many people contributed.

## license

MIT © [Pierre Cholhot](http://pierre.cx/)

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