# rework-plugin-url

> url() plugin for rework, formerly included in core

Latest version **1.1.0** (published 2015-07-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install rework-plugin-url
pnpm add rework-plugin-url
yarn add rework-plugin-url
bun add rework-plugin-url
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2015-07-31 |
| First published | 2014-06-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 25 |
| Author | reworkcss |
| Maintainers | bclinkinbeard, slexaxton, necolas, conradz, jongleberry |
| Keywords | browser, server, css, preprocess, transform |

## Links

- npm: https://www.npmjs.com/package/rework-plugin-url
- Repository: https://github.com/reworkcss/rework-plugin-url
- Issues: https://github.com/reworkcss/rework-plugin-url/issues
- npm.io page: https://npm.io/package/rework-plugin-url

## Dependencies (1)

- [rework-plugin-function](https://npm.io/package/rework-plugin-function.md) ^1.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

- 1.1.0 (latest) — 2015-07-31
- 1.0.1 — 2014-06-21
- 1.0.0 — 2014-06-20
- 0.9.0 — 2014-06-16

## README

rework-plugin-url
====================

[![Build Status](https://travis-ci.org/reworkcss/rework-plugin-url.png)](https://travis-ci.org/reworkcss/rework-plugin-url)

Map `url()` calls. Replace all `url()`s using a given function.

```js
var css = rework(read(css))
  .use(rework.url(function(url){
    return 'http://example.com' + url;
  }))
  .toString()
```

```css
body {
  background: url(/images/bg.png);
}
```

yields:

```css
body {
  background: url(http://example.com/images/bg.png);
}
```

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