data-uri-to-buffer efficiently converts data URIs (RFC 2397) into Node.js Buffers, handling various encodings, including base64. It provides a simple and fast way to extract binary data embedded within data URIs found in HTML, CSS, or JavaScript. This package is lightweight, dependency-free, and ideal for scenarios where you need to decode base64-encoded images or other binary assets directly from data URIs within Node.js applications. It enhances performance by avoiding unnecessary string manipulation during conversion.
The npm package data-uri-to-buffer had initial releases in January 2014. Releases were sporadic until mid-2017, with a flurry of activity then. After that, releases continued at an inconsistent pace, with some months having multiple versions and many others having none. The latest data available, up to August 2025, shows no releases this year.
data-uri-to-buffer downloads surged from February 2024 (2.6M) reaching a plateau around 60M between March and December 2024. A steady growth is observed since January 2025 up to July 2025 (121.6M). August 2025 downloads are at 111.9M, but the month isn't complete yet.