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
- The repository appears to be no longer actively maintained, with the last upstream push dated 2023-02-02, which is over 3 years ago relative to today (2026-06-09).
- Update activity is historical, with tagged updates spanning 2016 to 2019, and no evidence of recent updates beyond 2019 in the provided summaries.
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.