I run app.js with command node app.js
It executes const inputData = require('./input.json');
Is it possible pass file name as argument to const inputData = require('./file.json');
from command line? I mean:
node app.js file.json
I am totally new to this trickery, have no theoretical point. From where I should start? Many thanks for all possible help.
Much obliged,