{"id":16758427,"url":"https://github.com/kessler/node-csv-splitter","last_synced_at":"2025-03-16T08:20:29.832Z","repository":{"id":185971745,"uuid":"674419792","full_name":"kessler/node-csv-splitter","owner":"kessler","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-03T23:28:07.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-08T08:12:40.365Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kessler.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}},"created_at":"2023-08-03T23:00:11.000Z","updated_at":"2023-08-04T07:55:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"8c07cc16-8c8d-4a46-a2c0-6cb0ab8164b4","html_url":"https://github.com/kessler/node-csv-splitter","commit_stats":null,"previous_names":["kessler/node-csv-splitter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kessler%2Fnode-csv-splitter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kessler%2Fnode-csv-splitter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kessler%2Fnode-csv-splitter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kessler%2Fnode-csv-splitter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kessler","download_url":"https://codeload.github.com/kessler/node-csv-splitter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243841999,"owners_count":20356585,"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-13T04:05:16.473Z","updated_at":"2025-03-16T08:20:29.797Z","avatar_url":"https://github.com/kessler.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @kessler/csv-splitter\n\nA tool for splitting csv files.\n\nCan be used from command line or programmatically.\n\nEach page will end with two newlines. For a csv with headers, each page will begin with the headers.\n\n## cli install\n\n```\n  npm i -g @kessler/csv-splitter\n```\n\n## cli usage\n\n### csv with headers\n\nsplit 4 rows into pages of 2 rows\n```\n  $ echo id,name\\n1,foo\\n2,bar\\n3,blip\\n4,blamp | node index.mjs -s 2\n  id,name\n  1,foo\n  2,bar\n\n  id,name\n  3,blip\n  4,blamp\n```\n### csv without headers\n\nsplit 4 rows into pages of 2 rows\n```\n  $ echo 1,foo\\n2,bar\\n3,blip\\n4,blamp | node index.mjs -s 2 --noHeaders\n  1,foo\n  2,bar\n\n  3,blip\n  4,blamp⏎\n```\n\n## module install\n```\n  npm i @kessler/csv-splitter\n```\n\n## module usage\n\n```js\n  import csvSplit from '@kessler/csv-splitter'\n\n  async function main() {\n    await csvSplit(process.stdin, process.stdout, { size: 100 })\n  }\n\n  main()\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkessler%2Fnode-csv-splitter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkessler%2Fnode-csv-splitter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkessler%2Fnode-csv-splitter/lists"}