Configuration options for creating a VFS Sandbox.
interface VfsSandboxOptionsconst options: VfsSandboxOptions = {
mountPath: "/vfs",
initialFiles: {
"/app/index.js": "console.log('Hello')",
"/app/package.json": '{"name": "test"}',
},
};Initial files to populate the virtual file system.
Keys are file paths (relative to the VFS root), values are file contents.
initialFiles: {
"/src/index.js": "console.log('Hello')",
"/package.json": '{"name": "my-app"}',
}The mount path for the virtual file system.
After mounting, files in the VFS will be accessible under this path
using the standard fs module.
Command timeout in milliseconds.