# postcss-escape-generated-content-string

> PostCSS plugin for escaping strings in generated content.

Latest version **3.0.0** (published 2020-10-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install postcss-escape-generated-content-string
pnpm add postcss-escape-generated-content-string
yarn add postcss-escape-generated-content-string
bun add postcss-escape-generated-content-string
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2020-10-20 |
| First published | 2020-06-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=12 |
| Dependencies | 2 |
| Unpacked size | 12 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Ivan Nikolić |
| Maintainers | niksy |
| Keywords | content, emoji, encode, escape, generated, postcss, unicode |

## Links

- npm: https://www.npmjs.com/package/postcss-escape-generated-content-string
- Repository: https://github.com/niksy/postcss-escape-generated-content-string
- Homepage: https://github.com/niksy/postcss-escape-generated-content-string#readme
- Issues: https://github.com/niksy/postcss-escape-generated-content-string/issues
- npm.io page: https://npm.io/package/postcss-escape-generated-content-string

## Dependencies (2)

- [emoji-unicode](https://npm.io/package/emoji-unicode.md) ^2.0.0
- [postcss-value-parser](https://npm.io/package/postcss-value-parser.md) ^4.1.0

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [jwt-simple](https://npm.io/package/jwt-simple.md) — 259.5K 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

## Recent versions

- 3.0.0 (latest) — 2020-10-20
- 2.0.0 — 2020-10-07
- 1.0.0 — 2020-06-09

## README

# postcss-escape-generated-content-string

[![Build Status][ci-img]][ci]

[PostCSS][postcss] plugin for escaping strings in generated content.

Features:

-   Handles every character (emojis included)
-   Already escaped characters are left untouched

## Install

```sh
npm install postcss postcss-escape-generated-content-string --save
```

## Usage

```js
import postcss from 'postcss';
import plugin from 'postcss-escape-generated-content-string';

postcss([plugin()]);
```

```css
/* Before */

.becky {
	content: 'becky 🐕';
}

/* After */

.becky {
	content: '\0062\0065\0063\006b\0079\0020\1f415';
}
```

## License

MIT © [Ivan Nikolić](http://ivannikolic.com)

<!-- prettier-ignore-start -->

[ci]: https://travis-ci.com/niksy/postcss-escape-generated-content-string
[ci-img]: https://travis-ci.com/niksy/postcss-escape-generated-content-string.svg?branch=master
[postcss]: https://github.com/postcss/postcss

<!-- prettier-ignore-end -->

---
_Source: https://npm.io/package/postcss-escape-generated-content-string · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
