Skip to content

@sebastianwessel/quickjs v3.0.0


@sebastianwessel/quickjs / createVirtualFileSystem

Function: createVirtualFileSystem()

createVirtualFileSystem(runtimeOptions): object

Defined in: createVirtualFileSystem.ts:31

Create the virtual file system for the sandbox Creates a node_modules folder with packages and ensures the src folder

Parameters

runtimeOptions

RuntimeOptions = {}

Returns

object

filesystem fs and volume vol

fs

fs: IFs

vol

vol: Volume

Updated at: