UNPKG

@zenfs/core

Version:

A filesystem, anywhere

6 lines (4 loc) 195 B
import { parentPort } from 'node:worker_threads'; import { attachFS } from '../../dist/backends/port/fs.js'; import { mounts } from '../../dist/index.js'; attachFS(parentPort, mounts.get('/'));