
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
react-pdf-flipbook-viewer
Advanced tools
A customizable React component to render PDF documents in a flipbook-style viewer — perfect for brochures, magazines, and interactive documents. ## Features
A customizable React component to render PDF documents in a flipbook-style viewer — perfect for brochures, magazines, and interactive documents.
Install using npm
npm install react-pdf-flipbook-viewer
or with yarn
yarn add react-pdf-flipbook-viewer
This Library requires Tailwindcss. Add the following line to your tailwind.config.js :
module.exports = {
content: [
'./node_modules/react-pdf-flipbook-viewer/**/*.{js,ts,jsx,tsx}',
],
}
This is a basic Example using nextjs:
'use client';
import {FlipbookViewer} from 'react-pdf-flipbook-viewer'
import React from 'react'
const Page = () => {
return (
<div className="block">
<FlipbookViewer pdfUrl='/demo.pdf' />
</div>
)
}
export default Page
Prop | Type | Description |
---|---|---|
pdfUrl | string | URL of the PDF document to be displayed. |
shareUrl | string | URL to be used for sharing the document. |
className | string | Additional CSS classes for styling. |
disableShare | boolean | Flag to disable the share button. |
You can run the following to setup a development environment:
git clone https://github.com/Timeler1/react-pdf-flipbook-viewer
cd react-pdf-flipbook-viewer
npm install
npm run build
You can use yalc
to test changes locally in another project.
Special thanks to the creator of the original project, mohitkumawat310.
Thanks also to the libraries used in this Project:
FAQs
A customizable React component to render PDF documents in a flipbook-style viewer — perfect for brochures, magazines, and interactive documents. ## Features
The npm package react-pdf-flipbook-viewer receives a total of 4 weekly downloads. As such, react-pdf-flipbook-viewer popularity was classified as not popular.
We found that react-pdf-flipbook-viewer demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.