Skip to content
JS
Package

srcset

Parse and stringify the HTML `<img>` srcset attribute

v5.0.3, 12 Jan 2026MIT-Types: -
$ npm install srcset

Key numbers

As of 25 Sept 2026
Weekly downloads
1.7m
+101% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
8 months ago
v5.0.3
GitHub stars
-
Open issues / PRs
- / -
Contributors
-
Commits, last 52 weeks
-

Downloads

Last week 2026-09-15 to 2026-09-21
01m2m3mSept 2025Mar 2026Sept 2026High 2.5m (18 Aug 2026)Low 524.2k (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.

1,707,820 downloads last week, 8,073,537 in the last month. The 12-month change of +101% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
112 in total
Latest version
5.0.3, 12 Jan 20268 months ago
First published
22 Aug 2013
Last push to GitHub
-
Repository archived
-
Open issues
-
Open pull requests
-
Commits, last 52 weeks
-
Dependents on npm
104

Major versions

  1. v5 first release 5.0.0, 21 Nov 2021
  2. v4 first release 4.0.0, 14 May 2021
  3. v3 first release 3.0.0, 12 Jul 2020
  4. v2 first release 2.0.0, 28 Apr 2019
  5. v1 first release 1.0.0, 20 May 2015
  6. v0 first release 0.1.0, 22 Aug 2013

Recent releases

VersionPublished
5.0.312 Jan 2026
5.0.216 Sept 2025
5.0.129 Jan 2024
5.0.021 Nov 2021
4.0.014 May 2021
3.0.119 Apr 2021
3.0.012 Jul 2020
2.0.121 Nov 2019
2.0.028 Apr 2019
1.0.020 May 2015
0.1.130 Apr 2014
0.1.022 Aug 2013
Module format
-Not determined from package.json
TypeScript types
-
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
-
Dependencies (0)
None
npm install srcset
  • jsDelivrhttps://cdn.jsdelivr.net/npm/srcset@5.0.3/
  • unpkghttps://unpkg.com/srcset@5.0.3/
  • esm.shhttps://esm.sh/srcset@5.0.3
Sources: npm registry, npm downloads API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): completeness 0.5 < 0.6 (missing: github_owner, stars, module_type, category); GitHub data not fetched yet; no category.