{"id":19912769,"url":"https://github.com/stealify/fs-readdir-stream","last_synced_at":"2025-10-08T16:14:31.286Z","repository":{"id":57242323,"uuid":"162848529","full_name":"stealify/fs-readdir-stream","owner":"stealify","description":null,"archived":false,"fork":false,"pushed_at":"2020-10-27T10:56:01.000Z","size":13,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-12T03:09:59.576Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stealify.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-22T23:11:54.000Z","updated_at":"2022-11-14T02:39:24.000Z","dependencies_parsed_at":"2022-09-07T22:00:59.697Z","dependency_job_id":null,"html_url":"https://github.com/stealify/fs-readdir-stream","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stealify%2Ffs-readdir-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stealify%2Ffs-readdir-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stealify%2Ffs-readdir-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stealify%2Ffs-readdir-stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stealify","download_url":"https://codeload.github.com/stealify/fs-readdir-stream/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241341738,"owners_count":19947104,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T21:30:28.880Z","updated_at":"2025-10-08T16:14:26.238Z","avatar_url":"https://github.com/stealify.png","language":"JavaScript","readme":"# fs-readdir-stream\nIs a Function for Recursiv Dir Reading that returns a RealStream for fs.readdir replacement\nIts using Operating system Filesystem Utils for that and returns a NodeStream or MostStream.\n\n\n\n## install\n```bash\nnpm install --save fs-readdir-stream@0.0.2\n```\n\n## Usage\n```js\nconst { findStreamNode, findStreamMost } = require('fs-readdir-stream')\n// can also be array supports all options that nativ os find supports\nconst options = '-maxdepth 1' \n\nlet listing = findStreamNode('.',[options])\nlisting.stdout.on('data', d=\u003econsole.log(d.toString()))\nlisting.stderr.on('data', d=\u003econsole.log(d.toString()))\nlisting.on('close', (code) =\u003e {\nconsole.log(`child process exited with code ${code}`);\n});\n\nconst readdirStream = findStreamMost('.',[options])\nreaddirStream(process.cwd()).observe(x=\u003econsole.log(x))\n```\n\n## Expert Usage\n\nUsing the Most Stream Interface https://github.com/cujojs/most/blob/master/docs/api.md\n\n```js\nconst findStreamMost = require('fs-readdir-stream/find-stream.most')\n// can also be array supports all options that nativ os find supports\nconst options = '-maxdepth 1' \n\nconst readdirStream = findStreamMost('.',[options])\n    .observe(x=\u003econsole.log(x))\n```\n\nusing the Node event Stream Interface\n\n```js\nconst findStreamNode = require('fs-readdir-stream/find-stream')\n// can also be array supports all options that nativ os find supports\nconst options = '-maxdepth 1' \n\nconst readdirStream = findStreamNode('.',[options])\nreaddirStream.stdout.on('data', d=\u003econsole.log(d.toString()))\nreaddirStream.stderr.on('data', d=\u003econsole.log(d.toString()))\nreaddirStream.on('close', (code) =\u003e {\n    console.log(`child process exited with code ${code}`);\n});\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstealify%2Ffs-readdir-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstealify%2Ffs-readdir-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstealify%2Ffs-readdir-stream/lists"}