data-uri-to-buffer

  • Version 4.0.0
  • Published
  • 26.6 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

Generate a Buffer instance from a Data URI string

Index

Functions

function dataUriToBuffer

dataUriToBuffer: (uri: string) => MimeBuffer;
  • Returns a Buffer instance from the given data URI uri.

    Parameter uri

    Data URI to turn into a Buffer instance

    Returns

    {Buffer} Buffer instance from Data URI public

Interfaces

interface MimeBuffer

interface MimeBuffer extends Buffer {}

    property charset

    charset: string;

      property type

      type: string;

        property typeFull

        typeFull: string;

          Package Files (1)

          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>