You’ll need to npm install d3 and make the script executable (chmod u+x csv2tsv). Then you can run it like ./csv2tsv input.csv > output.tsv.
npm install d3
chmod u+x csv2tsv
./csv2tsv input.csv > output.tsv