# parse-srcset

> A spec-conformant JavaScript parser for the HTML5 srcset attribute

Latest version **1.0.2** (published 2016-12-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install parse-srcset
pnpm add parse-srcset
yarn add parse-srcset
bun add parse-srcset
```

## Health

**Score 23/100 (F)** — status: abandoned.

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2016-12-10 |
| First published | 2016-12-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/parse-srcset) |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 66 |
| Author | Alex Bell |
| Maintainers | albell |

## Links

- npm: https://www.npmjs.com/package/parse-srcset
- Repository: https://github.com/albell/parse-srcset
- Homepage: https://github.com/albell/parse-srcset#readme
- Issues: https://github.com/albell/parse-srcset/issues
- npm.io page: https://npm.io/package/parse-srcset

## Recent versions

- 1.0.2 (latest) — 2016-12-10
- 1.0.1 — 2016-12-10
- 1.0.0 — 2016-12-10

## README

# parse-srcset

A javascript parser for the [HTML5 srcset](http://www.w3.org/TR/html-srcset/) attribute, based on the [WHATWG reference algorithm](https://html.spec.whatwg.org/multipage/embedded-content.html#parse-a-srcset-attribute). It has an extensive test suite based on the [W3C srcset conformance checker](http://w3c-test.org/html/semantics/embedded-content/the-img-element/srcset/parse-a-srcset-attribute.html). It conforms to the jQuery JSCS style rules.

Tests are written using Intern-geezer for compatibility.

To run the tests in console:

```
$ npm test
```

Or in a browser, just open the html file at:

```
node_modules/intern-geezer/client.html?config=tests/intern
```

I’m on twitter [@tweetywheaty](https://twitter.com/tweetywheaty).

---
_Source: https://npm.io/package/parse-srcset · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
