MCPcopy Create free account
hub / github.com/loopbackio/loopback-next / writeTextFile

Method writeTextFile

packages/testlab/src/test-sandbox.ts:177–180  ·  view source on GitHub ↗

* Creates a new file and writes the given data as a UTF-8-encoded text. * * @param dest - Destination filename, optionally including a relative path. * @param data - The text to write.

(dest: string, data: string)

Source from the content-addressed store, hash-verified

175 * @param data - The text to write.
176 */
177 async writeTextFile(dest: string, data: string): Promise<void> {
178 dest = resolve(this.path, dest);
179 return outputFile(dest, data, 'utf-8');
180 }
181}

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected