u just want the item so u can cut/paste it into the config?
even smaller, doit.js
var fs = require("fs");
var text = fs.readFileSync("./textfile");
console.log("file="+text);
var list_of_images=text.toString().split(/\r\n|\n/); // windows or linux line ends
console.log("video_list:"+JSON.stringify(list_of_images));
node doit.js
file=line1
line2
line3
line4
line5
video_list:["line1","line2","line3","line4","line5"]
| changed to use ‘:’ instead of = , easier cut/paste jnto config.js