mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 06:38:07 +02:00
The `@napi-rs/canvas` package has fewer dependencies, which should *hopefully* make installing and using it easier for `pdfjs-dist` end-users. (Over the years we've seen, repeatedly, that `canvas` can be difficult to install successfully.) Furthermore, this package includes more functionality (such as `Path2D`) which reduces the overall number of dependencies in the PDF.js project. One point to note is that `@napi-rs/canvas` is a fair bit newer than `canvas`, and has a lot fewer users, however looking at the commit history it does seem to be actively maintained. Note that I've successfully tested the [Node.js examples](https://github.com/mozilla/pdf.js/tree/master/examples/node), in particular the `pdf2png` one, with this patch applied and things appear to work fine. Please see: - https://www.npmjs.com/package/@napi-rs/canvas - https://github.com/Brooooooklyn/canvas
68 lines
1.9 KiB
JSON
68 lines
1.9 KiB
JSON
{
|
|
"name": "pdf.js",
|
|
"type": "module",
|
|
"devDependencies": {
|
|
"@babel/core": "^7.26.0",
|
|
"@babel/preset-env": "^7.26.0",
|
|
"@babel/runtime": "^7.26.0",
|
|
"@fluent/bundle": "^0.18.0",
|
|
"@fluent/dom": "^0.10.0",
|
|
"@jazzer.js/core": "^2.1.0",
|
|
"@metalsmith/layouts": "^2.7.0",
|
|
"@metalsmith/markdown": "^1.10.0",
|
|
"@napi-rs/canvas": "^0.1.60",
|
|
"@types/node": "^22.8.7",
|
|
"autoprefixer": "^10.4.20",
|
|
"babel-loader": "^9.2.1",
|
|
"caniuse-lite": "^1.0.30001677",
|
|
"core-js": "^3.39.0",
|
|
"eslint": "^8.57.1",
|
|
"eslint-plugin-import": "^2.31.0",
|
|
"eslint-plugin-jasmine": "^4.2.2",
|
|
"eslint-plugin-json": "^3.1.0",
|
|
"eslint-plugin-no-unsanitized": "^4.1.2",
|
|
"eslint-plugin-perfectionist": "^3.9.1",
|
|
"eslint-plugin-prettier": "^5.2.1",
|
|
"eslint-plugin-unicorn": "^56.0.0",
|
|
"gulp": "^5.0.0",
|
|
"gulp-cli": "^3.0.0",
|
|
"gulp-postcss": "^10.0.0",
|
|
"gulp-rename": "^2.0.0",
|
|
"gulp-replace": "^1.1.4",
|
|
"gulp-zip": "^6.0.0",
|
|
"highlight.js": "^11.10.0",
|
|
"jasmine": "^5.4.0",
|
|
"jsdoc": "^4.0.4",
|
|
"jstransformer-nunjucks": "^1.2.0",
|
|
"metalsmith": "^2.6.3",
|
|
"metalsmith-html-relative": "^2.0.5",
|
|
"ordered-read-streams": "^2.0.0",
|
|
"pngjs": "^7.0.0",
|
|
"postcss": "^8.4.47",
|
|
"postcss-dark-theme-class": "^1.3.0",
|
|
"postcss-dir-pseudo-class": "^9.0.1",
|
|
"postcss-discard-comments": "^7.0.3",
|
|
"postcss-nesting": "^13.0.1",
|
|
"prettier": "^3.3.3",
|
|
"puppeteer": "23.3.1",
|
|
"stylelint": "^16.10.0",
|
|
"stylelint-prettier": "^5.0.2",
|
|
"svglint": "^3.0.0",
|
|
"terser-webpack-plugin": "^5.3.10",
|
|
"tsc-alias": "^1.8.10",
|
|
"ttest": "^4.0.0",
|
|
"typescript": "^5.6.3",
|
|
"vinyl": "^3.0.0",
|
|
"webpack": "^5.96.1",
|
|
"webpack-stream": "^7.0.0",
|
|
"yargs": "^17.7.2"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git://github.com/mozilla/pdf.js.git"
|
|
},
|
|
"engines": {
|
|
"node": ">=20"
|
|
},
|
|
"license": "Apache-2.0"
|
|
}
|