Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rework

Package Overview
Dependencies
Maintainers
2
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.18.1 to 0.18.2

6

component.json
{
"name": "rework",
"version": "0.18.1",
"version": "0.18.2",
"description": "CSS manipulations built on CSSOM",
"keywords": ["css", "manipulation", "preprocess", "transform"],
"dependencies": {
"visionmedia/css": "1.4.1",
"visionmedia/css": "1.4.3",
"visionmedia/debug": "*",

@@ -12,3 +12,3 @@ "visionmedia/rework-visit": "1.0.0",

"component/path": "1.0.0",
"jonathanong/rework-inherit": "0.1.5",
"reworkcss/rework-inherit": "0.2.1",
"jankuca/hsb2rgb": "1.0.2"

@@ -15,0 +15,0 @@ },

0.18.2 / 2013-10-16
==================
* update css dep
* bump rework-inherit
0.18.1 / 2013-09-03

@@ -3,0 +9,0 @@ ==================

{
"name": "rework",
"version": "0.18.1",
"version": "0.18.2",
"description": "CSS manipulations built on CSSOM",

@@ -12,3 +12,3 @@ "keywords": ["css", "manipulation", "preprocess", "transform"],

"dependencies": {
"css": "1.4.1",
"css": "1.4.3",
"commander": "1.0.4",

@@ -19,3 +19,3 @@ "color-parser": "0.1.0",

"debug": "*",
"rework-inherit": "0.1.5",
"rework-inherit": "0.2.1",
"rework-visit": "1.0.0"

@@ -22,0 +22,0 @@ },

@@ -23,3 +23,3 @@ # rework

- [rework mixins](https://github.com/visionmedia/rework-mixins)
- [significant whitespace](https://github.com/visionmedia/css-whitespace)
- [significant whitespace](https://github.com/visionmedia/css-whitespace) - nested and indented syntax like Stylus and SASS
- third-party [plugins](https://github.com/visionmedia/rework/wiki/Plugins)

@@ -65,3 +65,2 @@

- [prefixSelectors](#prefixselectorsstring) — add prefixes to selectors
- [url](#urlcallback) — rewrite `url()`s with a callback function
- [keyframes](#keyframesvendors) — add __@keyframe__ vendor prefixing

@@ -72,2 +71,3 @@ - [colors](#colors) — add colour helpers like `rgba(#fc0, .5)`

- [references](#references) — add property references support `height: @width` etc
- [url](#urlfn) - rewrite `url()`s with a given function
- third-party [plugins](https://github.com/visionmedia/rework/wiki/Plugins)

@@ -594,2 +594,28 @@

### .url(fn)
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);
}
```
## Example

@@ -596,0 +622,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