Socket
Socket
Sign inDemoInstall

css-b64-images

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-b64-images - npm Package Compare versions

Comparing version 0.2.4 to 0.2.5

11

lib/css-b64-images.js

@@ -0,1 +1,3 @@

'use strict';
var fs = require('fs'),

@@ -19,3 +21,4 @@ Path = require('path'),

'.webp' : 'image/webp',
'.woff' : 'application/x-font-woff'
'.woff' : 'application/x-font-woff',
'.woff2' : 'application/font-woff2'
};

@@ -34,5 +37,7 @@

if(!css.replace && css.toString) css = css.toString();
var urls = [], match;
while (match = imgRegex.exec(css)) {
var urls = [],
match = imgRegex.exec(css);
while(match) {
urls.push(match[1]);
match = imgRegex.exec(css)
}

@@ -39,0 +44,0 @@ forEachSeries(urls, base64img, function(err){

@@ -5,3 +5,3 @@ {

"description": "Base64 images in your css",
"version": "0.2.4",
"version": "0.2.5",
"main": "lib/css-b64-images.js",

@@ -13,5 +13,3 @@ "bin": "bin/css-b64-images",

},
"dependencies": {
"async": "~0.1.22"
},
"dependencies": {},
"devDependencies": {

@@ -24,6 +22,8 @@ "mocha": "~1.1.0",

},
"licenses": [{
"type": "MIT",
"url": "http://www.opensource.org/licenses/MIT"
}],
"licenses": [
{
"type": "MIT",
"url": "http://www.opensource.org/licenses/MIT"
}
],
"optionalDependencies": {},

@@ -30,0 +30,0 @@ "engines": {

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