The problem is that when you pass a command-line argument is passed as a string.
So when I run this node index.js [[1,2],[2,3]]
I am getting that in the process.argv
[
'/Users/user/.nvm/versions/node/v12.13.0/bin/node',
'/Users/user/node/index.js',
'[[1,2],[2,3]]'
]
I can make a parser for that but I am trying to avoid that.
Is there a way to do that or I am abusing the arguments?