Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
edp-build-url-embed
Advanced tools
Embed URL's as base64 strings inside your stylesheets using edp build
Embed URL's as base64 strings inside your stylesheets using edp build
npm install edp-build-url-embed --save-dev
Add code in edp-build-config.js
var UrlEmbededProcessor = require('edp-build-url-embed');
var urlEmbed = new UrlEmbededProcessor();
Type: Boolean
Default: false
Specifies the mode of embedding.
true
(inclusive) means that you have to manually mark each URL that needs to be embedded using the /* embed */
comment.false
(exclusive) means that every URL is embedded, except those that are marked with /* noembed */
comment.Type: Array
Default: ['.jpg', '.png']
Specifies the extensions of urls to be embed.
Type: Array
Default: ['*.styl', '*.css', '*.less']
Input files.
.exclude-me {
background-image: url('exclude_me.png'); /* noembed */
}
.include-me {
background-image: url('include_me.png'); /* embed */
}
.include-me1 {
background: transparent url('include_me.png') /* embed */ center center no-repeat;
}
.include-me2 {
background-image: -webkit-image-set(url('include_me1.png') /* embed */ 1x, url('include_me2.png') /* embed */ 2x);
}
FAQs
Embed URL's as base64 strings inside your stylesheets using edp build
We found that edp-build-url-embed demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.