
Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
A converter which could convert HTML document to SVG image.
Even if a JS-Rendered HTML!
Available on NPM as fetch.
$ npm install html2svg
const html2svg = require('html2svg');
const input = 'file:///root/path/file.ext'; // Or: http://google.com
const output = '/root/path/file.ext';
const needJSRender = true;
html2svg({input, output, needJSRender}).then(res => {
console.log(res);
}).catch(err => {
console.error(err);
});
const html2svg = require('html2svg');
const input = 'file:///root/path/file.ext'; // Or: http://google.com
const output = '/root/path/file.ext';
(async function() {
try {
let res = await html2svg({input, output});
console.log(res);
} catch(err) {
console.error(err)
}
}());
Param | Description | required | default | tip |
---|---|---|---|---|
input | Input path. | true | null | File URIs or HTTP URIs |
output | Ouput path with file name. | true | null | - |
needJSRender | Tell it whether process JS Rendering or not. | false | null | - |
Please open an issue for support.
FAQs
A module which can convert HTML document to svg file.
The npm package html2svg receives a total of 11 weekly downloads. As such, html2svg popularity was classified as not popular.
We found that html2svg 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.