Create and initialize a new VfsBackend in one step.
This is the recommended way to create a backend. It combines construction and initialization into a single async operation.
create(options: VfsBackendOptions): Promise<VfsBackend>| Name | Type | Description |
|---|---|---|
options | VfsBackendOptions | Configuration options for the backend |
const backend = await VfsBackend.create({
initialFiles: {
"/src/index.js": "console.log('Hello')",
},
});