Extract node server to a file