{"id":22202306,"url":"https://github.com/rumkin/dir-array","last_synced_at":"2025-07-06T08:05:32.547Z","repository":{"id":152260164,"uuid":"59665713","full_name":"rumkin/dir-array","owner":"rumkin","description":"Node.js package presenting directory as Array.","archived":false,"fork":false,"pushed_at":"2016-07-12T11:41:58.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-02T23:41:42.161Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rumkin.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":"2016-05-25T13:32:20.000Z","updated_at":"2016-05-25T13:37:13.000Z","dependencies_parsed_at":"2023-06-29T17:45:24.723Z","dependency_job_id":null,"html_url":"https://github.com/rumkin/dir-array","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rumkin/dir-array","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumkin%2Fdir-array","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumkin%2Fdir-array/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumkin%2Fdir-array/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumkin%2Fdir-array/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rumkin","download_url":"https://codeload.github.com/rumkin/dir-array/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumkin%2Fdir-array/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263868248,"owners_count":23522317,"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-12-02T16:13:26.428Z","updated_at":"2025-07-06T08:05:32.528Z","avatar_url":"https://github.com/rumkin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dir Array\n\nPresent requested directory as array of file names.\n\n## Installation\n\nIntall via npm\n```\nnpm i dir-array\n```\n\n## Usage\n\nPackage directory:\n```\n.\n|-- package.json\n|-- readme.md\n|-- src\n|   `-- dir-array.js\n`-- test\n    `-- test.spec.js\n```\n\nCode:\n```javascript\nconst DirArray = require('dir-array');\n\nvar cwd = new DirArray(process.cwd());\ncwd; // =\u003e ['src', 'test', 'package.json', 'readme.md']\n\nvar test = cwd.dir('test');\ntest; // =\u003e ['test.spec.js']\n```\n\n\n## License\n\nMIT license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frumkin%2Fdir-array","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frumkin%2Fdir-array","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frumkin%2Fdir-array/lists"}