# path2d-polyfill

> Polyfills Path2D api for canvas rendering

Latest version **3.2.4** (published 2026-11-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install path2d-polyfill
pnpm add path2d-polyfill
yarn add path2d-polyfill
bun add path2d-polyfill
```

## Health

**Score 65/100 (B)** — status: active.

Positive: esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 3.2.4 |
| Published | 2026-11-16 |
| First published | 2018-05-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Dependencies | 1 |
| Unpacked size | 12.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 32 |
| Author | nilzona |
| Maintainers | nilzona_user |
| Keywords | Path2D, polyfill, canvas, roundRect |

## Links

- npm: https://www.npmjs.com/package/path2d-polyfill
- Repository: https://github.com/nilzona/path2d-polyfill
- Homepage: https://github.com/nilzona/path2d-polyfill#readme
- Issues: https://github.com/nilzona/path2d-polyfill/issues
- npm.io page: https://npm.io/package/path2d-polyfill

## Dependencies (1)

- [path2d](https://npm.io/package/path2d.md) ^0.3.5

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 3.2.4 (latest) — 2026-11-16
- 2.0.0-beta.0 (beta) — 2023-01-09
- 3.2.3 — 2026-08-20
- 3.2.2 — 2026-06-16
- 3.2.1 — 2025-06-24
- 3.2.0 — 2025-06-24
- 3.1.3 — 2024-11-07
- 3.1.2 — 2024-06-29
- 3.1.1 — 2024-06-06
- 3.1.0 — 2024-04-04
- 3.0.1 — 2024-03-17
- 3.0.0 — 2024-03-17
- 2.1.1 — 2024-03-16
- 2.0.1 — 2023-01-22
- 2.0.0 — 2023-01-22
- … 28 more at https://npm.io/package/path2d-polyfill/versions

## README

# Path2d with polyfill

This repo is the home of two npm packages

- [path2d](./packages/path2d/README.md) - Implements `Path2D` api and `roundRect` for CanvasRenderingContext2D
- [path2d-polyfill](./packages/path2d-polyfill/README.md) - Polyfills `Path2D` api and `roundRect` for CanvasRenderingContext2D

---
_Source: https://npm.io/package/path2d-polyfill · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
