# gulp-htmltojade

> Convert html pages to jade templates

Latest version **0.1.1** (published 2014-07-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install gulp-htmltojade
pnpm add gulp-htmltojade
yarn add gulp-htmltojade
bun add gulp-htmltojade
```

## 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 | 2014-07-18 |
| First published | 2014-07-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Serhey Shmyg |
| Maintainers | serhey.shmyg |

## Links

- npm: https://www.npmjs.com/package/gulp-htmltojade
- Repository: https://github.com/serheyShmyg/gulp-html2jade
- Issues: https://github.com/serheyShmyg/gulp-html2jade/issues
- npm.io page: https://npm.io/package/gulp-htmltojade

## Dependencies (3)

- [through2](https://npm.io/package/through2.md) ^0.5.1
- [gulp-util](https://npm.io/package/gulp-util.md) ^2.2.20
- [html2jade](https://npm.io/package/html2jade.md) ^0.7.7

## Recent versions

- 0.1.1 (latest) — 2014-07-18
- 0.1.0 — 2014-07-18

## README

#Html to jade
Convert html pages to jade templates

```shell
npm install gulp-html2jade --save-dev
```

###Options:
#### options.double
Type: `Boolean`  
Default value: `false`  
Desc: use double quotes for attributes

#### options.nspaces
Type: `Number`  
Default value: `2`  
Desc: the number of spaces to indent generated files with. Default is 2 spaces

#### options.tabs
Type: `Bolean`  
Default value: `false`  
Desc: use tabs instead of spaces

#### options.bodyless
Type: `Bolean`  
Default value: `false`  
Desc: do not output enveloping html and body tags

#### options.numeric
Type: `Bolean`  
Default value: `false`  
Desc: use numeric character entities

#### options.donotencode
Type: `Boolean`  
Default value: `false`  
Desc: do not html encode charact

#### options.scalate
Type: `Boolean`  
Default value: `false`  
Desc: generate Scalate variant of jade syntax


##Example
```javascript
var html2jade = require('gulp-html2jade');

gulp.task('html2jade', function() {
	var dest = gulp.dest('jade');

	gulp
		.src('html/**/*.html')
		.pipe(html2jade())
		.pipe(dest);
});
```

Enspired by [html2jade](https://github.com/donpark/html2jade)

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