{"name":"@jsonjoy.com/fs-print","version":"4.56.9","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.9","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","bugs":{"url":"https://github.com/streamich/memfs/issues"},"dist":{"shasum":"93af4a8d05afc7ec0f875fd7504f800653c6badf","tarball":"http://registry-npm.ywwl.com/@jsonjoy.com/fs-print/download/@jsonjoy.com/fs-print-4.56.9.tgz","fileCount":6,"integrity":"sha512-Op6rXFnmhHHAClNvHFGx9zALHgZfyPdPBd0WIf/MBr4DEoShhAj0MZxg0jMO7foqleq2YSNNCNBMFGkmY43wAQ==","signatures":[{"sig":"MEUCIQC9ON60Xd+TsoyHCUG2FuZ3ioTV0Ng1pMJsu/ainn2LAAIgYUmiP00XfyyCLMI5B3EJo4v18yRSvi0MiDHmjdEWUq4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@jsonjoy.com%2ffs-print@4.56.9","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":18452,"size":6668,"noattachment":false,"key":"/@jsonjoy.com/fs-print/-/@jsonjoy.com/fs-print-4.56.9.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","_from":"file:package.tgz","types":"lib/index.d.ts","engines":{"node":">=10.0"},"funding":{"url":"https://github.com/sponsors/streamich","type":"github"},"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":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:cf676d0f-e488-4b4a-b2f0-7ba83e60f27b"}},"_resolved":"/home/runner/work/memfs/memfs/packages/fs-print/package.tgz","_integrity":"sha512-Op6rXFnmhHHAClNvHFGx9zALHgZfyPdPBd0WIf/MBr4DEoShhAj0MZxg0jMO7foqleq2YSNNCNBMFGkmY43wAQ==","repository":{"url":"git+https://github.com/streamich/memfs.git","type":"git"},"_npmVersion":"11.6.2","description":"File system tree printer - print a file system structure as a tree","directories":{},"_nodeVersion":"24.12.0","dependencies":{"tree-dump":"^1.1.0","@jsonjoy.com/fs-node-utils":"4.56.9"},"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.9_1769016241903_0.31999263270825784","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":1769016242051,"_cnpm_publish_time":1769016242051,"dist-tags":{"latest":"4.80.1"}}