Socket
Book a DemoInstallSign in
Socket

component-url2base64

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

component-url2base64

A component builder plugin to rewrite CSS urls to their base64 data counterpart

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

Component URL To Base64

A component plugin to rewrite all known CSS url('') directives to their url(data:type;base64,base64String) counterparts. Known assets are the assets which are found in the given asset paths. Check examples below for more information.

Installation

npm install component-url2base64

Example

var url2base64 = require('component-url2base64');

url2base64.configure([{
	path: './path/to/your/asset/folder',
	url: '/url/path/representing/above/asset/folder'
}]);
builder.use(url2base64.hook);

License

component-url2base64 is distributed under the MIT License.

FAQs

Package last updated on 14 Jul 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts