{"_id":"@anymux/file-system","name":"@anymux/file-system","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@anymux/file-system","version":"0.1.0","type":"module","license":"MIT","description":"Core file system interface and in-memory implementation for AnyMux","keywords":["anymux","filesystem","interface","abstraction","memory"],"repository":{"type":"git","url":"git+https://github.com/AnyMux/AnyMuxMonorepo.git","directory":"packages/file-system"},"homepage":"https://github.com/AnyMux/AnyMuxMonorepo/tree/main/packages/file-system#readme","engines":{"node":">=20"},"main":"./src/index.ts","types":"./src/index.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./mem-fs":{"types":"./dist/mem-fs/index.d.ts","import":"./dist/mem-fs/index.js","default":"./dist/mem-fs/index.js"},"./node":{"types":"./dist/passthrough/index.d.ts","node":"./dist/passthrough/index.js","default":"./dist/passthrough/index.js"},"./utils":{"types":"./dist/utils/index.d.ts","import":"./dist/utils/index.js","default":"./dist/utils/index.js"}},"dependencies":{"zod":"^3.24.1"},"devDependencies":{"@arethetypeswrong/cli":"^0.17.4","@types/node":"^22.10.2","publint":"^0.3.8","tsdown":"^0.10.2","typescript":"^5.7.3","@anymux/typescript-config":"0.0.0"},"scripts":{"build":"tsdown","check":"tsc -p tsconfig.json --noEmit"},"_id":"@anymux/file-system@0.1.0","bugs":{"url":"https://github.com/AnyMux/AnyMuxMonorepo/issues"},"_integrity":"sha512-SPOHtDd46P8JPmgRWRQF25R/0VA9GPWTKQ6wfAaWw2P+lwAbDLd+ILFIP5Evm3+tSFF1WxGvMSMQpcJhiqycqA==","_resolved":"/tmp/a892d955fef8af892b21c10262dc0a62/anymux-file-system-0.1.0.tgz","_from":"file:anymux-file-system-0.1.0.tgz","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-SPOHtDd46P8JPmgRWRQF25R/0VA9GPWTKQ6wfAaWw2P+lwAbDLd+ILFIP5Evm3+tSFF1WxGvMSMQpcJhiqycqA==","shasum":"54c5ad43d21953ca133863ab33ae38b365b7ef8f","tarball":"https://registry.npmjs.org/@anymux/file-system/-/file-system-0.1.0.tgz","fileCount":64,"unpackedSize":621311,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD1RBmftI4paOrYk466jxLxvJl4jrCFj/PfR3DZcUn56gIhAJlb/iwkLFZSRB2IA1OVSI6Jcrs+mUjqGeMarbMqJqQp"}]},"_npmUser":{"name":"yatsyk","email":"yatsyk@gmail.com"},"directories":{},"maintainers":[{"name":"yatsyk","email":"yatsyk@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/file-system_0.1.0_1774335402122_0.9315729602918474"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-24T06:56:41.984Z","0.1.0":"2026-03-24T06:56:42.303Z","modified":"2026-03-24T06:56:42.608Z"},"maintainers":[{"name":"yatsyk","email":"yatsyk@gmail.com"}],"description":"Core file system interface and in-memory implementation for AnyMux","homepage":"https://github.com/AnyMux/AnyMuxMonorepo/tree/main/packages/file-system#readme","keywords":["anymux","filesystem","interface","abstraction","memory"],"repository":{"type":"git","url":"git+https://github.com/AnyMux/AnyMuxMonorepo.git","directory":"packages/file-system"},"bugs":{"url":"https://github.com/AnyMux/AnyMuxMonorepo/issues"},"license":"MIT","readme":"# @anymux/file-system\n\nCore file system interface and in-memory implementation for AnyMux.\n\n## Installation\n\n```bash\npnpm add @anymux/file-system\n```\n\n## Usage\n\n```typescript\nimport { MemoryFileSystem } from \"@anymux/file-system/mem-fs\";\n\nconst fs = new MemoryFileSystem();\n\nawait fs.writeFile(\"/hello.txt\", \"Hello, world!\");\nconst content = await fs.readFile(\"/hello.txt\", \"utf-8\");\n```\n\n## API Overview\n\n### IFileSystem\n\nThe core interface matching Node.js `fs.promises`:\n\n- `readFile(path, options?)` — Read file contents\n- `writeFile(path, data, options?)` — Write data to a file\n- `mkdir(path, options?)` — Create directories\n- `readdir(path, options?)` — List directory contents\n- `stat(path)` / `lstat(path)` — Get file metadata\n- `rename(oldPath, newPath)` — Rename/move files\n- `unlink(path)` — Delete files\n- `rmdir(path)` / `rm(path, options?)` — Remove directories\n- `copyFile(src, dest)` — Copy files\n- `symlink(target, path)` — Create symbolic links\n- `createReadStream(path)` / `createWriteStream(path)` — Streaming I/O\n- `watch(path, options?)` — Watch for changes\n\n### MemoryFileSystem\n\nA complete in-memory implementation of `IFileSystem`. Useful for testing, prototyping, and browser environments.\n\n### Additional Interfaces\n\n- `IProvider` — Base provider with capability discovery\n- `IObjectStorage` — S3-compatible object storage operations\n- `IGitRepo` — Git repository operations (branches, commits, tags)\n- `IGitHost` — Git hosting platform operations (PRs, issues, releases)\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-fd500ad1edb2b2cdd9a52cc59f0b8256"}