{"id":27129956,"url":"https://github.com/siokas/deno_load_csv","last_synced_at":"2026-05-02T03:31:23.833Z","repository":{"id":78715933,"uuid":"247528386","full_name":"siokas/deno_load_csv","owner":"siokas","description":"Loads csv data from a given file to an array.","archived":false,"fork":false,"pushed_at":"2020-03-15T18:44:44.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-07T19:58:27.500Z","etag":null,"topics":["csv","csv-parser","deno"],"latest_commit_sha":null,"homepage":null,"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/siokas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-03-15T18:39:33.000Z","updated_at":"2020-03-15T19:15:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"0e070496-71bd-4579-bfb2-5f152854d462","html_url":"https://github.com/siokas/deno_load_csv","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/siokas/deno_load_csv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siokas%2Fdeno_load_csv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siokas%2Fdeno_load_csv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siokas%2Fdeno_load_csv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siokas%2Fdeno_load_csv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/siokas","download_url":"https://codeload.github.com/siokas/deno_load_csv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siokas%2Fdeno_load_csv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32522234,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T01:12:54.858Z","status":"online","status_checked_at":"2026-05-02T02:00:05.923Z","response_time":132,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["csv","csv-parser","deno"],"created_at":"2025-04-07T19:58:29.389Z","updated_at":"2026-05-02T03:31:23.818Z","avatar_url":"https://github.com/siokas.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deno_load_csv\n\nIt is a simple function that loads csv data from a given file to an array. It uses the __Deno.readFile__ method to read and parse the file with TextDecoder. [https://deno.land/std/fs/](https://deno.land/std/fs/)\n\n## Installation\n\n```javascript\nimport load_csv from \"https://raw.githubusercontent.com/siokas/deno_load_csv/master/mod.ts\";\n```\n\n## Usage example\n\nJust call the load_csv() method passing the filename (in absolute path).\nThe method returns an object with the __headers__ and the __data__.\n\n```javascript\nlet { headers, data } = await load_csv(\"./MY_FILE.csv\");\n```\nYou may also pass an object with options as __headers__ and __decode__. (By default it is set as headers:true, decode: 'utf-8')\n\n```javascript\nlet { data } = await load_csv(\"./MY_FILE.csv\", {\n    headers:false,\n    decode:'windows-1251'\n});\n```\n\n## ToDo\n\n- [ ] option to shaffle data\n- [ ] extract certain columns\n\n## Used\n\n* [Deno](https://deno.land)\n\n## Meta\n\nApostolos Siokas – [@siokas_](https://twitter.com/siokas_) – apostolossiokas@gmail.com\n\n## Contributing\n\n1. Fork it (\u003chttps://github.com/yourname/yourproject/fork\u003e)\n2. Create your feature branch (`git checkout -b feature/fooBar`)\n3. Commit your changes (`git commit -am 'Add some fooBar'`)\n4. Push to the branch (`git push origin feature/fooBar`)\n5. Create a new Pull Request\n\n## License\n\nDistributed under the [MIT License](https://raw.githubusercontent.com/siokas/deno_load_csv/master/LICENSE). \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiokas%2Fdeno_load_csv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiokas%2Fdeno_load_csv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiokas%2Fdeno_load_csv/lists"}