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

vue-files-preview

Package Overview
Dependencies
Maintainers
0
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-files-preview

## Introduce

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
271
decreased by-14.24%
Maintainers
0
Weekly downloads
 
Created
Source

Vue Files Preview

Introduce

This project is dedicated to previewing any file format on the Vue3 framework, supporting file previews such as docx, xlsx, pdf, image, txt, epub, markdown, code, etc

Project repository: https://github.com/SmallTeddy/vue-files-preview

📦 Install

🎩 From v1.0, it only works for Vue 3

# npm install
npm i vue-files-preview
# yarn install
yarn add vue-files-preview
# pnpm install
pnpm i vue-files-preview

Default

测试默认界面

doc、xls、ppt preview

Be pending

docx、xlsx、pdf preview

Using Vue Office to implement preview of doc, excel, and pdf files

docx preview xlsx preview pdf preview

audio、video preview

Due to the inability of native audio and video tags to support more audio and video formats

The audio is temporarily using vue-audio-player to implement

The video is temporarily using vue3-video-player to implement

image preview

using native img tags to implement image preview

jpg preview jpeg preview png preview

txt preview

txt preview

code preview

using codemirror to adapt the code file preview, support Angular, CSS, C++, Go, HTML, Java, JavaScript, JSON, Liquid, Markdown, PHP, Python, Rust, Sass, Vue, XML, YAML, C#, CMake, CoffeeScript, Dart, Elixir, GLSL, Haskell, Lua, Objective-C, R, Ruby, Scala, Shell, Swift, TeX, TypeScript, Visual Basic code file preview

html preview css preview js preview py preview rs preview go preview lua preview c preview

markdown preview

I have tried using both the marked and commonmark.js tool libraries for simple implementation, and ultimately adopted the markdown-it tool library

Currently, there may still be issues with formulas and other aspects, which will be further optimized in the future

markdown preview

epub preview

using epubjs to adapt to EPUB file preview and configure page-flipping function for secondary development

epub preview

FAQs

Package last updated on 22 Jul 2024

Did you know?

Socket

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.

Install

Related posts

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