data-uri-to-buffer

  • Version 6.0.2
  • Published
  • 16.8 kB
  • No dependencies
  • MIT license

Install

npm i data-uri-to-buffer
yarn add data-uri-to-buffer
pnpm add data-uri-to-buffer

Overview

Create an ArrayBuffer instance from a Data URI string

Index

Functions

function dataUriToBuffer

dataUriToBuffer: (uri: string | URL) => import('./common').ParsedDataURI;
  • Returns a Buffer instance from the given data URI uri.

    Parameter uri

    Data URI to turn into a Buffer instance

Interfaces

interface ParsedDataURI

interface ParsedDataURI {}

    property buffer

    buffer: ArrayBuffer;

      property charset

      charset: string;

        property type

        type: string;

          property typeFull

          typeFull: string;

            Package Files (2)

            Dependencies (0)

            No dependencies.

            Dev Dependencies (6)

            Peer Dependencies (0)

            No peer dependencies.

            Badge

            To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

            You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/data-uri-to-buffer.

            • Markdown
              [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/data-uri-to-buffer)
            • HTML
              <a href="https://www.jsdocs.io/package/data-uri-to-buffer"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>