Socket
Socket
Sign inDemoInstall

rework

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rework - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

lib/plugins/url.js

5

History.md
0.4.0 / 2012-09-17
==================
* add `url()` mapping plugin
0.3.0 / 2012-09-06

@@ -3,0 +8,0 @@ ==================

1

lib/rework.js

@@ -86,1 +86,2 @@

exports.at2x = require('./plugins/at2x');
exports.url = require('./plugins/url');

2

package.json
{
"name": "rework",
"version": "0.3.0",
"version": "0.4.0",
"description": "CSS manipulations built on CSSOM",

@@ -5,0 +5,0 @@ "keywords": ["css", "manipulation", "preprocess", "transform"],

@@ -177,2 +177,17 @@ # rework

### .url(callback)
Map `url()` calls, useful for inlining images as data-uris, converting
relative paths to absolute etc.
```js
function rewrite(url) {
return 'http://example.com' + url;
}
rework(str)
.use(rework.url(rewrite))
.toString()
```
### .keyframes([vendors])

@@ -179,0 +194,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc