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

1.0.2 • Public • Published

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

/// <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: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Martin Heidegger.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/strong-data-uri

Weekly Downloads

28

Version

1.0.2

License

MIT

Unpacked Size

3.82 kB

Total Files

5

Last publish

Collaborators

  • types