postcss-escape-generated-content-string

3.0.0 • Public • Published

postcss-escape-generated-content-string

Build Status

PostCSS plugin for escaping strings in generated content.

Features:

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

Install

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

Usage

import postcss from 'postcss';
import plugin from 'postcss-escape-generated-content-string';
 
postcss([plugin()]);
/* Before */
 
.becky {
    content: 'becky 🐕';
}
 
/* After */
 
.becky {
    content: '\0062\0065\0063\006b\0079\0020\1f415';
}

License

MIT © Ivan Nikolić

Package Sidebar

Install

npm i postcss-escape-generated-content-string

Weekly Downloads

36

Version

3.0.0

License

MIT

Unpacked Size

12.3 kB

Total Files

8

Last publish

Collaborators

  • niksy