🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@react-pdf-kit/polyfills

Package Overview
Dependencies
Maintainers
3
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-pdf-kit/polyfills

Polyfills for react-pdf-kit

npmnpm
Version
0.0.1-beta.3
Version published
Weekly downloads
95
-18.8%
Maintainers
3
Weekly downloads
 
Created
Source

@react-pdf-kit/polyfills

Browser polyfills required by @react-pdf-kit/viewer and pdfjs-dist 5.x. Extends support to browsers that lack modern APIs needed for PDF rendering.

Installation

npm install @react-pdf-kit/polyfills
# or
pnpm add @react-pdf-kit/polyfills
# or
bun add @react-pdf-kit/polyfills

Usage

Import once at the top of your app entry point, before any PDF rendering code:

import "@react-pdf-kit/polyfills";

Requirements

  • Browser environment — the CanvasRenderingContext2D polyfill is a no-op in Node/SSR
  • TypeScript 5+ (optional — works in plain JavaScript too)

FAQs

Package last updated on 08 Jun 2026

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