Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
css-print-framework
Advanced tools
Simply include the right stylesheet(s) in your html and load it only for a printer.
Simply include the right stylesheet(s) in your html and load it only for a printer.
$ npm install css-print-framework
Load css into <head>
like this:
<!-- Load print.css for happy printing -->
<link rel="stylesheet" href="print.css">
<!-- Set page size here: A5, A4 or A3 -->
<!-- Set also "landscape" if you need -->
<style>@page { size: A5 }</style>
Set the class of <body>
and also set "sheet" for each sheet.
<!-- Set "A5", "A4" or "A3" for class name -->
<!-- Set also "landscape" if you need -->
<body class="A5">
<!-- Each sheet element should have the class "sheet" -->
<!-- "padding-**mm" is optional: you can set 10, 15, 20 or 25 -->
<section class="sheet padding-10mm">
<!-- Write HTML just like a web page -->
<article>This is an A5 document.</article>
</section>
<!-- The title will be on a new page -->
<h1 class="break-before">My title</h1>
<p class="break-after">I will break after this paragraph</p>
<!-- Break here, the next paragraph will be on a new page -->
<p>I am on a new page</p>
<!-- Avoid break inside -->
<div class="avoid-break-inside">
<img src="image.png" />
<p>I really don't want this part to be cut</p>
</div>
</body>
All available page sizes is listed below:
type | expression | learning cost | editable | in-browser | multipage |
---|---|---|---|---|---|
HTML | Enough | already known | No | OK | ~100 pages * |
SVG | Enough | not so difficult | No | OK | |
Perfect | difficult | No | NG | no limit ** | |
Excel | Not cool | sigh | Yes | NG | uncontrollable |
FAQs
Simply include the right stylesheet(s) in your html and load it only for a printer.
The npm package css-print-framework receives a total of 0 weekly downloads. As such, css-print-framework popularity was classified as not popular.
We found that css-print-framework 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.