
Product
Reachability for Ruby Now in Beta
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.
posthtml-inline-favicon
Advanced tools
posthtml-inline-favicon is a PostHTML plugin to inline favicons.
Before:
<head>
<link rel="shortcut icon" href="favicon.ico" />
</head>
After:
<head>
<link rel="icon" type="image/png" href="data:image/png;base64,..." />
</head>
yarn add -D posthtml-inline-favicon
# OR
npm i posthtml-inline-favicon
const fs = require('fs');
const posthtml = require('posthtml');
const { inlineFavicon } = require('posthtml-inline-favicon');
const html = fs.readFileSync('./index.html');
posthtml()
.use(inlineFavicon())
.process(html)
.then(result => fs.writeFileSync('./after.html', result.html));
By default, the plugin assumes that the file to process is in the same directory as the posthtml script. If not, specify the relative path to the html file in the options:
const fs = require('fs');
const posthtml = require('posthtml');
const { inlineFavicon } = require('posthtml-inline-favicon');
const html = fs.readFileSync('./public/index.html');
posthtml()
.use(inlineFavicon({ path: 'public' }))
.process(html)
.then(result => fs.writeFileSync('./after.html', result.html));
See the PostHTML Guidelines.
0.1.3 - 2024-04-19
rel attribute check to match new RegExp(/icon/) instead of only "shortcut icon"FAQs
PostHTML plugin to inline favicons
We found that posthtml-inline-favicon 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.

Product
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.

Research
/Security News
Malicious npm packages use Adspect cloaking and fake CAPTCHAs to fingerprint visitors and redirect victims to crypto-themed scam sites.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.