npm · npm:srcset
srcset active
Parse and stringify the HTML `<img>` srcset attribute
The latest stable version of srcset is 5.0.3, published on 2026-01-12. Verified by Vigia on 2026-11-12.
| Latest stable version | 5.0.3 |
|---|---|
| Published | 2026-01-12 15:58:08 UTC |
| Install | npm install srcset@latest |
| Requires (engines) | {"node":"^12.20.0 || ^14.13.1 || >=16.0.0"} |
| Peer dependencies | — |
| Dist-tags | latest: 5.0.3 |
| License | MIT |
| Advisories on latest version | none known |
| Last verified | 2026-11-12 12:26:13 UTC |
| Sources | api.deps.dev, registry.npmjs.org, registry.npmjs.org |
Maintenance
| Activity | slowing down |
|---|---|
| Last stable release | 2026-01-12 15:58:08 UTC · 304 days ago |
| Stable releases in the last 12 months | 1 |
| Published versions | 12 |
Heuristic based only on release dates; it does not measure issue or security response times.
Version history
| Version | Published |
|---|---|
5.0.3 | 2026-01-12 15:58:08 UTC |
5.0.2 | 2025-09-16 02:28:11 UTC |
5.0.1 | 2024-01-29 12:46:18 UTC |
5.0.0 | 2021-11-21 12:53:36 UTC |
4.0.0 | 2021-05-14 10:42:19 UTC |
3.0.1 | 2021-04-19 18:50:14 UTC |
3.0.0 | 2020-07-12 13:51:51 UTC |
2.0.1 | 2019-11-21 09:43:51 UTC |
2.0.0 | 2019-04-28 04:36:02 UTC |
1.0.0 | 2015-05-20 21:11:47 UTC |
0.1.1 | 2014-04-30 22:50:37 UTC |
0.1.0 | 2013-08-22 00:02:57 UTC |
Showing the 12 most recent of 12 versions. JSON
Version compatibility
Newest stable version that declares support for each runtime version (from the requirements published with each version).
| Runtime | Newest compatible version |
|---|---|
node 16 | 5.0.3 |
node 18 | 5.0.3 |
node 20 | 5.0.3 |
node 22 | 5.0.3 |
node 24 | 5.0.3 |
Give your AI agent these facts
Vigia is a free MCP server: your coding agent checks versions, breaking changes and vulnerabilities before it writes code. No signup, no API key.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Add to CursorAdd to VS Code★ Star on GitHub
Any other MCP client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Agent skill (SKILL.md): tells the agent when to use Vigia · GitHub Action for pull requests
Frequently asked questions
What is the latest version of srcset?
The latest stable version of srcset is 5.0.3, published on 2026-01-12. Verified by Vigia on 2026-11-12.
How do I install the latest version of srcset?
Run npm install srcset@latest. The latest stable version is 5.0.3 (verified 2026-11-12).
Is srcset deprecated?
No. srcset is not marked as deprecated in the registry.
Which Node.js version does srcset require?
srcset 5.0.3 declares this requirement: {"node":"^12.20.0 || ^14.13.1 || >=16.0.0"}.
Does srcset 5.0.3 have known vulnerabilities?
No known advisories affect srcset 5.0.3 according to the data Vigia checks.
Is srcset still maintained?
srcset published 1 stable releases in the last 12 months; the most recent was 304 days ago. Activity: slowing down.
Observed changes
No changes observed yet since Vigia started tracking this package.
Related packages
- lazy
- cycle
- probe-image-size
- @react-router/node
- lodash._root
- @figspec/components
- config
- @testing-library/cypress
- json-ptr
- asn1.js-rfc2560
- ultron
- rrweb
Badges for your README
Show the latest version, maintenance status and deprecation status of this package. Copy the Markdown:
[](https://vigia.coredls.cloud/npm/srcset) [](https://vigia.coredls.cloud/npm/srcset) [](https://vigia.coredls.cloud/npm/srcset)
For agents
GET https://vigia.coredls.cloud/v1/packages/npm/srcset
GET https://vigia.coredls.cloud/v1/packages/npm/srcset/versions/{version}