Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

node-vfs-polyfill

User-land implementation of the Node.js Virtual File System (VFS) based on nodejs/node#61478.

Usage

const { VirtualFS } = require('node-vfs-polyfill');

const vfs = new VirtualFS();
vfs.mkdirSync('/app');
vfs.writeFileSync('/app/index.js', 'console.log("hello")');
vfs.mount('/vfs');

// After mounting, use standard fs module
const fs = require('fs');
fs.readFileSync('/vfs/app/index.js'); // works

Features

  • In-memory file system with full fs API support
  • Overlay mode for layering virtual files over real filesystem
  • File descriptors, streams, and watch support
  • Promise-based API via fs.promises
  • Symlinks and glob patterns

Exports

  • node-vfs-polyfill - Main VirtualFS class
  • node-vfs-polyfill/provider - Base provider interface
  • node-vfs-polyfill/memory-provider - In-memory storage provider

License

ISC

Code in vendor/vfs-upstream/ is from Node.js and subject to the Node.js license.

关于 About

No description, website, or topics provided.

语言 Languages

JavaScript100.0%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
7
Total Commits
峰值: 6次/周
Less
More

核心贡献者 Contributors