{"_id":"memfs@4.78.0","bugs":{"url":"https://github.com/streamich/memfs/issues"},"dist":{"shasum":"b6b6d033c88b2b666a8489a5a696fdd899aee0b0","tarball":"http://registry-npm.ywwl.com/memfs/download/memfs-4.78.0.tgz","fileCount":30,"integrity":"sha512-gX14RGPP+fyNodL8g9jc5DfKtWNCronEMItOKDyZatTI3CPpMZDPtm7rAbftDqQAFovP4nzR0RO80sESSEnI4g==","signatures":[{"sig":"MEQCIHfABHVUGWfWs8hSbSi61WHnLYV7IHan0Z1sIyntLMF6AiAKYfWAByveRRyIkDuWw73sZKN6Cp70RXFbERgCN/VyNw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFr5AbZkfVDQCwpamgAMM0n4Yf7jPcf0kZI8fQ/rBVGTAiB9p5Emod9cKagKz99peFl3m36ShWE8yUo2yOc7Sajkwg=="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/memfs@4.78.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":73720,"size":23063,"noattachment":false,"key":"/memfs/-/memfs-4.78.0.tgz"},"jest":{"preset":"ts-jest","rootDir":".","testRegex":".*/(__tests__|__jest__|demo)/.*\\.(test|spec)\\.tsx?$","transform":{"^.+\\.tsx?$":"ts-jest"},"testEnvironment":"node","moduleFileExtensions":["ts","js","tsx"],"testPathIgnorePatterns":["node_modules"],"transformIgnorePatterns":[".*/node_modules/.*"]},"main":"lib/index.js","name":"memfs","_from":"file:package.tgz","types":"lib/index.d.ts","author":{"url":"https://github.com/streamich","name":"streamich"},"funding":{"url":"https://github.com/sponsors/streamich","type":"github"},"license":"Apache-2.0","scripts":{"jest":"node -r ts-node/register ./node_modules/.bin/jest","test":"jest --maxWorkers 7","build":"tsc --project tsconfig.build.json --module commonjs --target es2020 --outDir lib && rimraf --glob lib/__tests__ 'lib/**/__tests__'","clean":"rimraf lib types typedocs coverage gh-pages yarn-error.log","watch":"watch \"npm run build\" ./src","tslint":"tslint \"src/**/*.ts\" -t verbose","test:ci":"yarn jest --maxWorkers 3 --no-cache","typedoc":"npx typedoc@0.25.13 --tsconfig tsconfig.json","coverage":"yarn test --collectCoverage","typecheck":"tsc -p .","demo:webfs":"webpack serve --config ./src/webfs/webpack.config.js","test:watch":"jest --watch","build:pages":"npx rimraf@5.0.5 gh-pages && mkdir -p gh-pages && cp -r typedocs/* gh-pages && cp -r coverage gh-pages/coverage","build:webfs":"NODE_ENV=production webpack --config ./src/webfs/webpack.config.js","demo:git-fsa":"webpack serve --config ./demo/git-fsa/webpack.config.js","demo:git-opfs":"webpack serve --config ./demo/git-opfs/webpack.config.js","test:coverage":"jest --coverage","demo:crud-and-cas":"webpack serve --config ./demo/crud-and-cas/webpack.config.js","demo:fsa-to-node-zipfile":"webpack serve --config ./demo/fsa-to-node-zipfile/webpack.config.js","demo:fsa-to-node-sync-tests":"webpack serve --config ./demo/fsa-to-node-sync-tests/webpack.config.js"},"version":"4.78.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:255ad7fb-9f14-4602-820f-27e261ae855a"}},"homepage":"https://github.com/streamich/memfs","keywords":["fs","filesystem","fs.js","memory-fs","memfs","file","file system","mount","memory","in-memory","virtual","test","testing","mock","fsa","file system access","native file system","webfs","crudfs","opfs","casfs","content addressable storage"],"_resolved":"/home/runner/work/memfs/memfs/packages/memfs/package.tgz","_integrity":"sha512-gX14RGPP+fyNodL8g9jc5DfKtWNCronEMItOKDyZatTI3CPpMZDPtm7rAbftDqQAFovP4nzR0RO80sESSEnI4g==","repository":{"url":"git+https://github.com/streamich/memfs.git","type":"git"},"_npmVersion":"11.19.0","description":"In-memory file-system with Node's fs API.","directories":{},"maintainers":[{"name":"streamich","email":"vadimsdaleckis@gmail.com"}],"_nodeVersion":"24.20.0","dependencies":{"tslib":"^2.0.0","thingies":"^2.5.0","tree-dump":"^1.0.3","glob-to-regex.js":"^1.3.1","@jsonjoy.com/util":"^1.9.0","@jsonjoy.com/fs-fsa":"4.78.0","@jsonjoy.com/fs-core":"4.78.0","@jsonjoy.com/fs-node":"4.78.0","@jsonjoy.com/fs-print":"4.78.0","@jsonjoy.com/json-pack":"^1.11.0","@jsonjoy.com/fs-snapshot":"4.78.0","@jsonjoy.com/fs-node-utils":"4.78.0","@jsonjoy.com/fs-node-to-fsa":"4.78.0","@jsonjoy.com/fs-node-builtins":"4.78.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"url":"^0.11.1","jest":"^29.0.0","util":"^0.12.5","husky":"^8.0.1","assert":"^2.0.0","buffer":"^6.0.3","events":"^3.3.0","rimraf":"^5.0.0","tslint":"^6.1.3","process":"^0.11.10","ts-jest":"^29.4.2","ts-node":"^10.9.2","webpack":"^5.87.0","prettier":"^3.0.0","ts-loader":"^9.5.4","tar-stream":"^3.1.2","typescript":"^5.9.2","@types/jest":"^29.0.0","@types/mime":"^3.0.0","@types/node":"^20.0.0","webpack-cli":"^5.1.4","app-root-path":"^3.1.0","isomorphic-git":"^1.24.2","path-browserify":"^1.0.1","readable-stream":"^4.4.0","webpack-dev-server":"^4.15.1","html-webpack-plugin":"^5.5.3","tslint-config-common":"^1.6.2"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/memfs_4.78.0_1789336461909_0.7265735368803707"},"readme":"# memfs\n\nIn-memory file system with Node.js `fs` API and browser File System (Access) API.\n\n[![npm][npm-badge]][npm-url]\n\n[npm-badge]: https://img.shields.io/npm/v/memfs.svg\n[npm-url]: https://www.npmjs.com/package/memfs\n\n## Overview\n\n`memfs` is a JavaScript library that implements an in-memory file system compatible with Node.js `fs` module and the browser File System (Access) API. Use it for testing, mocking file systems, or creating virtual file systems in both Node.js and browser environments.\n\n## Installation\n\n```bash\nnpm install memfs\n```\n\n## Quick Start\n\n### Node.js `fs` API\n\n```javascript\nimport { fs } from 'memfs';\n\n// Write a file\nfs.writeFileSync('/hello.txt', 'Hello, World!');\n\n// Read a file\nconst content = fs.readFileSync('/hello.txt', 'utf-8');\nconsole.log(content); // \"Hello, World!\"\n\n// Create a directory\nfs.mkdirSync('/mydir');\n\n// List directory contents\nconsole.log(fs.readdirSync('/')); // ['hello.txt', 'mydir']\n```\n\n### Browser File System API\n\n```javascript\nimport { fsa } from 'memfs';\n\n// Get root directory handle\nconst root = await fsa.getRoot();\n\n// Create a file\nconst file = await root.getFileHandle('hello.txt', { create: true });\nconst writable = await file.createWritable();\nawait writable.write('Hello, World!');\nawait writable.close();\n\n// Read the file\nconst readable = await file.getFile();\nconst text = await readable.text();\nconsole.log(text); // \"Hello, World!\"\n```\n\n## Features\n\n- Node.js `fs` module API compatibility\n- Browser File System (Access) API implementation\n- Adapters between `fs` and File System API\n- Directory snapshots and tree printing utilities\n- Works in Node.js and modern browsers\n- TypeScript support\n\n## Documentation\n\nFor detailed documentation and more examples, visit the [main project page](https://github.com/streamich/memfs).\n\n## License\n\nApache 2.0\n","publish_time":1789336462060,"_cnpm_publish_time":1789336462060,"dist-tags":{"latest":"4.80.1","next":"5.0.0-next.1"}}