MCPcopy Create free account
hub / github.com/appium/appium / writeFileString

Function writeFileString

packages/docutils/lib/fs.ts:128–133  ·  view source on GitHub ↗
(filepath: string, content: JsonValue)

Source from the content-addressed store, hash-verified

126 * @param content - File contents
127 */
128export function writeFileString(filepath: string, content: JsonValue) {
129 const data: string = typeof content === 'string' ? content : JSON.stringify(content, undefined, 2);
130 return fs.writeFile(filepath, data, {
131 encoding: 'utf8',
132 });
133}
134
135/**
136 * `which` with memoization

Callers 1

createScaffoldTaskFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected