Skip to content

Instantly share code, notes, and snippets.

@dugjason
dugjason / README.md
Created October 13, 2023 20:07
JavaScript script to split a CSV file into multiple smaller CSVs, sharing the same header

This script will take a .CSV file and split it into multiple files, each with a maximum specified number of rows. Each output file will have the same header row as the input file.

Usage:

node split-csv.js

You can modify the variables in the CONFIGURATION section below to change