{"id":13454690,"url":"https://github.com/sindresorhus/neat-csv","last_synced_at":"2025-04-09T04:04:05.918Z","repository":{"id":32937270,"uuid":"36533263","full_name":"sindresorhus/neat-csv","owner":"sindresorhus","description":"Fast CSV parser","archived":false,"fork":false,"pushed_at":"2023-06-21T00:27:07.000Z","size":24,"stargazers_count":321,"open_issues_count":0,"forks_count":15,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-01T20:38:38.375Z","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/sindresorhus.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":".github/security.md","support":null,"governance":null},"funding":{"github":"sindresorhus","open_collective":"sindresorhus","custom":"https://sindresorhus.com/donate"}},"created_at":"2015-05-29T22:54:37.000Z","updated_at":"2025-02-23T10:15:53.000Z","dependencies_parsed_at":"2022-08-07T18:30:13.677Z","dependency_job_id":null,"html_url":"https://github.com/sindresorhus/neat-csv","commit_stats":{"total_commits":33,"total_committers":5,"mean_commits":6.6,"dds":"0.12121212121212122","last_synced_commit":"dac3764a37d65ce20446a1fb33d5e35a2fbfbf3c"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fneat-csv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fneat-csv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fneat-csv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fneat-csv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sindresorhus","download_url":"https://codeload.github.com/sindresorhus/neat-csv/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247974715,"owners_count":21026742,"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-07-31T08:00:56.882Z","updated_at":"2025-04-09T04:04:05.886Z","avatar_url":"https://github.com/sindresorhus.png","language":"JavaScript","funding_links":["https://github.com/sponsors/sindresorhus","https://opencollective.com/sindresorhus","https://sindresorhus.com/donate"],"categories":["Packages","Repository","JavaScript","Parsing","包","Number"],"sub_categories":["Parsing","解析"],"readme":"# neat-csv\n\n\u003e Fast CSV parser\n\nConvenience wrapper around the super-fast streaming [`csv-parser`](https://github.com/mafintosh/csv-parser) module. Use that one if you want streamed parsing.\n\nParsing-related issues should be reported to [`csv-parser`](https://github.com/mafintosh/csv-parser/issues).\n\n## Install\n\n```sh\nnpm install neat-csv\n```\n\n## Usage\n\n```js\nimport neatCsv from 'neat-csv';\n\nconst csv = 'type,part\\nunicorn,horn\\nrainbow,pink';\n\nconsole.log(await neatCsv(csv));\n//=\u003e [{type: 'unicorn', part: 'horn'}, {type: 'rainbow', part: 'pink'}]\n```\n\n## API\n\n### neatCsv(data, options?)\n\nReturns a `Promise\u003cobject[]\u003e` with the parsed CSV.\n\n#### data\n\nType: `string | Buffer | stream.Readable`\n\nThe CSV data to parse.\n\n#### options\n\nType: `object`\n\nSee the [`csv-parser` options](https://github.com/mafintosh/csv-parser#options).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Fneat-csv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsindresorhus%2Fneat-csv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Fneat-csv/lists"}