UNPKG

document-viewer-ts

Version:

PDF and MS Doc viewer written in TypeScript for React and vanilla JavaScript

95 lines (94 loc) 2.57 kB
{ "name": "document-viewer-ts", "version": "1.0.0-legacy", "description": "PDF and MS Doc viewer written in TypeScript for React and vanilla JavaScript", "main": "dist/lib/index.js", "module": "dist/es2020/index.js", "types": "dist/es2020/index.d.ts", "engines": { "node": ">=18.15.0" }, "files": [ "dist", "styles" ], "scripts": { "build": "npm run build-es2020", "build-es2020": "tsc -p tsconfig.json", "build-example": "npm run build && tsc -p tsconfig.example.json && webpack", "clean": "rimraf ./dist ./build", "lint:no-fix": "eslint --config='.eslintrc.js' './src/*.{ts,tsx}' './tests/*.{ts,tsx}'", "lint": "npm run lint:no-fix -- --fix", "serve-example": "npm run build-example && node server.js", "prepublishOnly": "npm run clean && npm run build && npm run test && npm run lint:no-fix -- --max-warnings 0", "test": "npx playwright test" }, "repository": { "type": "git", "url": "git+https://github.com/mblink/document-viewer-ts.git" }, "keywords": [ "document", "viewer", "pdf", "doc", "docx", "typescript", "react", "javascript" ], "contributors": [ { "name": "Justin Leider", "email": "jleider@users.noreply.github.com" }, { "name": "Kyle Sutton", "email": "suttonkyle@users.noreply.github.com" } ], "license": "MIT", "bugs": { "url": "https://github.com/mblink/document-viewer-ts/issues" }, "homepage": "https://github.com/mblink/document-viewer-ts#readme", "devDependencies": { "@playwright/test": "^1.42.1", "@testing-library/react-hooks": "^7.0.2", "@types/eslint": "~8.37.0", "@types/estree": "^1.0.1", "@types/node": "^20.11.30", "@types/react": "^16.8.0", "@types/react-dom": "^16.8.0", "@typescript-eslint/eslint-plugin": "~5.59.6", "@typescript-eslint/parser": "~5.59.6", "buffer": "~6.0.0", "canvas": "~2.11.2", "core-js": "~3.23.3", "eslint": "~8.38.0", "express": "^4.18.3", "pdfjs-dist": "4.3.136", "process": "~0.11.10", "react": "^16.9.0", "react-dom": "^16.9.0", "react-test-renderer": "~16.14.0", "smoothscroll-polyfill": "~0.4.4", "ts-node": "~10.9.1", "typescript": "~5.0.4", "webpack": "5.89.0", "webpack-cli": "~5.0.1" }, "peerDependencies": { "pdfjs-dist": ">=3.4.120", "react": ">=16.8.0", "react-dom": ">=16.8.0" }, "peerDependenciesMeta": { "react": { "optional": true }, "react-dom": { "optional": true } } }