UNPKG

react-pdf-ner-annotator

Version:

A React component to annotate named entities directly onto a PDF.

80 lines (79 loc) 2.31 kB
{ "name": "react-pdf-ner-annotator", "version": "3.4.1", "private": false, "files": [ "lib" ], "main": "./lib/index.js", "types": "./lib/index.d.ts", "dependencies": { "@react-hook/mouse-position": "^4.1.3", "lodash": "^4.17.21", "object-hash": "^3.0.0", "pdfjs-dist": "2.4.456", "react": "^18.2.0", "react-dom": "^18.2.0", "react-intersection-observer": "^9.4.0", "react-router-dom": "^6.4.1", "react-scripts": "^4.0.1", "tesseract.js": "^3.0.3" }, "scripts": { "start-development": "npm start", "link": "npm link example/node_modules/react", "start": "npm run link && npm run build && npm start --prefix example", "build": "rimraf lib && tsc -p ./ --declaration --outDir lib/ && npm run sass-compile && npm run copy", "sass-compile": "sass --no-source-map --style=compressed src/scss:lib/css", "copy": "copyfiles -u 1 \"./src/**/*{.svg,scss,js}\" \"lib\"", "test": "react-scripts test", "lint": "eslint \"src/**/*{.ts,tsx}\" --fix", "prettier": "prettier --write \"src/**/*{.ts,tsx}\"" }, "eslintConfig": { "extends": "react-app" }, "browserslist": { "production": [ ">0.2%", "not dead", "not op_mini all" ], "development": [ "last 1 chrome version", "last 1 firefox version", "last 1 safari version" ] }, "repository": { "type": "git", "url": "git+https://github.com/MaartenBloemen/react-pdf-ner-annotator.git" }, "author": "Maarten Bloemen", "license": "MIT", "bugs": { "url": "https://github.com/MaartenBloemen/react-pdf-ner-annotator/issues" }, "keywords": [ "react-component", "typescript", "PDF", "NER" ], "devDependencies": { "@types/lodash": "^4.14.185", "@types/node": "^18.7.20", "@types/pdfjs-dist": "^2.10.378", "@types/react": "^18.0.21", "@types/react-dom": "^18.0.6", "@typescript-eslint/eslint-plugin": "^5.38.0", "@typescript-eslint/parser": "^5.38.0", "copyfiles": "^2.4.1", "eslint": "^7.11.0", "eslint-config-prettier": "^8.5.0", "eslint-plugin-prettier": "^4.2.1", "prettier": "^2.7.1", "sass": "^1.55.0", "typescript": "^4.8.3" } }