dnfuller
11/1/2018 - 12:21 AM

process.argv method to capture search terms

process.argv method to capture search terms. capturing an index and incorporating the rest of the term

// Grab search command line argument
var search = process.argv[2];
// Joining the remaining arguments since an actor or tv show name may contain spaces
var term = process.argv.slice(3).join(" ");