{"name":"@jsonjoy.com/fs-core","version":"4.56.4","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.4","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":"221e111cb51689c98bd7c6398335618648372642","tarball":"http://registry-npm.ywwl.com/@jsonjoy.com/fs-core/download/@jsonjoy.com/fs-core-4.56.4.tgz","fileCount":39,"integrity":"sha512-mgiAa7w0N0mlr7G3PUY/iRSYuJwyZmHBt+y7D9veiXfAqsIhEi9+FCu47tU+y/3KPqaTNJMsfgAGwUnLPnRdqA==","signatures":[{"sig":"MEQCIDMRxbp6g9bKcCaUfxop30AekTkowVoQOET+MWY5RFG0AiAwaGoLxJ3lrHdUR0QtfopLMl110yWJohXa9z/AacW6ww==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":134250,"size":32094,"noattachment":false,"key":"/@jsonjoy.com/fs-core/-/@jsonjoy.com/fs-core-4.56.4.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":"3843eddf95cae00136a747f0defa119e856aa475","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.4","@jsonjoy.com/fs-node-builtins":"4.56.4"},"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.4_1768936248828_0.1507159951462984","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":1768936248996,"_cnpm_publish_time":1768936248996,"dist-tags":{"latest":"4.80.1"}}