Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/niksy/postcss-escape-generated-content-string
PostCSS plugin for escaping strings in generated content.
https://github.com/niksy/postcss-escape-generated-content-string
Last synced: 7 days ago
JSON representation
PostCSS plugin for escaping strings in generated content.
- Host: GitHub
- URL: https://github.com/niksy/postcss-escape-generated-content-string
- Owner: niksy
- License: mit
- Created: 2020-05-27T08:26:17.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-10-20T14:24:07.000Z (about 4 years ago)
- Last Synced: 2024-04-26T07:45:35.923Z (7 months ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
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)
[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