{"id":13394588,"url":"https://github.com/mholt/PapaParse","last_synced_at":"2025-03-13T20:31:37.248Z","repository":{"id":11055583,"uuid":"13395052","full_name":"mholt/PapaParse","owner":"mholt","description":"Fast and powerful CSV (delimited text) parser that gracefully handles large files and malformed input","archived":false,"fork":false,"pushed_at":"2024-09-12T19:43:03.000Z","size":14556,"stargazers_count":12517,"open_issues_count":198,"forks_count":1147,"subscribers_count":153,"default_branch":"master","last_synced_at":"2024-10-29T22:56:24.536Z","etag":null,"topics":["csv","csv-parser","javascript"],"latest_commit_sha":null,"homepage":"http://PapaParse.com","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/mholt.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":"2013-10-07T20:33:21.000Z","updated_at":"2024-10-29T17:17:50.000Z","dependencies_parsed_at":"2024-04-27T14:43:53.908Z","dependency_job_id":"dc49aeb9-72ec-4f5a-831e-a8981e9c8765","html_url":"https://github.com/mholt/PapaParse","commit_stats":{"total_commits":447,"total_committers":140,"mean_commits":3.192857142857143,"dds":0.6733780760626398,"last_synced_commit":"016effe152b218c2545ab70b818f75758cad2e3c"},"previous_names":["mholt/jquery.parse"],"tags_count":77,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mholt%2FPapaParse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mholt%2FPapaParse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mholt%2FPapaParse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mholt%2FPapaParse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mholt","download_url":"https://codeload.github.com/mholt/PapaParse/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243188233,"owners_count":20250457,"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","csv-parser","javascript"],"created_at":"2024-07-30T17:01:24.714Z","updated_at":"2025-03-13T20:31:37.206Z","avatar_url":"https://github.com/mholt.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Repository","Files","Framework or Library","javascript","GIT 仓库","Files [🔝](#readme)","Utilities","Programming Languages","JavaScript Libs","文件","工具库","Locker Safe JS Resources"],"sub_categories":["Parsing","Runner","Parser","解析工具","React Components","JavaScript","File","运行器","运行器e2e测试"],"readme":"Parse CSV with JavaScript\n========================================\n\nPapa Parse is the fastest in-browser CSV (or delimited text) parser for JavaScript. It is reliable and correct according to [RFC 4180](https://tools.ietf.org/html/rfc4180), and it comes with these features:\n\n- Easy to use\n- Parse CSV files directly (local or over the network)\n- Fast mode\n- Stream large files (even via HTTP)\n- Reverse parsing (converts JSON to CSV)\n- Auto-detect delimiter\n- Worker threads to keep your web page reactive\n- Header row support\n- Pause, resume, abort\n- Can convert numbers and booleans to their types\n- Optional jQuery integration to get files from `\u003cinput type=\"file\"\u003e` elements\n- One of the only parsers that correctly handles line-breaks and quotations\n\nPapa Parse has **no dependencies** - not even jQuery.\n\nInstall\n-------\n\npapaparse is available on [npm](https://www.npmjs.com/package/papaparse). It\ncan be installed with the following command:\n```shell\nnpm install papaparse\n```\n\nIf you don't want to use npm, [papaparse.min.js](https://unpkg.com/papaparse@latest/papaparse.min.js) can be downloaded to your project source.\n\nUsage\n-----\n```js\nimport Papa from 'papaparse';\n\nPapa.parse(file, config);\n    \nconst csv = Papa.unparse(data[, config]);\n```\n\nHomepage \u0026 Demo\n----------------\n\n- [Homepage](http://papaparse.com)\n- [Demo](http://papaparse.com/demo)\n\nTo learn how to use Papa Parse:\n\n- [Documentation](http://papaparse.com/docs)\n\nThe website is hosted on [Github Pages](https://pages.github.com/). Its content is also included in the docs folder of this repository. If you want to contribute on it just clone the master of this repository and open a pull request.\n\n\nPapa Parse for Node\n--------------------\n\nPapa Parse can parse a [Readable Stream](https://nodejs.org/api/stream.html#stream_readable_streams) instead of a [File](https://www.w3.org/TR/FileAPI/) when used in Node.js environments (in addition to plain strings). In this mode, `encoding` must, if specified, be a Node-supported character encoding. The `Papa.LocalChunkSize`, `Papa.RemoteChunkSize` , `download`, `withCredentials` and `worker` config options are unavailable.\n\nPapa Parse can also parse in a node streaming style which makes `.pipe` available.  Simply pipe the [Readable Stream](https://nodejs.org/api/stream.html#stream_readable_streams) to the stream returned from `Papa.parse(Papa.NODE_STREAM_INPUT, options)`.  The `Papa.LocalChunkSize`, `Papa.RemoteChunkSize` , `download`, `withCredentials`, `worker`, `step`, and `complete` config options are unavailable.  To register a callback with the stream to process data, use the `data` event like so: `stream.on('data', callback)` and to signal the end of stream, use the 'end' event like so: `stream.on('end', callback)`.\n\nGet Started\n-----------\n\nFor usage instructions, see the [homepage](http://papaparse.com) and, for more detail, the [documentation](http://papaparse.com/docs).\n\nTests\n-----\n\nPapa Parse is under test. Download this repository, run `npm install`, then `npm test` to run the tests.\n\nContributing\n------------\n\nTo discuss a new feature or ask a question, open an issue. To fix a bug, submit a pull request to be credited with the [contributors](https://github.com/mholt/PapaParse/graphs/contributors)! Remember, a pull request, *with test*, is best. You may also discuss on Twitter with [#PapaParse](https://twitter.com/search?q=%23PapaParse\u0026src=typd\u0026f=realtime) or directly to me, [@mholt6](https://twitter.com/mholt6).\n\nIf you contribute a patch, ensure the tests suite is running correctly. We run continuous integration on each pull request and will not accept a patch that breaks the tests.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmholt%2FPapaParse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmholt%2FPapaParse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmholt%2FPapaParse/lists"}