{"id":17419803,"url":"https://github.com/bendrucker/json-to-csv-stream","last_synced_at":"2025-04-15T00:00:21.911Z","repository":{"id":57285358,"uuid":"60861623","full_name":"bendrucker/json-to-csv-stream","owner":"bendrucker","description":"Convert a JSON array stream into CSV rows","archived":false,"fork":false,"pushed_at":"2021-01-26T03:42:08.000Z","size":12,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T08:14:02.286Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/bendrucker.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}},"created_at":"2016-06-10T16:22:33.000Z","updated_at":"2023-12-04T04:00:37.000Z","dependencies_parsed_at":"2022-09-10T09:55:19.191Z","dependency_job_id":null,"html_url":"https://github.com/bendrucker/json-to-csv-stream","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fjson-to-csv-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fjson-to-csv-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fjson-to-csv-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fjson-to-csv-stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bendrucker","download_url":"https://codeload.github.com/bendrucker/json-to-csv-stream/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248981263,"owners_count":21193145,"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-10-17T02:33:35.161Z","updated_at":"2025-04-15T00:00:21.712Z","avatar_url":"https://github.com/bendrucker.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# json-to-csv-stream [![Build Status](https://travis-ci.org/bendrucker/json-to-csv-stream.svg?branch=master)](https://travis-ci.org/bendrucker/json-to-csv-stream)\n\n\u003e Convert a JSON array stream into CSV rows\n\n\n## Install\n\n```\n$ npm install --save json-to-csv-stream\n```\n\n\n## Usage\n\n```js\nvar jsonToCsv = require('json-to-csv-stream')\nvar fs = require('fs')\n\nfs.createReadStream('./data.json')\n  .pipe(jsonToCsv())\n  .pipe(fs.createWriteStream('./data.csv'))\n```\n\n## API\n\n#### `jsonToCsvStream(options)` -\u003e `Transform`\n\n##### options\n\nType: `object`  \nDefault: `{}`\n\n###### path\n\nType: `any`\nDefault: `undefined`\n\nA path for [`JSONStream.parse`](https://github.com/dominictarr/JSONStream#jsonstreamparsepath).\n\n###### csv\n\nType: `object`  \nDefault: `undefined`\n\nOptions to pass to [`csv-write-stream`](https://github.com/maxogden/csv-write-stream#var-writer--csvwriteroptions).\n\n## License\n\nMIT © [Ben Drucker](http://bendrucker.me)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendrucker%2Fjson-to-csv-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbendrucker%2Fjson-to-csv-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendrucker%2Fjson-to-csv-stream/lists"}