# gulp-entity-convert

> Converts Unicode characters to HTML and CSS entities

Latest version **0.0.2** (published 2014-11-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-entity-convert
pnpm add gulp-entity-convert
yarn add gulp-entity-convert
bun add gulp-entity-convert
```

## 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 | 2014-11-10 |
| First published | 2014-03-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Lou Huang |
| Maintainers | louh |
| Keywords | entity-convert, html, css, unicode, utf-8, character, encoding |

## Links

- npm: https://www.npmjs.com/package/gulp-entity-convert
- Repository: https://github.com/louh/gulp-entity-convert/
- Issues: https://github.com/louh/gulp-entity-convert/issues
- npm.io page: https://npm.io/package/gulp-entity-convert

## Dependencies (3)

- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.1
- [map-stream](https://npm.io/package/map-stream.md) ~0.0.5
- [entity-convert](https://npm.io/package/entity-convert.md) 0.0.4

## 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.0.2 (latest) — 2014-11-10
- 0.0.1 — 2014-03-19

## README

# [gulp](https://github.com/wearefractal/gulp)-entity-convert

Gulp wrapper for [entity-convert](https://www.npmjs.org/package/entity-convert). Converts Unicode characters to either [HTML or CSS entities](http://brajeshwar.github.io/entities/). Useful if your built files eventually go to a system that can't handle Unicode character sets.


## Install

Install with [npm](https://npmjs.org/package/gulp-entity-convert)

```
npm install --save-dev gulp-entity-convert
```


## Example

```js
var gulp = require('gulp');
var entityconvert = require('gulp-entity-convert');

gulp.task('default', function () {
	gulp.src('./src/**/*.html')
		.pipe(entityconvert())
		.pipe(gulp.dest('.build/'));
});
```

## Options

By default, this plugin treats all input files as HTML and will convert characters to HTML entities. You can pass in an options object with the `type` property to specify either HTML or CSS, like so:

```js
  .pipe(entityconvert({ type: 'css' }))
```

or if you want to be specific:

```js
  .pipe(entityconvert({ type: 'html' }))
```


## License

MIT

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