New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@mdpdf/mdpdf

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mdpdf/mdpdf

Convert Markdown to PDF using a self-contained Rust binary

latest
Source
npmnpm
Version
0.1.4
Version published
Maintainers
0
Created
Source

mdpdf

CI NPM Version

Convert Markdown to PDF with a self-contained Rust binary via CLI or Node.js.

Features

  • Convert Markdown to PDF using Typst
  • Self-contained (no large external dependencies)
  • Cross-platform support (x86_64 and aarch64)
  • Node.js bindings via napi-rs
  • Syntax highlighting for code blocks

Example Output

Usage

Basic Usage

CLI

mdpdf README.md -o README.pdf

Node.js

npm install @mdpdf/mdpdf
# or
yarn add @mdpdf/mdpdf
# or
pnpm add @mdpdf/mdpdf
import { markdownToPdf } from "@mdpdf/mdpdf";
const pdfBytes = await markdownToPdf("# this is markdown");

Development

CLI

cargo build --release --features cli
cargo test

Node.js

npm run build
npm run test

Keywords

markdown

FAQs

Package last updated on 29 Jul 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