Skip to content
JS
Package

specificity

Calculate the specificity of a CSS selector

v1.0.0, 23 Jun 2023MITESM + CommonJSTypes: Bundled
$ npm install specificity

Key numbers

As of 25 Sept 2026
Weekly downloads
2.3m
+46% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
1
Direct, from package.json
Last release
3 years ago
v1.0.0
GitHub stars
645
40 forks
Open issues / PRs
6 / 2
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
01m2m3m4mSept 2025Mar 2026Sept 2026High 3.3m (25 Aug 2026)Low 896.8k (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.

2,319,850 downloads last week, 11,512,133 in the last month. The 12-month change of +46% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
015 in total
Latest version
1.0.0, 23 Jun 20233 years ago
First published
20 Aug 2012
Last push to GitHub
23 Jun 20231,189 days before the snapshot
Repository archived
No
Open issues
6
Open pull requests
2
Commits, last 52 weeks
0
Dependents on npm
-

Major versions

  1. v1 first release 1.0.0, 23 Jun 2023
  2. v0 first release 0.1.0, 20 Aug 2012

Recent releases

VersionPublished
1.0.023 Jun 2023
0.4.128 Aug 2018
0.4.017 Jul 2018
0.3.226 Sept 2017
0.3.130 Jun 2017
0.3.05 Oct 2016
0.2.120 Jun 2016
0.2.019 Jun 2016
0.1.619 Jun 2016
0.1.56 Jan 2016
0.1.414 Apr 2014
0.1.323 Sept 2012
0.1.22 Sept 2012
0.1.120 Aug 2012
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
33 kB
Dependencies (1)
css-tree
npm install specificity
  • jsDelivrhttps://cdn.jsdelivr.net/npm/specificity@1.0.0/
  • unpkghttps://unpkg.com/specificity@1.0.0/
  • esm.shhttps://esm.sh/specificity@1.0.0
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

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