🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

qpdf-wasm-esm-embedded

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qpdf-wasm-esm-embedded

qpdf compiled to WASM

1.1.1
latest
Source
npm
Version published
Weekly downloads
173
-31.35%
Maintainers
1
Weekly downloads
 
Created
Source

qpdf-wasm-esm-embedded

This is a fork of qpdf-wasm-esm that uses ESM instead of CommonJS and is compiled to a single file (wasm embedded) with TypeScript typing.

It is adjusted for the browser and has the following differences due to changes in build options:

  • It is an ES module instead of a CommonJS module.
  • It names the exported default function QPDF instead of Module(default name).
  • It build qpdf.mjs instead of qpdf.js.
  • It accepts overloading of the print and printErr methods.
  • It is a single file (wasm is embedded in the main mjs)
  • It provides TypeScript typing

Examples

Build with docker (run ./docker_build.sh) and run see the tests/test.html.

qpdf-wasm-esm

qpdf compiled to WASM via Emscripten. This doesn't expose the qpdf library - just the CLI.

npm install --save qpdf-wasm-esm-embedded

Examples

See the tests directory for examples.

FAQs

Package last updated on 26 Apr 2024

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