Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
@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.
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.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.