npm.io
3.0.2 • Published 2 years ago

@types/parse-data-url

Licence
MIT
Version
3.0.2
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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 0939 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Jaime Filho.