{"id":24793054,"url":"https://github.com/zhenglinlei/json2csv","last_synced_at":"2026-05-09T14:41:44.661Z","repository":{"id":64915630,"uuid":"579423702","full_name":"ZhengLinLei/json2csv","owner":"ZhengLinLei","description":"Parse js/json object/string into csv","archived":false,"fork":false,"pushed_at":"2023-09-12T20:39:18.000Z","size":14,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T03:23:40.946Z","etag":null,"topics":["api","csv","js","json","nodejs","object"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/zll-json2csv","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/ZhengLinLei.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-17T16:44:02.000Z","updated_at":"2022-12-25T20:01:50.000Z","dependencies_parsed_at":"2025-01-29T21:55:53.533Z","dependency_job_id":"6ca7881e-3179-4b3a-a97b-d4cd8928bcde","html_url":"https://github.com/ZhengLinLei/json2csv","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZhengLinLei%2Fjson2csv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZhengLinLei%2Fjson2csv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZhengLinLei%2Fjson2csv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZhengLinLei%2Fjson2csv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZhengLinLei","download_url":"https://codeload.github.com/ZhengLinLei/json2csv/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245315295,"owners_count":20595217,"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":["api","csv","js","json","nodejs","object"],"created_at":"2025-01-29T21:55:46.346Z","updated_at":"2026-05-09T14:41:44.614Z","avatar_url":"https://github.com/ZhengLinLei.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# json2csv.js\n\n![License](https://img.shields.io/badge/License-MIT-blue.svg)\n![GitHub file size in bytes](https://img.shields.io/github/size/ZhengLinLei/json2csv/src/json2csv.js)\n![npm](https://img.shields.io/npm/dw/zll-json2csv)\n\n## Installation\n\n```bash\nnpm install zll-json2csv\nnpm i zll-json2csv\n```\n\n## Usage\n\n```javascript\nconst json2csv = require('zll-json2csv');\n\n// Create a JSON array\nconst json = [\n    {\n        name: \"John\",\n        age: 30,\n        city: \"New York\"\n    },\n    {\n        name: \"Peter\",\n        age: 40,\n        city: \"Los Angeles\"\n    },\n    {\n        name: \"Amy\",\n        age: 50,\n        city: \"Chicago\"\n    }\n];\n\n// Convert JSON array to CSV string\nconst csv = json2csv(json);\n\n// Print CSV string\nconsole.log(csv);\n```\n\n## Output\n\n```csv\nname,age,city\nJohn,30,New York\nPeter,40,Los Angeles\nAmy,50,Chicago\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhenglinlei%2Fjson2csv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhenglinlei%2Fjson2csv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhenglinlei%2Fjson2csv/lists"}