# @jordinateur/gulp-he

> Encode or decode HTML entities

Latest version **0.1.1** (published 2022-08-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install @jordinateur/gulp-he
pnpm add @jordinateur/gulp-he
yarn add @jordinateur/gulp-he
bun add @jordinateur/gulp-he
```

## 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 | 2022-08-28 |
| First published | 2022-08-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 2.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | jordinateur |
| Keywords | gulpplugin, gulp, html, entities |

## Links

- npm: https://www.npmjs.com/package/@jordinateur/gulp-he
- Repository: https://github.com/Jordinateur/gulp-he
- Homepage: https://github.com/Jordinateur/gulp-he#readme
- Issues: https://github.com/Jordinateur/gulp-he/issues
- npm.io page: https://npm.io/package/@jordinateur/gulp-he

## Dependencies (2)

- [he](https://npm.io/package/he.md) ^1.2.0
- [through2](https://npm.io/package/through2.md) ^4.0.2

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2022-08-28

## README

# gulp-he
For encoding or decoding HTML entities in your markup.

## Encode


```
gulp.task('encode', function() {
  return gulp.src('./file-entities.html')
    .pipe(entities('encode', opts))
    .pipe(rename('encoded.html'))
    .pipe(gulp.dest('./output/'));
});
```
#### Methods
+ *encode* — encodes, replacing characters to its entity representations.
+ *opts* — pass all possible [he](https://github.com/mathiasbynens/he) options

## Decode

```
gulp.task('decode', function() {
  return gulp.src('./input/with-entities.html')
    .pipe(entities('decode'))
    .pipe(rename('decoded.html'))
    .pipe(gulp.dest('./output'));
});
```
#### Methods
+ *decode* — decodes, replacing entities to characters.
+ *opts* — pass all possible [he](https://github.com/mathiasbynens/he) options

#### Credits
This repository is largerly inspired by [gulp-html-entites](https://github.com/jstnjns/gulp-html-entities) and wouldn't exist without [he](https://github.com/mathiasbynens/he)

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