
Research
NPM targeted by malware campaign mimicking familiar library names
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
htmltobase64
Advanced tools
Extremely simple tool to convert a HTML document to a base64 image
const htmlToBase64 = require("htmltobase64")
let width = 1280;
let height = 1080;
let replacements = {
user: "dwiftejb"
} // replace anything that has {{key}} to value
let selector = "body"; // selects the element to screenshot and save as base64, leave empty to screenshot whole page.
async function main() {
const base64 = await htmlToBase64("<h1>hello {{user}}</h1>", width, height, replacements, selector);
console.log(base64);
}
main();
FAQs
turns an html webpage into a base64 encoded image
The npm package htmltobase64 receives a total of 6 weekly downloads. As such, htmltobase64 popularity was classified as not popular.
We found that htmltobase64 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
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.