source: node_modules/css.escape/README.md

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 1.3 KB
Line 
1# `CSS.escape` polyfill [![Build status](https://travis-ci.org/mathiasbynens/CSS.escape.svg?branch=master)](https://travis-ci.org/mathiasbynens/CSS.escape) [![Code coverage status](http://img.shields.io/coveralls/mathiasbynens/CSS.escape/master.svg)](https://coveralls.io/r/mathiasbynens/CSS.escape)
2
3A robust polyfill for [the `CSS.escape` utility method as defined in CSSOM](https://drafts.csswg.org/cssom/#the-css.escape%28%29-method).
4
5For a more powerful alternative, consider using [cssesc](https://mths.be/cssesc), which automatically takes care of excessive whitespace, and has many options to customize the output.
6
7## Installation
8
9In a browser:
10
11```html
12<script src="css.escape.js"></script>
13```
14
15Via [npm](https://www.npmjs.com/):
16
17```bash
18npm install css.escape
19```
20
21Then, in [Node.js](https://nodejs.org/):
22
23```js
24require('css.escape');
25
26// On Windows and on Mac systems with default settings, case doesn’t matter,
27// which allows you to do this instead:
28require('CSS.escape');
29```
30
31## Author
32
33| [![twitter/mathias](https://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias "Follow @mathias on Twitter") |
34|---|
35| [Mathias Bynens](https://mathiasbynens.be/) |
36
37## License
38
39This polyfill is available under the [MIT](https://mths.be/mit) license.
Note: See TracBrowser for help on using the repository browser.