# rework-image-set-plus

> Rework CSS plugin to add future-proofed support for W3C-style image-set notation.

Latest version **0.2.0** (published 2017-11-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install rework-image-set-plus
pnpm add rework-image-set-plus
yarn add rework-image-set-plus
bun add rework-image-set-plus
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2017-11-29 |
| First published | 2017-11-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | zhenbinjing |
| Maintainers | zhenbinjing |
| Keywords | rework, image, images, img, image-set, css, responsive |

## Links

- npm: https://www.npmjs.com/package/rework-image-set-plus
- Repository: https://github.com/zhenbinjing/rework-image-set-plus
- Issues: https://github.com/zhenbinjing/rework-image-set-plus/issues
- npm.io page: https://npm.io/package/rework-image-set-plus

## Dependencies (4)

- [rework](https://npm.io/package/rework.md) ^1.0.1
- [rework-walk](https://npm.io/package/rework-walk.md) ^1.0.0
- [balanced-match](https://npm.io/package/balanced-match.md) ^0.2.0
- [to-single-quotes](https://npm.io/package/to-single-quotes.md) ^2.0.0

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 0.2.0 (latest) — 2017-11-29
- 0.1.1 — 2017-11-29
- 0.1.0 — 2017-11-29
- 0.0.2 — 2017-11-28
- 0.0.1 — 2017-11-28

## README

```
npm install --save rework-image-set-plus
```

## Usage

```javascript
var fs = require('fs')
var rework = require('rework')
var imageSet = require('rework-image-set-plus')

var css = fs.readFileSync('css/my-file.css', 'utf8').toString()
var out = rework(css).use(imageSet()).toString()
```

### Input

```css
.bg-img {
  background-image: image-set(url('my-img.png') 4x);
}
```

### Output

```css
.bg-img {
  background-image: url('my-img@1x.png');
  background-image: image-set(url('my-img@1x.png') 1x,url('my-img@2x.png') 2x, url('my-img@3x.png') 3x, url('my-img.png') 4x);
}
```

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