UNPKG

@augment-vir/node

Version:

A collection of augments, helpers types, functions, and classes only for Node.js (backend) JavaScript environments.

10 lines (9 loc) 380 B
/** * Writes to the given file path and always ensures that the path's parent directories are all * created. * * @category Node : File * @category Package : @augment-vir/node * @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node) */ export declare function writeFileAndDir(path: string, contents: string | NodeJS.ArrayBufferView): Promise<void>;