cssesc is a JavaScript library that escapes text for use in CSS strings or CSS identifiers, generating the shortest possible ASCII-only output. It exposes a `cssesc(value, options)` function (including `isIdentifier`, `quotes`, and `wrap`) and also provides a command-line `cssesc` tool for escaping from a shell.
Project status
- This GitHub source appears dormant or in maintenance mode, with the last upstream push on 2023-02-02 (and no evidence of active work leading up to today, 2026-09-10).
- The apparent update cadence is infrequent, with published updates in 2016-2019 and a long gap since 2023, suggesting no regular ongoing development.
AI summary generated
Recent updates
v3.0.0
Release v3.0.0 contains no publisher release notes. The code diff shows changes to CSS escaping behavior, especially for identifiers, altering how colons and leading underscores are escaped.
Breakingv2.0.0
v2.0.0 introduces a Babel-based build step and adds a .babelrc file to transpile cssesc.js for older Node and browser targets. The shipped cssesc.js code also appears to have been converted from ES6+ syntax (const/let, arrow functions) to ES5-style syntax (var, function expressions), while the core escaping logic looks unchanged.
Featuresv1.0.1
Release v1.0.1 was published on 2018-03-25, but the publisher did not provide any release notes (no details on changes). Because no change log content is available, the impact on APIs, behavior, or dependencies cannot be determined from the provided data alone.
v1.0.0
v1.0.0 modernizes cssesc’s implementation and tooling. The release notes only call out a Node.js support floor (Node.js v4+), but the diff shows broader refactors and potential environment support changes.
Breakingv0.1.0
Release v0.1.0 of cssesc primarily documents basic cross-browser and Node.js compatibility testing. No feature additions, fixes, or behavioral changes are described in the release notes.