{"id":19208521,"url":"https://github.com/heiwa4126/test-json2csv","last_synced_at":"2025-07-18T21:32:28.763Z","repository":{"id":251150610,"uuid":"836542290","full_name":"heiwa4126/test-json2csv","owner":"heiwa4126","description":"json2csv が「警告: このパッケージは放棄されました」と言ってるので、@json2csv/node に置き換える練習。","archived":false,"fork":false,"pushed_at":"2024-08-01T04:53:36.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T07:15:01.751Z","etag":null,"topics":["bun","json2csv","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/heiwa4126.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":"2024-08-01T04:27:42.000Z","updated_at":"2024-08-01T04:53:38.000Z","dependencies_parsed_at":"2024-08-01T07:07:07.255Z","dependency_job_id":null,"html_url":"https://github.com/heiwa4126/test-json2csv","commit_stats":null,"previous_names":["heiwa4126/test-json2csv"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/heiwa4126/test-json2csv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heiwa4126%2Ftest-json2csv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heiwa4126%2Ftest-json2csv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heiwa4126%2Ftest-json2csv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heiwa4126%2Ftest-json2csv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heiwa4126","download_url":"https://codeload.github.com/heiwa4126/test-json2csv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heiwa4126%2Ftest-json2csv/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265837577,"owners_count":23836557,"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":["bun","json2csv","typescript"],"created_at":"2024-11-09T13:26:48.299Z","updated_at":"2025-07-18T21:32:28.735Z","avatar_url":"https://github.com/heiwa4126.png","language":"TypeScript","readme":"# test-json2csv\n\n[json2csv](https://www.npmjs.com/package/json2csv) が「**警告: このパッケージは放棄されました**」\nと言ってるので、\n[@json2csv/node](https://www.npmjs.com/package/@json2csv/node)\nに置き換える練習。\n\nBun で TypeScript で書いてある。\n\n## テスト\n\n```sh\n# json2csv で書いたサンプル\nbun ex0\n\n# ↑を @json2csv/node に置き換えたサンプル\nbun ex1\n\n# ↑をJSONの変換とファイルの書き出しをパイプラインにしたサンプル\nbun ex2\n\n# ↑をジェネリックにしたしたサンプル\nbun ex3\n\n## どのサンプルも ./dist/の下にcsvができる。\n```\n\nどのサンプルも convertAndSaveToCSV() で await を省略してるので、\n適時 Promise.all() とかすること。\n\nExcel 用に utf-8 の bom が要る場合は\n\n```typescript\n// UTF-8 BOMを書き込む\nwritableStream.write(\"\\ufeff\");\n```\n\nなどを追加してください。\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheiwa4126%2Ftest-json2csv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheiwa4126%2Ftest-json2csv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheiwa4126%2Ftest-json2csv/lists"}