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.
node split-csv.js
You can modify the variables in the CONFIGURATION section below to change