Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
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.
$ 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)
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 10 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.