UNPKG

reactjs-file-preview

Version:

Effortlessly preview images, videos, and PDFs in your React applications with MyFilePreview. This lightweight and customizable component intelligently detects file types and displays them.

61 lines (60 loc) 1.65 kB
{ "name": "reactjs-file-preview", "private": false, "version": "1.0.5", "type": "module", "description": "Effortlessly preview images, videos, and PDFs in your React applications with MyFilePreview. This lightweight and customizable component intelligently detects file types and displays them.", "main": "dist/index.js", "module": "dist/index.js", "files": [ "dist" ], "scripts": { "dev": "vite", "build": "tsc -b && vite build", "lint": "eslint .", "preview": "vite preview", "prepublishOnly": "npm run build" }, "dependencies": { "ajv": "^8.17.1", "pdfjs-dist": "^2.10.377", "vite-plugin-css-injected-by-js": "^3.5.2" }, "repository": { "type": "git", "url": "https://github.com/Akshay2002Singh/reactjs-file-preview.git" }, "keywords": [ "react", "file-preview", "pdf-preview", "image-preview" ], "author": "Akshay Singh,Aditi Jain", "license": "MIT", "publishConfig": { "access": "public" }, "peerDependencies": { "react": "^18.0.0", "react-dom": "^18.0.0" }, "devDependencies": { "@eslint/js": "^9.21.0", "@types/node": "^22.13.9", "@types/react": "^19.0.10", "@types/react-dom": "^19.0.4", "@vitejs/plugin-react": "^4.3.4", "eslint": "^9.21.0", "eslint-plugin-react-hooks": "^5.1.0", "eslint-plugin-react-refresh": "^0.4.19", "globals": "^15.15.0", "react": "^18.0.0", "react-dom": "^18.0.0", "typescript": "~5.7.2", "typescript-eslint": "^8.24.1", "vite": "^6.2.2", "vite-plugin-dts": "^4.5.3" } }