MCPcopy
hub / github.com/freshframework/fresh / writeFile

Function writeFile

packages/init/src/init.ts:158–165  ·  view source on GitHub ↗
(
    pathname: string,
    content:
      | string
      | Uint8Array
      | ReadableStream<Uint8Array>
      | Record<string, unknown>,
  )

Source from the content-addressed store, hash-verified

156 : flags.vscode;
157
158 const writeFile = async (
159 pathname: string,
160 content:
161 | string
162 | Uint8Array
163 | ReadableStream<Uint8Array>
164 | Record<string, unknown>,
165 ) => await writeProjectFile(projectDir, pathname, content);
166
167 const GITIGNORE = `# dotenv environment variable files
168.env

Callers 1

initProjectFunction · 0.85

Calls 1

writeProjectFileFunction · 0.85

Tested by

no test coverage detected