Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bundled-es-modules/pdfjs-dist

Package Overview
Dependencies
Maintainers
3
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bundled-es-modules/pdfjs-dist

mirror of pdfjs-dist, bundled and exposed as ES module

  • 2.0.943-repofix
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6K
increased by5.79%
Maintainers
3
Weekly downloads
 
Created
Source

pdfjs-dist

This is a mirror of pdfjs-dist, bundled and exposed as an ES module

Install

npm install @bundled-es-modules/pdfjs-dist

Use

<script type="module">
  import { pdfjs } from '@bundled-es-modules/pdfjs-dist/index.js';
  pdfjs.GlobalWorkerOptions.workerSrc = '@bundled-es-modules/pdfjs-dist/pdf.worker.js';
  var url = 'basicapi.pdf';
  var loadingTask = pdfjs.getDocument(url);
  //...
</script>

Overview of this mirror repo

Rollup to bundle an es module out of pdf.js. The web worker, pdf.worker.js, is copied as-is from the original repo.

Support for es modules has been requested here, #10317

Building

npm run build

FAQs

Package last updated on 20 Dec 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc