Merge files using Node This simple example merges two or more files into another. Steps Input the command: node merge.js output.txt file1.txt file2.txt NOTE: This script doesn't take into account the file order.