UNPKG

@sebastianwessel/quickjs

Version:

A typescript package to execute JavaScript and TypeScript code in a WebAssembly QuickJS sandbox

13 lines (12 loc) 430 B
import type { RuntimeOptions } from './types/RuntimeOptions.js'; /** * Create the virtual file system for the sandbox * Creates a node_modules folder with packages and ensures the src folder * * @param runtimeOptions * @returns filesystem fs and volume vol */ export declare const createVirtualFileSystem: (runtimeOptions?: RuntimeOptions) => { vol: import("memfs/lib/volume.js").Volume; fs: import("memfs").IFs; };