UNPKG

@appsemble/node-utils

Version:

NodeJS utilities used by Appsemble internally.

8 lines (7 loc) 273 B
/** * If the string represents an existing path, read the file. Otherwise, return the string itself. * * @param string The string to handle. * @returns The handled string. */ export declare function readFileOrString(string: Buffer | string): Promise<Buffer | string>;