UNPKG

@qelos/assets

Version:

manage assets like images and static files on remote servers

17 lines (16 loc) 503 B
/// <reference types="node" /> import { Readable } from 'stream'; import { UrlWithStringQuery } from 'url'; import { GetUriOptions } from '.'; declare class DataReadable extends Readable { hash?: string; constructor(hash: string, buf: Buffer); } interface DataOptions extends GetUriOptions { cache?: DataReadable; } /** * Returns a Readable stream from a "data:" URI. */ export default function get({ href: uri }: UrlWithStringQuery, { cache }: DataOptions): Promise<Readable>; export {};