css.escape
A robust polyfill for the `CSS.escape` utility method as defined in CSSOM.
Last updated 8 years ago by mathias .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install css.escape 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 1.5.1                                ...           latest (8 years ago)

10 Versions

  • 1.5.1                                ...           8 years ago
  • 1.5.0                                ...           9 years ago
  • 1.4.0                                ...           9 years ago
  • 1.3.0                                ...           9 years ago
  • 1.2.0                                ...           9 years ago
  • 1.1.0                                ...           9 years ago
  • 1.0.0                                ...           9 years ago
  • 0.2.1                                ...           10 years ago
  • 0.2.0                                ...           11 years ago
  • 0.1.0                                ...           11 years ago
Maintainers (1)
Downloads
Total 9
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE