Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
@vivliostyle/print
Advanced tools
Allows page-layouting using the vivliostyle for printing within a website without destroying the original layout
Allows page-layouting using the vivliostyle for printing within a website without destroying the original layout
npm install @vivliostyle/print --save
import {printHTML} from '@vivliostyle/print'
const htmlDoc = `<!doctype html>
<html>
<head>
<style>
... Add your CSS code here ...
</style>
</head>
<body>
... Add your HTML code here ...
</body>
</html>`,
config = {
title: 'my printed page',
printCallback: iframeWin => iframeWin.print() // optional: only needed if calling something other than window.print() for printing.
}
printHTML(htmlDoc, config)
You can also take a look at the demo (sourcecode) .
git clone https://github.com/vivliostyle/vivliostyle-print.git
cd vivliostyle-print
npm install
npm run build_demo
php -S localhost:8000 -t demo/
On larger projects, it can be difficult to ensure that no developer is accidentally breaking the terms of the Vivliostyle AGPL license. Vivliostyle-print only exposes one of the functions of Vivliostyle that does not allow the sharing of complex data structures between surrounding code and Vivliostyle, which is the most important requirements to follow when using VIvliostyle in combination with a non-open source project. For more information cocnerning the license, read this.
Please report any bugs and open pull requests on the Vivliostyle main repo.
FAQs
Allows page-layouting using the vivliostyle for printing within a website without destroying the original layout
The npm package @vivliostyle/print receives a total of 87 weekly downloads. As such, @vivliostyle/print popularity was classified as not popular.
We found that @vivliostyle/print 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.
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.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.