@tech_query/node-toolkit
Version:
Toolkit for Node.JS packages
16 lines (15 loc) • 568 B
TypeScript
export declare function findFile(name: string | RegExp, path?: string): string;
/**
* Find files upward
*/
export declare function findUp(from?: string): Generator<string, void, unknown>;
export declare function toDataURI(path: string): Promise<string>;
/**
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_Types
*/
export declare function blobFrom(DataURI: string): Promise<{
MIME: string;
extension: string;
data: Buffer<ArrayBuffer>;
}>;