Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
@garage-panda/react-pdf-export
Advanced tools
The package is under development and this is the Alpha version of it. Stay still, we are doing our best to finish it soon.
A PDF generator for React applications.
It allows you to either download or print a pdf file with your own content.
Run
npm i @garage-panda/react-pdf-export
Import the package
import { PdfExport, useGeneratePdf } from '@garage-panda/react-pdf-export';
Retrieve the component and the useEffect
const { generatePdf, containerRef } = useGeneratePdf();
That's it!
import { PdfExport, useGeneratePdf } from '@garage-panda/react-pdf-export';
const App() {
const { generatePdf, containerRef } = useGeneratePdf();
return (
<React.Fragment>
<button onClick={generatePdf}>Click me</button>
<PdfExport containerRef={containerRef} options={{
styles: ['https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css'],
scripts: ['https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js']
}}>
<h1>This is the content of the PDF in here</h1>
<p>Yes, you can put any child</p>
<div>Because it's awesome!</div>
</PdfExport>
</React.Fragment>
);
}
export default App;
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
FAQs
A PDF generator for React applications
The npm package @garage-panda/react-pdf-export receives a total of 25 weekly downloads. As such, @garage-panda/react-pdf-export popularity was classified as not popular.
We found that @garage-panda/react-pdf-export demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.