{"id":21035315,"url":"https://github.com/nolleh/simple-csv-parser","last_synced_at":"2026-04-17T00:02:23.485Z","repository":{"id":153100775,"uuid":"628185925","full_name":"nolleh/simple-csv-parser","owner":"nolleh","description":"transform csv string to javascript object","archived":false,"fork":false,"pushed_at":"2023-06-10T05:39:19.000Z","size":12767,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-24T09:36:01.977Z","etag":null,"topics":["csv","javascript","nodejs","npm-package","typescript"],"latest_commit_sha":null,"homepage":"","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/nolleh.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":"2023-04-15T06:55:23.000Z","updated_at":"2023-07-26T21:38:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"a0e6b084-3a02-4bb6-b41d-47eff13cf2eb","html_url":"https://github.com/nolleh/simple-csv-parser","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/nolleh/simple-csv-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nolleh%2Fsimple-csv-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nolleh%2Fsimple-csv-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nolleh%2Fsimple-csv-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nolleh%2Fsimple-csv-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nolleh","download_url":"https://codeload.github.com/nolleh/simple-csv-parser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nolleh%2Fsimple-csv-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31909235,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"ssl_error","status_checked_at":"2026-04-16T18:21:47.142Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","javascript","nodejs","npm-package","typescript"],"created_at":"2024-11-19T13:14:31.778Z","updated_at":"2026-04-17T00:02:23.431Z","avatar_url":"https://github.com/nolleh.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Coverage Status](https://github.com/nolleh/simple-csv-parser/raw/gh-pages/badges/coverage-jest%20coverage.svg?raw=true)](https://nolleh.github.io/simple-csv-parser/badges/coverage-jest%20coverage.svg?raw=true)\n[![npm version](https://badge.fury.io/js/@nolleh%2Fsimple-csv-parser.svg)](https://badge.fury.io/js/@nolleh%2Fsimple-csv-parser)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n## Overview\n\n`simple-csv-parser`\nfor javascript / typescript.  \nmarshal/serialize csv string to Object.\n\n## Usage\n\nNo need other dependency. super simple usage.\n\n```typescript\nclass Message {\n  name: string;\n  message: string;\n  constructor(name: string, message: string) {\n    this.name = name;\n    this.message = message;\n  }\n}\n\nconst messages: Message[] = CsvParser.toObject\u003cMessage\u003e(\n  `name,message\\r\\nnolleh,\"hello, world\"`\n);\n\n// do something with messages...\nconst messages = CsvParser.toObject\u003cMessage\u003e(\n  `name,message\\r\\nnolleh,\"hello, world\"\\nnolleh,hello2`\n);\nconsole.log({ messages });\n```\n\nresult is\n\n```bash\n{\n  messages: [\n    { name: 'nolleh', message: 'hello, world' },\n    { name: 'nolleh', message: 'hello2' }\n  ]\n}\n```\n\nif input string is malformed csv, then it return empty array.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnolleh%2Fsimple-csv-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnolleh%2Fsimple-csv-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnolleh%2Fsimple-csv-parser/lists"}