MCPcopy Index your code
hub / github.com/angular/angular / write

Method write

packages/service-worker/cli/filesystem.ts:48–51  ·  view source on GitHub ↗
(_path: string, contents: string)

Source from the content-addressed store, hash-verified

46 }
47
48 async write(_path: string, contents: string): Promise<void> {
49 const file = this.canonical(_path);
50 fs.writeFileSync(file, contents);
51 }
52
53 private canonical(_path: string): string {
54 return path.posix.join(this.base, _path);

Callers

nothing calls this directly

Calls 1

canonicalMethod · 0.95

Tested by

no test coverage detected