MCPcopy Create free account
hub / github.com/mathiasbynens/CSS.escape

github.com/mathiasbynens/CSS.escape @v1.5.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.5.1 ↗ · + Follow
1 symbols 1 edges 2 files 0 documented · 0% 18 cross-repo links updated 4y ago★ 4994 open issues

Browse by type

Functions 1 Types & classes 0
What it actually does AI analysis from the code graph — generated when you open this
loading…
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="https://github.com/mathiasbynens/CSS.escape/raw/v1.5.1/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.

Core symbols most depended-on inside this repo

browse all functions →

Shape

Function 1

Languages

TypeScript100%

Modules by API surface

css.escape.js1 symbols

For agents

$ claude mcp add CSS.escape \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page