
Research
wget to Wipeout: Malicious Go Modules Fetch Destructive Payload
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
html-to-image-puppeteer
Advanced tools
Node.js library to convert HTML to image using Puppeteer.
To install the dependencies, run:
npm install
Usage
Here is an example of how to use the library:
const { convertHtmlToImage } = require('html-to-image-puppeteer');
const htmlContent = '<html><body><h1>Hello, World!</h1></body></html>';
const outputPath = 'output.png';
convertHtmlToImage(htmlContent, outputPath)
.then(() => {
console.log('Image created successfully!');
})
.catch((error) => {
console.error('Error creating image:', error);
});
Scripts
test: Run the tests using Jest.
lint: Lint the code using ESLint.
build: Compile the TypeScript code to JavaScript.
To run a script, use:
For example, to run the tests:
Contributing
Contributions are welcome! Please open an issue or submit a pull request.
Contributors
Subodha Sahu (subodha.sahu-graymatter@monotype.com)
License
This project is licensed under the MIT License. See the LICENSE file for details.
FAQs
Node.js library to convert HTML to image using puppeteer
The npm package html-to-image-puppeteer receives a total of 2 weekly downloads. As such, html-to-image-puppeteer popularity was classified as not popular.
We found that html-to-image-puppeteer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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'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.
Product
We redesigned Socket's first logged-in page to display rich and insightful visualizations about your repositories protected against supply chain threats.