{"name":"@jsonjoy.com/fs-print","version":"4.57.3","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.57.3","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":"b282395741a226a74550a7b6c14c9c81f57484d8","tarball":"http://registry-npm.ywwl.com/@jsonjoy.com/fs-print/download/@jsonjoy.com/fs-print-4.57.3.tgz","fileCount":6,"integrity":"sha512-ITwaLZpGIqD9jHndwMvDFZDIvbVzGRsJZDQ5HKln0vyMculu1c1nb7zbEBgY8BVSBZ9S2xO138OWIBGeRsrF3Q==","signatures":[{"sig":"MEUCIQCW3VQeZFDcAO5d7TTds11LhfTBdvG1c5K3U06Ys+mGuwIgEe7o73xaqeFNpJsSwonaKuRxj0KSD5KaajIkD+rYHy8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@jsonjoy.com%2ffs-print@4.57.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":18452,"size":6668,"noattachment":false,"key":"/@jsonjoy.com/fs-print/-/@jsonjoy.com/fs-print-4.57.3.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-ITwaLZpGIqD9jHndwMvDFZDIvbVzGRsJZDQ5HKln0vyMculu1c1nb7zbEBgY8BVSBZ9S2xO138OWIBGeRsrF3Q==","repository":{"url":"git+https://github.com/streamich/memfs.git","type":"git"},"_npmVersion":"11.12.1","description":"File system tree printer - print a file system structure as a tree","directories":{},"_nodeVersion":"24.15.0","dependencies":{"tree-dump":"^1.1.0","@jsonjoy.com/fs-node-utils":"4.57.3"},"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.57.3_1779968430532_0.7014583474981011","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":1779968430659,"_cnpm_publish_time":1779968430659,"dist-tags":{"latest":"4.80.1"}}