I created node app that should be run through terminal with some parameters like:
node index.js --param1="test" --body=<div style="font-family: Lato;">
Problem is that when I run this in args I have:
[ '--param1=test',
'--body=<div style=font-family:',
'Lato' ]
I need to pass HTML content inside through parameter but quotes are always stripped off.
Is there any way to get it without putting \"
before every quote?
(function(args){
console.log(process.argv.slice(2));
}(process.argv.slice(2)))