Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

some_doc_viewers

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

some_doc_viewers - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

6

package.json
{
"name": "some_doc_viewers",
"version": "0.0.2",
"version": "0.0.3",
"type": "module",

@@ -14,2 +14,6 @@ "description": "A document viewer library with React components for PDF, PowerPoint, Excel, and Word documents. The PowerPoint viewer can also be used standalone without React.",

},
"repository": {
"type": "git",
"url": "git+https://github.com/Tennen/some_doc_viewers"
},
"keywords": [

@@ -16,0 +20,0 @@ "document",

24

README.md

@@ -14,18 +14,2 @@ # some_doc_viewers

Here's a diagram illustrating the process:
```mermaid
graph TD
A[Load document file] --> B[Determine file type]
B --> C[Render preview component]
C --> D[Convert and display content]
subgraph "Preview Components"
E1[PPTXPreview] --> C
E2[PDFPreview] --> C
E3[XLSXPreview] --> C
E4[DOCXPreview] --> C
end
```
## Key components

@@ -40,10 +24,2 @@

## Main components and their functionality
- `Viewer.tsx`: The main component that determines the file type and renders the appropriate preview component.
- `PPTXPreview.tsx`: Uses the `usePPTX` hook to convert and display PPTX files.
- `PDFPreview.tsx`: Renders PDF files page by page using react-pdf.
- `XLSXPreview.tsx`: Converts Excel files to a table format for display.
- `DOCXPreview.tsx`: Converts DOCX files to HTML for rendering.
## PPTX Conversion and pptxjs

@@ -50,0 +26,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc