css.escape

A robust polyfill for the `CSS.escape` utility method as defined in CSSOM.

MIT 10 个版本
安装
npm install css.escape
yarn add css.escape
pnpm add css.escape
bun add css.escape
README

CSS.escape polyfill Build status Code coverage status

A robust polyfill for the CSS.escape utility method as defined in CSSOM.

For a more powerful alternative, consider using cssesc, which automatically takes care of excessive whitespace, and has many options to customize the output.

Installation

In a browser:

<script src="css.escape.js"></script>

Via npm:

npm install css.escape

Then, in Node.js:

require('css.escape');

// On Windows and on Mac systems with default settings, case doesn’t matter,
// which allows you to do this instead:
require('CSS.escape');

Author

twitter/mathias
Mathias Bynens

License

This polyfill is available under the MIT license.

版本列表
1.5.1 2016-08-23
1.5.0 2016-01-21
1.4.0 2015-12-03
1.3.0 2015-12-01
1.2.0 2015-12-01
1.1.0 2015-09-10
1.0.0 2015-09-09
0.2.1 2014-06-01
0.2.0 2014-04-30
0.1.0 2013-10-15