{"id":21069695,"url":"https://github.com/dailyrandomphoto/read-first-file","last_synced_at":"2025-03-14T02:28:13.604Z","repository":{"id":50942996,"uuid":"282841177","full_name":"dailyrandomphoto/read-first-file","owner":"dailyrandomphoto","description":"Read the frist file from a directory.","archived":false,"fork":false,"pushed_at":"2021-05-27T06:52:38.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-22T23:47:17.445Z","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/dailyrandomphoto.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":"2020-07-27T08:41:00.000Z","updated_at":"2021-05-27T06:52:41.000Z","dependencies_parsed_at":"2022-08-25T12:11:57.778Z","dependency_job_id":null,"html_url":"https://github.com/dailyrandomphoto/read-first-file","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/dailyrandomphoto%2Fread-first-file","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dailyrandomphoto%2Fread-first-file/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dailyrandomphoto%2Fread-first-file/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dailyrandomphoto%2Fread-first-file/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dailyrandomphoto","download_url":"https://codeload.github.com/dailyrandomphoto/read-first-file/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243511008,"owners_count":20302485,"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-19T18:36:40.874Z","updated_at":"2025-03-14T02:28:13.581Z","avatar_url":"https://github.com/dailyrandomphoto.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# read-first-file\n\n[![NPM Version][npm-version-image]][npm-url]\n[![LICENSE][license-image]][license-url]\n[![Build Status][travis-image]][travis-url]\n[![code style: prettier][code-style-prettier-image]][code-style-prettier-url]\n\nRead the first file from a directory.\n\n## Installation\n\n```sh\nnpm install read-first-file\n```\n\n## Usages\n\n```js\nconst readfirst = require(\"read-first-file\");\n\nreadfirst(\"/foo/bar/\", {\n  onFileContent: function (filename, content) {\n    console.log(content);\n  },\n});\n```\n\n## Related\n\n- [a-read-files](https://github.com/dailyrandomphoto/a-read-files) - Read files from a directory.\n\n## License\n\nCopyright (c) 2020 [dailyrandomphoto][my-url]. Licensed under the [MIT license][license-url].\n\n[my-url]: https://github.com/dailyrandomphoto\n[npm-url]: https://www.npmjs.com/package/read-first-file\n[travis-url]: https://travis-ci.org/dailyrandomphoto/read-first-file\n[license-url]: LICENSE\n[code-style-prettier-url]: https://github.com/prettier/prettier\n[npm-downloads-image]: https://img.shields.io/npm/dm/read-first-file\n[npm-version-image]: https://img.shields.io/npm/v/read-first-file\n[license-image]: https://img.shields.io/npm/l/read-first-file\n[travis-image]: https://img.shields.io/travis/dailyrandomphoto/read-first-file\n[code-style-prettier-image]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdailyrandomphoto%2Fread-first-file","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdailyrandomphoto%2Fread-first-file","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdailyrandomphoto%2Fread-first-file/lists"}