1.0.2 • Published 6 months ago
@types/strong-data-uri v1.0.2
Installation
npm install --save @types/strong-data-uri
Summary
This package contains type definitions for strong-data-uri (github.com/strongloop/strong-data-uri).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/strong-data-uri.
index.d.ts
// Type definitions for strong-data-uri 1.0
// Project: github.com/strongloop/strong-data-uri
// Definitions by: Martin Heidegger <https://github.com/martinheidegger>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
export interface DataURI extends Buffer {
mimetype: string;
mediatype: string;
charset: string | null;
}
/**
* Parser for retrieving data encoded in data: URIs specified by RFC2397.
*
* @param uri data URI
* @see https://www.ietf.org/rfc/rfc2397.txt
*/
export function decode(uri: string): Buffer & DataURI;
/**
* Encoder to create data URIs specified by RFC2397.
*
* @param uri data URI
* @see https://www.ietf.org/rfc/rfc2397.txt
*/
export function encode(input: Buffer | string, mediatype?: string): string;
Additional Details
- Last updated: Wed, 02 Mar 2022 17:31:50 GMT
- Dependencies: @types/node
- Global values: none
Credits
These definitions were written by Martin Heidegger.