{"name":"@jsonjoy.com/fs-print","version":"4.56.4","keywords":["filesystem","fs","tree","print","visual","directory","structure","debug"],"author":{"url":"https://github.com/streamich","name":"streamich"},"license":"Apache-2.0","_id":"@jsonjoy.com/fs-print@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-print","dist":{"shasum":"322d65b8c67cd60e036ac5d115b643bfc2052f1a","tarball":"http://registry-npm.ywwl.com/@jsonjoy.com/fs-print/download/@jsonjoy.com/fs-print-4.56.4.tgz","fileCount":6,"integrity":"sha512-GtTDri9Ot1l7XPe3ft+ViTqxFOqtKcM4RLyXEXWDvQEoqgmU/6bCNNjfSze9VlpfC8KfuUYAixuDLD1quzHdow==","signatures":[{"sig":"MEYCIQCZGUewzloswpQRdKkiQIGdAfhjJeP9goXd+g6h06Ym2QIhALqtRhAj4IZGaLAouoMsSOCnBr+B3tFQpZExQFm9+jfN","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18452,"size":6668,"noattachment":false,"key":"/@jsonjoy.com/fs-print/-/@jsonjoy.com/fs-print-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":"File system tree printer - print a file system structure as a tree","directories":{},"dependencies":{"tree-dump":"^1.1.0","@jsonjoy.com/fs-node-utils":"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-print_4.56.4_1768936269490_0.24051958280760388","host":"s3://npm-registry-packages-npm-production"},"readme":"# @jsonjoy.com/fs-print\n\nFile system tree printer - print a file system structure as a tree.\n\nProvides a simple API to print any filesystem implementing the `FsSynchronousApi` interface\nas a formatted tree structure, useful for debugging and visualization.\n\n## Installation\n\n```bash\nnpm install @jsonjoy.com/fs-print\n```\n\n## Usage\n\n```ts\nimport { toTreeSync } from '@jsonjoy.com/fs-print';\nimport { memfs } from 'memfs';\n\nconst { fs } = memfs({\n  '/readme.md': '...',\n  '/src/index.ts': '...',\n  '/src/util.ts': '...',\n});\n\nconsole.log(toTreeSync(fs));\n```\n\nOutput:\n\n```\n/\n├─ src/\n│  ├─ index.ts\n│  └─ util.ts\n└─ readme.md\n```\n\n## Options\n\nYou can customize the output with options:\n\n```ts\ntoTreeSync(fs, {\n  dir: '/src', // Starting directory (default: '/')\n  depth: 2, // Maximum depth to traverse (default: 10)\n  separator: '/', // Path separator (default: '/')\n  tab: '  ', // Indentation string (default: '')\n  sort: true, // Sort entries (default: true)\n});\n```\n\n## License\n\nApache-2.0\n","publish_time":1768936269636,"_cnpm_publish_time":1768936269636,"dist-tags":{"latest":"4.80.1"}}