@types/parse-data-url
TypeScript icon, indicating that this package has built-in type declarations

3.0.2 • Public • Published

Installation

npm install --save @types/parse-data-url

Summary

This package contains type definitions for parse-data-url (https://github.com/killmenot/parse-data-url).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/parse-data-url.

index.d.ts

/// <reference types="node" />

declare function parseDataUrl(s: string): false | parseDataUrl.DataUrl;

declare namespace parseDataUrl {
    interface DataUrl {
        mediaType: string;
        contentType: string;
        charset: string;
        base64: boolean;
        data: string;
        toBuffer(): Buffer;
    }
}

export = parseDataUrl;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Jaime Filho.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/parse-data-url

Weekly Downloads

3,845

Version

3.0.2

License

MIT

Unpacked Size

3.36 kB

Total Files

5

Last publish

Collaborators

  • types