In memory filesystem backed by FUSE & memfd_create
npm install -g fuse-memfd
fuse-memfd ./mnt # mounts an in memory filesystem at ./mnt (needs to exists)
You can access the FUSE operations from JS as well
const Fuse = require('fuse-native')
const memfd = require('fuse-memfd')
const ops = memfd()
const fuse = new Fuse('./mnt', ops)
MIT