Path2D API for Node.js Canvas
JSON →This `path2d` package provides a server-side implementation of the standard browser `Path2D` API, along with `CanvasRenderingContext2D.roundRect()`, for use in Node.js environments. It enables developers to utilize modern Canvas Path2D features and methods like `arc()`, `ellipse()`, and `roundRect()` when performing server-side rendering with libraries such as `node-canvas`. The current stable version is `0.3.1`, and updates appear to be released on an as-needed basis for feature enhancements (e.g., `DomPoints` support for `roundRect`) and dependency maintenance. Its primary differentiation is bringing browser-standard canvas path construction to Node.js, ensuring consistent rendering logic across client and server-side contexts for applications that generate images programmatically.
Traffic · last 30 days ↑200% vs prev 7d
top countries 🇺🇸 United States · 🇫🇷 France · 🇨🇦 Canada · 🇩🇪 Germany · 🇳🇴 Norway