I have a node script that is receiving the following argument: ^PPP
.
I am calling the script as following: npm run scriptName ^PPP
.
However inside the script if I do a console.log(process.argv)
, the output shows my argument as PPP
.
I tried escaping the character as npm run scriptName \^PPP
and npm run scriptName "^PPP"
but to no avail.
Please help how can I receive the original string from the arguments.
PowerShell to run command and v10.16.2 node version