{"name":"@jsonjoy.com/fs-core","version":"4.56.0","keywords":["node","fs","filesystem","inode","link","file","superblock","virtual","memory"],"author":{"url":"https://github.com/streamich","name":"streamich"},"license":"Apache-2.0","_id":"@jsonjoy.com/fs-core@4.56.0","maintainers":[{"name":"json-joy-team","email":"team@jsonjoy.com"},{"name":"streamich","email":"vadimsdaleckis@gmail.com"}],"homepage":"https://github.com/streamich/memfs/tree/master/packages/fs-core","dist":{"shasum":"84886b47a09e2f722d38eeaf29eb083d83373918","tarball":"http://registry-npm.ywwl.com/@jsonjoy.com/fs-core/download/@jsonjoy.com/fs-core-4.56.0.tgz","fileCount":39,"integrity":"sha512-wWBEo3OIpTEwwwSH12YBmFnXvv+9yKIjYQh5dlf5Kf/N7ZdAfglVVJAzSyFZlL85pkwBoDD8dvWyZej2f4UejQ==","signatures":[{"sig":"MEQCIFpTaN0MdaZhS6wOem4fYl3rD1nMNQ67bnQ5qo3kzJ9jAiAA8BqqZJRT0WHkglHxFcJF99NyKhLRNZ9w4NI1jsOPzg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":134250,"size":32093,"noattachment":false,"key":"/@jsonjoy.com/fs-core/-/@jsonjoy.com/fs-core-4.56.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","types":"lib/index.d.ts","engines":{"node":">=10.0"},"funding":{"url":"https://github.com/sponsors/streamich","type":"github"},"gitHead":"c68fdb03287e18fb8de1b2945bfc8e0ce909926d","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","clean":"rimraf lib typedocs coverage gh-pages yarn-error.log","test:ci":"yarn jest --maxWorkers 3 --no-cache","typedoc":"typedoc","coverage":"yarn test --collectCoverage","typecheck":"tsc -p ."},"typings":"lib/index.d.ts","_npmUser":{"name":"streamich","email":"vadimsdaleckis@gmail.com"},"repository":"streamich/memfs","description":"Core filesystem primitives: Node, Link, File, Superblock","directories":{},"dependencies":{"thingies":"^2.5.0","@jsonjoy.com/fs-node-utils":"4.56.0","@jsonjoy.com/fs-node-builtins":"4.56.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.0","rimraf":"^5.0.0","ts-jest":"^29.4.2","ts-node":"^10.9.2","typescript":"^5.9.2","@types/jest":"^29.0.0","@types/node":"^20.0.0"},"peerDependencies":{"tslib":"2"},"_npmOperationalInternal":{"tmp":"tmp/fs-core_4.56.0_1768844892061_0.01813240708230346","host":"s3://npm-registry-packages-npm-production"},"readme":"# @jsonjoy.com/fs-core\n\nCore filesystem primitives for building in-memory and virtual filesystems.\n\n## Overview\n\nThis package provides the core data structures for representing a virtual filesystem:\n\n- **Node** - Represents an i-node (index node), containing file data and metadata\n- **Link** - Represents a hard link pointing to a Node\n- **File** - Represents an open file descriptor\n- **Superblock** - The root of a virtual filesystem, managing nodes and links\n\n## Installation\n\n```bash\nnpm install @jsonjoy.com/fs-core\n```\n\n## Usage\n\n```typescript\nimport { Superblock, DirectoryJSON } from '@jsonjoy.com/fs-core';\n\n// Create a new filesystem\nconst fs = new Superblock();\n\n// Or create from a JSON structure\nconst json: DirectoryJSON = {\n  '/file.txt': 'Hello, World!',\n  '/dir/nested.txt': 'Nested content',\n};\nconst fs = Superblock.fromJSON(json);\n```\n","publish_time":1768844892201,"_cnpm_publish_time":1768844892201,"dist-tags":{"latest":"4.80.1"}}