
Security News
CISA Kills Off RSS Feeds for KEVs and Cyber Alerts
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
posthtml-favicons
Advanced tools
This module is using favicons to generate all of favicons based on a single image
Use a simple <link>
tag to include your favicon. This plugin will add other related tags and writes generated images to disk.
<html>
<head>
<link rel="icon" href="path/to/icon.png" />
</head>
<body></body>
</html>
See the Options
interface in src/index.ts
For favicon configurations see favicon repo:
https://github.com/evilebottnawi/favicons#nodejs
const favIconPlugin = require("posthtml-favicons");
const html = `
<!doctype html>
<html>
<head>
<link rel="icon" href="my-icon.png" />
</head>
<body>
</body>
</html>`;
posthtml()
.use(favIconPlugin({ outDir: "./dist", configuration: { path: "/icons" } }))
.process(html)
.then((res) => {
// files are written to dist folder
// res.html has new tags
});
There is an example repo for demonstrating usage with Parcel Bundler
FAQs
PostHTML Favicon generator
The npm package posthtml-favicons receives a total of 168 weekly downloads. As such, posthtml-favicons popularity was classified as not popular.
We found that posthtml-favicons 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
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.