Gathering detailed insights and metrics for @bundled-es-modules/pdfjs-dist
Gathering detailed insights and metrics for @bundled-es-modules/pdfjs-dist
Gathering detailed insights and metrics for @bundled-es-modules/pdfjs-dist
Gathering detailed insights and metrics for @bundled-es-modules/pdfjs-dist
npm install @bundled-es-modules/pdfjs-dist
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
23 Stars
32 Commits
14 Forks
2 Watching
3 Branches
4 Contributors
Updated on 18 Oct 2024
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
4.1%
2,299
Compared to previous day
Last week
3.5%
10,998
Compared to previous week
Last month
29.4%
48,458
Compared to previous month
Last year
-76.1%
501,933
Compared to previous year
This is a mirror of pdfjs-dist, bundled and exposed as an ES module
1npm install @bundled-es-modules/pdfjs-dist
1import pdfjs from "@bundled-es-modules/pdfjs-dist/build/pdf"; 2import viewer from "@bundled-es-modules/pdfjs-dist/web/pdf_viewer"; 3 4pdfjs.GlobalWorkerOptions.workerSrc = 5 "@bundled-es-modules/pdfjs-dist/build/pdf.worker.js"; 6 7var url = "basicapi.pdf"; 8var loadingTask = pdfjs.getDocument(url); 9//...
Important: Unlike in the original build, the pdfjs.GlobalWorkerOptions.workerSrc
is mandatory. We recommend supplying the worker via CDN.
├── build/
│ ├── pdf.js - display layer
│ └── pdf.worker.js - core layer
|── types/ - typescript typings
└── web/
├── pdf_viewer.js - top-level viewer import, containing all necessary setup
├── module.js - pdf-viewer module, transformed from UMD to ESM
└── util.js - utility module for setup
PDFJS is a library by Mozilla, created to facillitate client-side rendering of PDF documents.
Currently, the primary build for this project is provided as UMD-style modules at pdfjs/pdfjs-dist.
Support for es modules in the main project has been requested here (#10317)
1npm i 2npm run build
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 5/16 approved changesets -- score normalized to 3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
11 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More