package.json 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. {
  2. "name": "tesseract.js",
  3. "version": "5.1.1",
  4. "description": "Pure Javascript Multilingual OCR",
  5. "main": "src/index.js",
  6. "types": "src/index.d.ts",
  7. "unpkg": "dist/tesseract.min.js",
  8. "jsdelivr": "dist/tesseract.min.js",
  9. "scripts": {
  10. "start": "node scripts/server.js",
  11. "build": "rimraf dist && webpack --config scripts/webpack.config.prod.js && rollup -c scripts/rollup.esm.mjs",
  12. "profile:tesseract": "webpack-bundle-analyzer dist/tesseract-stats.json",
  13. "profile:worker": "webpack-bundle-analyzer dist/worker-stats.json",
  14. "prepublishOnly": "npm run build",
  15. "wait": "rimraf dist && wait-on http://localhost:3000/dist/tesseract.min.js",
  16. "test": "npm-run-all -p -r start test:all",
  17. "test:all": "npm-run-all wait test:browser:* test:node:all",
  18. "test:node": "nyc mocha --exit --bail --require ./scripts/test-helper.js",
  19. "test:node:all": "npm run test:node -- ./tests/*.test.js",
  20. "test:browser-tpl": "mocha-headless-chrome -a incognito -a no-sandbox -a disable-setuid-sandbox -a disable-logging -t 300000",
  21. "test:browser:detect": "npm run test:browser-tpl -- -f ./tests/detect.test.html",
  22. "test:browser:recognize": "npm run test:browser-tpl -- -f ./tests/recognize.test.html",
  23. "test:browser:scheduler": "npm run test:browser-tpl -- -f ./tests/scheduler.test.html",
  24. "test:browser:FS": "npm run test:browser-tpl -- -f ./tests/FS.test.html",
  25. "lint": "eslint src",
  26. "lint:fix": "eslint --fix src",
  27. "postinstall": "opencollective-postinstall || true"
  28. },
  29. "browser": {
  30. "./src/worker/node/index.js": "./src/worker/browser/index.js"
  31. },
  32. "author": "",
  33. "contributors": [
  34. "jeromewu"
  35. ],
  36. "license": "Apache-2.0",
  37. "devDependencies": {
  38. "@babel/core": "^7.21.4",
  39. "@babel/eslint-parser": "^7.21.3",
  40. "@babel/preset-env": "^7.21.4",
  41. "@rollup/plugin-commonjs": "^24.1.0",
  42. "acorn": "^8.8.2",
  43. "babel-loader": "^9.1.2",
  44. "buffer": "^6.0.3",
  45. "cors": "^2.8.5",
  46. "eslint": "^7.32.0",
  47. "eslint-config-airbnb-base": "^14.2.1",
  48. "eslint-plugin-import": "^2.27.5",
  49. "expect.js": "^0.3.1",
  50. "express": "^4.18.2",
  51. "mocha": "^10.2.0",
  52. "mocha-headless-chrome": "^4.0.0",
  53. "npm-run-all": "^4.1.5",
  54. "nyc": "^15.1.0",
  55. "rimraf": "^5.0.0",
  56. "rollup": "^3.20.7",
  57. "wait-on": "^7.0.1",
  58. "webpack": "^5.79.0",
  59. "webpack-bundle-analyzer": "^4.8.0",
  60. "webpack-cli": "^5.0.1",
  61. "webpack-dev-middleware": "^6.0.2",
  62. "rollup-plugin-sourcemaps": "^0.6.3"
  63. },
  64. "dependencies": {
  65. "bmp-js": "^0.1.0",
  66. "idb-keyval": "^6.2.0",
  67. "is-electron": "^2.2.2",
  68. "is-url": "^1.2.4",
  69. "node-fetch": "^2.6.9",
  70. "opencollective-postinstall": "^2.0.3",
  71. "regenerator-runtime": "^0.13.3",
  72. "tesseract.js-core": "^5.1.1",
  73. "wasm-feature-detect": "^1.2.11",
  74. "zlibjs": "^0.3.1"
  75. },
  76. "overrides": {
  77. "@rollup/pluginutils": "^5.0.2"
  78. },
  79. "repository": {
  80. "type": "git",
  81. "url": "https://github.com/naptha/tesseract.js.git"
  82. },
  83. "bugs": {
  84. "url": "https://github.com/naptha/tesseract.js/issues"
  85. },
  86. "homepage": "https://github.com/naptha/tesseract.js",
  87. "collective": {
  88. "type": "opencollective",
  89. "url": "https://opencollective.com/tesseractjs"
  90. }
  91. }