Skip to content
JS
Package

cssesc

A JavaScript library for escaping CSS strings and identifiers while generating the shortest possible ASCII-only output.

v3.0.0, 4 Feb 2019MITCommonJSTypes: None
$ npm install cssesc

Key numbers

As of 25 Sept 2026
Weekly downloads
68.9m
+115% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
7 years ago
v3.0.0
GitHub stars
176
21 forks
Open issues / PRs
6 / 6
Contributors
5
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
025m50m75m100mSept 2025Mar 2026Sept 2026High 93.3m (16 Jun 2026)Low 21.6m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

68,871,279 downloads last week, 314,940,267 in the last month. The 12-month change of +115% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
05 in total
Latest version
3.0.0, 4 Feb 20197 years ago
First published
9 Aug 2013
Last push to GitHub
2 Feb 20231,330 days before the snapshot
Repository archived
No
Open issues
6
Open pull requests
6
Commits, last 52 weeks
0
Dependents on npm
950

Major versions

  1. v3 first release 3.0.0, 4 Feb 2019
  2. v2 first release 2.0.0, 25 Apr 2018
  3. v1 first release 1.0.0, 28 Sept 2016
  4. v0 first release 0.1.0, 9 Aug 2013

Recent releases

VersionPublished
3.0.04 Feb 2019
2.0.025 Apr 2018
1.0.125 Mar 2018
1.0.028 Sept 2016
0.1.09 Aug 2013
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>=4
Runtimes
-
Unpacked size (npm)
17 kB
Dependencies (0)
None
npm install cssesc
  • jsDelivrhttps://cdn.jsdelivr.net/npm/cssesc@3.0.0/
  • unpkghttps://unpkg.com/cssesc@3.0.0/
  • esm.shhttps://esm.sh/cssesc@3.0.0
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): no category.