You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

pymupdf-node

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pymupdf-node

PyMuPDF with JS

0.0.1
Source
npmnpm
Version published
Weekly downloads
80
1233.33%
Maintainers
1
Weekly downloads
 
Created
Source

pymupdf-node

PyMuPDF for Node JS

Getting Started

Install node modules

npm install

Building

Prepare builds with:

npm run prepare

This creates the JS from the TS (src) and puts results in the "dist" folder.

Running

To test locally ensure you can import files form the dist location, i.e.

import * as pymupdf from "{path}/dist/pymupdf.js"

Wheels should be loaded into the pymupdf module with:

await pymupdf.init("path_to_pymupdf_wheel", "path_to_pymupdf4llm_wheel")

See tests/basic-test.mjs for an example.

Run this with:

node basic-test.mjs

Keywords

mupdf

FAQs

Package last updated on 23 Jun 2025

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