{"id":15497167,"url":"https://github.com/jwerle/to-csv","last_synced_at":"2025-04-22T21:33:11.259Z","repository":{"id":63859182,"uuid":"11932723","full_name":"jwerle/to-csv","owner":"jwerle","description":"Convert objects to CSV","archived":false,"fork":false,"pushed_at":"2016-04-18T12:11:36.000Z","size":12,"stargazers_count":13,"open_issues_count":1,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T07:54:02.523Z","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/jwerle.png","metadata":{"files":{"readme":"README.md","changelog":"History.md","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":"2013-08-06T19:32:24.000Z","updated_at":"2018-05-31T00:25:55.000Z","dependencies_parsed_at":"2022-11-27T19:47:06.865Z","dependency_job_id":null,"html_url":"https://github.com/jwerle/to-csv","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwerle%2Fto-csv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwerle%2Fto-csv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwerle%2Fto-csv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwerle%2Fto-csv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jwerle","download_url":"https://codeload.github.com/jwerle/to-csv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250328982,"owners_count":21412729,"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-02T08:31:17.218Z","updated_at":"2025-04-22T21:33:11.233Z","avatar_url":"https://github.com/jwerle.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"to-csv\n=====\n\nConvert objects to CSV format\n\n## install\n\n```sh\n$ component install jwerle/to-csv\n```\n\n## api\n\n### csv(array, opts)\n\nAccepts an array of objects and converts them to CSV format\n\n## example\n\n```js\nvar data = [];\n\nfor (var i = 0; i \u003c 10; ++i) {\n\tdata.push({ \n\t\tid: Math.random().toString(16).slice(2), \n\t\tvalue: data.length % 2 \n\t});\n}\n\nconsole.log(csv(data));\n/**\n \tid,value\n\t22dd67dd,0\n\t8d18327,1\n\tadfcb2bb,0\n\t5424635b,1\n\tf8049525,0\n\t49493c6d,1\n\taf99d0f1,0\n\td9f82d24,1\n\te7f38d52,0\n\t47ef5c67,1\n**/\n```\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwerle%2Fto-csv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjwerle%2Fto-csv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwerle%2Fto-csv/lists"}