</>PackageGraphPackageGraph

data-uri-to-buffer

npmv8.0.0

Create an ArrayBuffer instance from a Data URI string

Safe to adopt

Yes — data-uri-to-buffer scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 162 days ago. 2 releases in the last 2 years.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • BMaintenance: grade B, Good.

    Last published 162 days ago. 2 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 14 KB installed.

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding data-uri-to-buffer to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

14 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
node >= 20
Module format
ESM only
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the data-uri-to-buffer README.

typescriptFull README ↗
import { dataUriToBuffer } from 'data-uri-to-buffer';

// plain-text data is supported
let uri = 'data:,Hello%2C%20World!';
let parsed = dataUriToBuffer(uri);
console.log(new TextDecoder().decode(parsed.buffer));
// 'Hello, World!'

// base64-encoded data is supported
uri = 'data:text/plain;base64,SGVsbG8sIFdvcmxkIQ%3D%3D';
parsed = dataUriToBuffer(uri);
console.log(new TextDecoder().decode(parsed.buffer));
// 'Hello, World!'

data-uri-to-buffer vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
data-uri-to-bufferthis page01MIT5 months ago
@xtuc/ieee75401BSD-3-Clause1 day ago
color-convert299.6M1MIT1 day ago
@jridgewell/resolve-uri166.3M1MIT1 day ago
camelcase95.7M2MIT1 day ago
internal-slot79.2M1MIT1 day ago

Dependencies

Declared by data-uri-to-buffer v8.0.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (3)

@types/node ^22.13.0tsconfig 0.0.0typescript ^5.1.6

Used by

Popular packages that depend on data-uri-to-buffer.

Relationship graph

Dependencies (left) and dependents (right) of data-uri-to-buffer.

node-fetchdata-uri-to-buffer
data-uri-to-buffer dependencies dependents

Frequently installed together

Release history

2 releases in the last two years, typically about 135 days apart.

Recent versions of data-uri-to-buffer
VersionPublishedSizeLicense
8.0.0latest5 months ago14 KBMIT
7.0.06 months ago14 KBMIT
6.0.22 years ago16 KBMIT
6.0.12 years ago14 KBMIT
6.0.02 years ago14 KBMIT
5.0.13 years ago9.9 KBMIT
5.0.03 years ago9.9 KBMIT
4.0.13 years ago9.8 KBMIT
4.0.05 years ago26 KBMIT
3.0.16 years ago8.2 KBMIT
3.0.07 years ago22 KBMIT
2.0.27 years ago13 KBMIT
2.0.17 years ago13 KBMIT
2.0.09 years agoMIT
1.2.09 years agoMIT

Overview

data-uri-to-buffer is an npm package that create an ArrayBuffer instance from a Data URI string. It has 1 known dependents in the graph. The latest version is 8.0.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need create an ArrayBuffer instance from a Data URI string and value a focused solution.

When not to use it

Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.

Pros

  • Clear open-source license (MIT).
  • Lean dependency tree (3 direct dependencies).

Cons

  • No bundled TypeScript types (may require a separate @types package).

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Frequently asked questions

Should I use data-uri-to-buffer?

Yes — data-uri-to-buffer scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 162 days ago. 2 releases in the last 2 years.

How do I install data-uri-to-buffer?

Run `npm install data-uri-to-buffer` to add data-uri-to-buffer to your npm project.

What license is data-uri-to-buffer released under?

data-uri-to-buffer is distributed under the MIT license.

How popular is data-uri-to-buffer?

npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on data-uri-to-buffer.

Is data-uri-to-buffer still maintained?

The most recent release of data-uri-to-buffer (v8.0.0) was published 5 months ago.

Does data-uri-to-buffer run install scripts?

No. data-uri-to-buffer does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.