{"id":16694054,"url":"https://github.com/haoliangyu/rx-from-csv","last_synced_at":"2025-04-10T01:33:15.602Z","repository":{"id":57355882,"uuid":"91221067","full_name":"haoliangyu/rx-from-csv","owner":"haoliangyu","description":"RxJS 5 operator to load csv file","archived":false,"fork":false,"pushed_at":"2023-04-18T12:15:39.000Z","size":114,"stargazers_count":6,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T13:36:54.358Z","etag":null,"topics":["csv","operator","read","rxjs"],"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/haoliangyu.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2017-05-14T04:59:26.000Z","updated_at":"2023-03-08T03:05:37.000Z","dependencies_parsed_at":"2022-09-05T21:30:18.757Z","dependency_job_id":null,"html_url":"https://github.com/haoliangyu/rx-from-csv","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haoliangyu%2Frx-from-csv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haoliangyu%2Frx-from-csv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haoliangyu%2Frx-from-csv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haoliangyu%2Frx-from-csv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haoliangyu","download_url":"https://codeload.github.com/haoliangyu/rx-from-csv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248140706,"owners_count":21054340,"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":["csv","operator","read","rxjs"],"created_at":"2024-10-12T16:43:35.453Z","updated_at":"2025-04-10T01:33:15.577Z","avatar_url":"https://github.com/haoliangyu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rx-from-csv\n\n![build status](https://travis-ci.org/haoliangyu/rx-from-csv.svg?branch=master)\n\n[![ReactiveX](http://reactivex.io/assets/Rx_Logo_S.png)](http://reactivex.io/)\n\n[RxJS 5](http://reactivex.io/) operator to load [CSV](https://en.wikipedia.org/wiki/Comma-separated_values) file\n\nWork in both JavaScript and TypeScript\n\n## Installation\n\n```\nnpm install rx-from-csv\n```\n\n## Use\n\nThis library exposes a static `fromCSV` operator:\n\n```\nfromCSV(path: string, options?: object): Observable\u003cT\u003e;\n```\n\nThe new `fromCSV` operator will load the CSV file from the give path and emit each row as an object, whose keys are column names and values are column values.\n\nParameters:\n\n  * **path**: csv file path\n  * **options**: optional configuration for the csv creation\n    * **delimiter**: a character to separate values. Default: `,`\n    * **noHeaderRow**: a boolean value to indicate whether there is a head row.\n    * **columns**: an array of column names. This is required if `noHeaderRow` is true.\n\n## Example\n\n``` javascript\nimport { fromCSV } from 'rx-from-csv';\n\n/**\n * For example, there is a data.csv with content\n *\n * id,name\n * 1,\"Mike\",\n * 2,\"Tommy\"\n */\n\nfromCSV('data.csv')\n  .subscribe((data) =\u003e {\n    console.log(data);\n  });\n\n/**\n * It will output:\n * { id: '1', name: 'Mike' }\n * { id: '1', name: 'Tommy' }\n */\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaoliangyu%2Frx-from-csv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaoliangyu%2Frx-from-csv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaoliangyu%2Frx-from-csv/lists"}