MCPcopy Index your code
hub / github.com/Sandpack/nodebox-runtime / init

Method init

packages/nodebox/src/modules/fs.ts:91–95  ·  view source on GitHub ↗

* Initialize the File System worker with the files.

(files: FilesMap)

Source from the content-addressed store, hash-verified

89 * Initialize the File System worker with the files.
90 */
91 public async init(files: FilesMap): Promise<void> {
92 // Await the sent event to know when the worker
93 // is done writing the files.
94 await this.channel.send('fs/init', { files });
95 }
96
97 /**
98 * Read a file at the given path.

Callers 15

console.test.tsFile · 0.80
nuxt.example.jsFile · 0.80
astro.example.jsFile · 0.80
fooFunction · 0.80
nodemon.example.jsFile · 0.80

Calls 1

sendMethod · 0.45

Tested by

no test coverage detected