
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
A NodeJS package for inlining external stylesheets and embedded style tags into html content.
npm install inlinecss
var inlineCSS = require('inlinecss');
var html = inlineCSS.inlineHtml('<style>p{height:50px;}</style><p>Text</p>');
Inlines raw html content
html - Raw html
options - See Options below
callback - Function
inlineCSS.inlineHtml(html, function(inlineHtml) {
console.log(inlineHtml);
});
Returns inlined html as an argument.
Creates an inlined html file
inFile - Location of file to be inlined
outFile - Destination of generated file
options - See Options below
callback - Function
inlineCSS.inlineFile(inFile, outFile, function() {
console.log('success');
});
No return arguments.
Define an optional base directory for external stylesheets
Type: String
Default: ''
Decode HTML entities. Eg: & -> &
Type: Boolean
Default: true
Inline content in <style> tags found in the HTML document
Type: Boolean
Default: true
Remove class and id attributes
Provide keepattr in the attribute value to prevent an attribute from being removed.
Type: Boolean
Default: true
MIT © Rɪpəl Labs
FAQs
Inlines stylesheets and style tags into html content
We found that inlinecss 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.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.