UNPKG

@ezdevlol/memfs

Version:

In-memory file-system with Node's fs API.

9 lines (8 loc) 355 B
import { NodeFileSystemDirectoryHandle } from './NodeFileSystemDirectoryHandle'; export * from './types'; export * from './NodeFileSystemHandle'; export * from './NodeFileSystemDirectoryHandle'; export * from './NodeFileSystemFileHandle'; export const nodeToFsa = (fs, dirPath, ctx) => { return new NodeFileSystemDirectoryHandle(fs, dirPath, ctx); };