Skip to content

@sebastianwessel/quickjs v2.1.1


@sebastianwessel/quickjs / createVirtualFileSystem

Function: createVirtualFileSystem()

createVirtualFileSystem(runtimeOptions): object

Defined in: src/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