
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
react-doc-viewer-plus
Advanced tools
A powerful document viewer component for React that supports various file formats including images, PDF, Office documents, OFD files and videos
A powerful document viewer component for React that supports various file formats including images, PDF, Office documents, OFD files and videos.
npm install react-doc-viewer-plus
# or
yarn add react-doc-viewer-plus
import { DocViewerPlus } from 'react-doc-viewer-plus';
function App() {
const [visible, setVisible] = useState(false);
return (
<DocViewerPlus
previewFile={{
fileUrl: 'https://example.com/sample.pdf',
fileName: 'Sample Document.pdf'
}}
visibleViewerPlus={visible}
onVisibleChange={() => setVisible(!visible)}
/>
);
}
Prop | Type | Description |
---|---|---|
previewFile | { fileUrl?: string; fileName?: string; } | The file to preview |
response | { url?: string; } | Optional response object containing alternative URL |
visibleViewerPlus | boolean | Controls the visibility of the viewer |
onVisibleChange | () => void | Callback when visibility changes |
MIT
FAQs
A powerful document viewer component for React that supports various file formats including images, PDF, Office documents, OFD files and videos
The npm package react-doc-viewer-plus receives a total of 69 weekly downloads. As such, react-doc-viewer-plus popularity was classified as not popular.
We found that react-doc-viewer-plus 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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.