
Security News
/Research
npm Phishing Email Targets Developers with Typosquatted Domain
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.
react-files-viewer
Advanced tools
Viewer for differents files (pdf, other)
npm install --save react-files-viewer
import React from 'react'
import { PdfContainer } from 'react-files-viewer'
const App = () => {
return (
<PdfContainer
// your pdf url
url="http://www.africau.edu/images/default/sample.pdf"
// your page number
pageNumber={1}
/>
)
}
export default App
This component provides access to a PDF viewer with control over it (zoom, print, etc.).
<PdfContainer
// your pdf url
url="http://www.africau.edu/images/default/sample.pdf"
// your page number
pageNumber={1}
// get number of pages
getNumPages={(numPages) => console.log("numPages", numPages)}
/>
This component provides access ti a Mozilla PDF viewer with custom setting
<PdfViewer
// your pdf url
url="http://www.africau.edu/images/default/sample.pdf"
// your page number
pageNumber={1}
// get number of pages
getNumPages={(numPages) => console.log("numPages", numPages)}
// container style
containerStyle={}
// viewer style
viewerStyle={}
/>
MIT © vladimirevstratov
FAQs
Viewer for different files (pdf, other)
The npm package react-files-viewer receives a total of 49 weekly downloads. As such, react-files-viewer popularity was classified as not popular.
We found that react-files-viewer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
/Research
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.
Security News
Knip hits 500 releases with v5.62.0, refining TypeScript config detection and updating plugins as monthly npm downloads approach 12M.
Security News
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.