This isn't really a code-heavy question since it's more of a concept-type.
var args = require('minimist')(process.argv.slice(2), {string: "name"});
How does the code above work? I understand that I am including the minimist library in from the NPM but I don't quite understand why there's (process.argv.slice(2)). There are two open close parentheses over them.
I don't know how this process is called in Javascript. Is there any name for this form of usage ('minimist')(process.argv.slice....)?