happy-dom
Version:
Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. It includes many web standards from WHATWG DOM and HTML.
21 lines • 519 B
TypeScript
/// <reference types="node" resolution-mode="require"/>
/**
* Data URI parser.
*
* Based on:
* https://github.com/TooTallNate/node-data-uri-to-buffer/blob/main/src/index.ts (MIT)
*/
export default class DataURIParser {
/**
* Returns a Buffer instance from the given data URI `uri`.
*
* @param uri Data URI.
* @returns Buffer.
*/
static parse(uri: string): {
type: string;
charset: string;
buffer: Buffer;
};
}
//# sourceMappingURL=DataURIParser.d.ts.map