Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
postcss-prefixer
Advanced tools
PostCSS plugin to prefix all classes and ids
Before using the plugin, make sure to have installed the PostCSS before:
npm install postcss
After installing postcss you can install the plugin:
npm install postcss-prefixer
var postcss = require('postcss'),
prefixer = require('postcss-prefixer');
var cssFile = fs.readFileSync('path/to/file.css', 'utf-8').toString();
var output = postcss().use(
prefixer('prefix-', {
ignore: [
/col-/,
'.class-to-ignore',
'#id-to-ignore'
]
})
).process(cssFile);
Before:
#my-id {
color: green;
}
.my-class {
color: green;
}
.my-class .another-class {
box-sizing: border-box;
}
.component.is-active.sub-component.is-disabled {
box-sizing: border-box;
}
.class-to-ignore {
color: blue;
}
After:
#prefix-my-id {
color: green;
}
.prefix-my-class {
color: green;
}
.prefix-my-class .prefix-another-class {
box-sizing: border-box;
}
.prefix-component.prefix-is-active.prefix-sub-component.prefix-is-disabled {
box-sizing: border-box;
}
.class-to-ignore {
color: blue;
}
Plugin based on postcss-class-prefix create by thompsongl.
FAQs
postcss plugin to prefix all css selector classes and ids
The npm package postcss-prefixer receives a total of 8,294 weekly downloads. As such, postcss-prefixer popularity was classified as popular.
We found that postcss-prefixer 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
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.