
Security News
Python Adopts Standard Lock File Format for Reproducible Installs
Python has adopted a standardized lock file format to improve reproducibility, security, and tool interoperability across the packaging ecosystem.
slimerjs-capture
Advanced tools
Uses SlimerJS (headless Gecko/Firefox) to render an SVG or HTML buffer
A thin wrapper around SlimerJS (headless Firefox/Gecko) that exposes an API to a Node.js application for rendering a web page as a png file. Requires Node.js v0.12+.
$ npm install --save slimerjs-capture
const capturePng = require("slimerjs-capture").capturePng;
// ...
var buffer = fs.readFileSync("foo.html");
capturePng(buffer, "html", 640, 480, (err, result) => {
if (err) return console.error(err);
fs.writeFileSync("foo.png", result);
});
capturePng(buffer, extension, width, height, callback)
capturePngPages(buffer, extension, width, height, numPages, callback)
This module has been tested to work on Windows 10. It should in principle work on any version of Windows supported by SlimerJS.
Note: If using on Windows, I have seen issues where running multiple jobs in parallel causes issues with file permissions. It is therefore recommended that you run only one slimerjs-capture job at a time.
PRs are welcome. This module intentionally does not have any fancy build systems or anything. It is intended to be run in Node without any preprocessing. Use ES5 syntax and follow the code style in the files you are editing (tab indentation and soft wraps). Run npm test
and add new test cases for the feature you are contributing.
It would be easy to make this module support JPG or PDF output. See SlimerJS webpage doc page. I just didn't have the personal need when I made this module to support other output types. A PR is welcome.
FAQs
Uses SlimerJS (headless Gecko/Firefox) to render an SVG or HTML buffer
The npm package slimerjs-capture receives a total of 16 weekly downloads. As such, slimerjs-capture popularity was classified as not popular.
We found that slimerjs-capture 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
Python has adopted a standardized lock file format to improve reproducibility, security, and tool interoperability across the packaging ecosystem.
Security News
OpenGrep has restored fingerprint and metavariable support in JSON and SARIF outputs, making static analysis more effective for CI/CD security automation.
Security News
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.