css.escape
npmv1.5.1A robust polyfill for the `CSS.escape` utility method as defined in CSSOM.
Overview
css.escape is an npm package that a robust polyfill for the `CSS.escape` utility method as defined in CSSOM. It is extremely widely used, with about 47.6M downloads per week and 2 known dependents in the graph. The latest version is 1.5.1, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need a robust polyfill for the `CSS.escape` utility method as defined in CSSOM and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (47.6M weekly downloads).
- Clear open-source license (MIT).
- Lean dependency tree (2 direct dependencies).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of css.escape.
Dependencies
Dev (2)
Used by
Popular packages that depend on css.escape.
Alternatives to css.escape
Get the visual width of a string - the number of columns required to display it
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
Parse String to Number based on configuration
Determine the East Asian Width of a Unicode character
Strip UTF-8 byte order mark (BOM) from a string
Escape RegExp special characters
Node.js path.parse() ponyfill
Compare strings containing a mix of letters and numbers in the way a human being would in sort order.
A tool set for CSS: fast detailed parser (CSS → AST), walker (AST traversal), generator (AST → CSS) and lexer (validation and matching) based on specs and browser implementations
Colored symbols for various log levels. Example: `✔︎ Success`
Elegant terminal spinner
Spinners for use in the terminal
Frequently installed together
A JavaScript implementation of many web standards
No description provided.
Stringify any JavaScript value.
TypeScript definitions for react
Programmatic access to the ARIA specification
Implements https://w3c.github.io/accname/
Strip redundant indentation and indent the string
Data library for istanbul coverage objects
istanbul reports
Base reporting library for istanbul
A modern CSS parser and stringifier with TypeScript support
Next generation testing framework powered by Vite
Version history
| Version | Published | License |
|---|---|---|
| 1.5.1latest | 10 years ago | MIT |
| 1.5.0 | 10 years ago | MIT |
| 1.4.0 | 10 years ago | MIT |
| 1.3.0 | 10 years ago | MIT |
| 1.2.0 | 10 years ago | MIT |
| 1.1.0 | 11 years ago | MIT |
| 1.0.0 | 11 years ago | MIT |
| 0.2.1 | 12 years ago | MIT |
| 0.2.0 | 12 years ago | MIT |
| 0.1.0 | 12 years ago | MIT |
Maintainers
Frequently asked questions
How do I install css.escape?
Run `npm install css.escape` to add css.escape to your npm project.
What license is css.escape released under?
css.escape is distributed under the MIT license.
How popular is css.escape?
css.escape has approximately 47,614,129 downloads per week and 2 known dependent packages.