{"id":17767444,"url":"https://github.com/jamiebuilds/readdir-withfiletypes","last_synced_at":"2025-04-01T14:48:19.494Z","repository":{"id":66095019,"uuid":"176820865","full_name":"jamiebuilds/readdir-withFileTypes","owner":"jamiebuilds","description":"A ponyfill for fs.readdir(path, { withFileTypes: true })","archived":false,"fork":false,"pushed_at":"2019-03-20T21:42:19.000Z","size":111,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-12T21:02:51.047Z","etag":null,"topics":["fs","node","nodejs","polyfill","ponyfill","readdir","readdirsync"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jamiebuilds.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-20T21:36:47.000Z","updated_at":"2019-09-16T06:45:45.000Z","dependencies_parsed_at":"2023-10-15T03:48:33.514Z","dependency_job_id":null,"html_url":"https://github.com/jamiebuilds/readdir-withFileTypes","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamiebuilds%2Freaddir-withFileTypes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamiebuilds%2Freaddir-withFileTypes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamiebuilds%2Freaddir-withFileTypes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamiebuilds%2Freaddir-withFileTypes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamiebuilds","download_url":"https://codeload.github.com/jamiebuilds/readdir-withFileTypes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246659896,"owners_count":20813333,"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":["fs","node","nodejs","polyfill","ponyfill","readdir","readdirsync"],"created_at":"2024-10-26T20:46:55.729Z","updated_at":"2025-04-01T14:48:19.474Z","avatar_url":"https://github.com/jamiebuilds.png","language":"TypeScript","readme":"# readdir-withFileTypes\n\n\u003e A ponyfill for `fs.readdir(path, { withFileTypes: true })`\n\n## Install\n\n```sh\nnpm install --save readdir-withfiletypes\n```\n\n## Usage\n\n**Before:** No support for Node \u003c10\n\n```js\nimport fs from \"fs\"\n\nfs.readdir(\"./dir\", { withFileTypes: true }, (err, dirents) =\u003e {\n\t// ...\n})\n\nlet dirents = readdirSync(\"./dir\", { withFileTypes: true })\n```\n\n**After:** Support for Node \u003c10\n\n```js\nimport { readdir, readdirSync } from \"readdir-withFileTypes\"\n\nreaddir(\"./dir\", { withFileTypes: true }, (err, dirents) =\u003e {\n\t// ...\n})\n\nlet dirents = readdirSync(\"./dir\", { withFileTypes: true })\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamiebuilds%2Freaddir-withfiletypes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamiebuilds%2Freaddir-withfiletypes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamiebuilds%2Freaddir-withfiletypes/lists"}