{"id":15667721,"url":"https://github.com/beatrichartz/legacy_file","last_synced_at":"2025-03-30T04:26:38.332Z","repository":{"id":138592769,"uuid":"92764511","full_name":"beatrichartz/legacy_file","owner":"beatrichartz","description":"Read files using CR or CRLF or just LF into elixir and treat them all the same.","archived":false,"fork":false,"pushed_at":"2017-05-29T18:30:57.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-05T06:44:39.134Z","etag":null,"topics":["carriage-return","elixir","file","legacy","line-feed","stream"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/beatrichartz.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":"2017-05-29T18:18:14.000Z","updated_at":"2020-01-12T20:59:11.000Z","dependencies_parsed_at":"2024-03-30T22:16:41.876Z","dependency_job_id":null,"html_url":"https://github.com/beatrichartz/legacy_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/beatrichartz%2Flegacy_file","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beatrichartz%2Flegacy_file/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beatrichartz%2Flegacy_file/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beatrichartz%2Flegacy_file/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beatrichartz","download_url":"https://codeload.github.com/beatrichartz/legacy_file/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246277289,"owners_count":20751544,"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":["carriage-return","elixir","file","legacy","line-feed","stream"],"created_at":"2024-10-03T14:05:01.841Z","updated_at":"2025-03-30T04:26:38.309Z","avatar_url":"https://github.com/beatrichartz.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LegacyFile\n\n#### You have:\nFiles separated by CR (carriage return_), LF (line feed), or CRLF?\n\n#### You want:\nTo read them all in and expose a stream of lines regardless.\n\n#### Wait! Doesn't Elixir / Erlang support this out of the box?\nNo. [File.Stream](https://github.com/elixir-lang/elixir/blob/v1.4.4/lib/elixir/lib/file/stream.ex#L85) uses\n[IO.each__stream](https://github.com/elixir-lang/elixir/blob/v1.4.4/lib/elixir/lib/io.ex#L502) which uses\n[:io.get_line](http://erlang.org/documentation/doc-5.3/lib/stdlib-1.12/doc/html/io.html#get_line%2). LF and CRLF are\nhandled, but not CR, which is used in some Mac OS and other legacy formats.\n\n## Installation\n\nIf [available in Hex](https://hex.pm/docs/publish), the package can be installed\nby adding `legacy_file` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [{:legacy_file, \"~\u003e 0.1.0\"}]\nend\n```\n\nDocumentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)\nand published on [HexDocs](https://hexdocs.pm). Once published, the docs can\nbe found at [https://hexdocs.pm/legacy_file](https://hexdocs.pm/legacy_file).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeatrichartz%2Flegacy_file","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeatrichartz%2Flegacy_file","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeatrichartz%2Flegacy_file/lists"}