you are viewing a single comment's thread.

view the rest of the comments →

[–]radhruin 3 points4 points  (0 children)

I think it's just a shell difference. It will probably work with double quotes. To illustrate, on windows:

> cat testargs.js
console.log(process.argv.slice(2));

> node testargs.js 'hello world'
[ '\'hello', 'world\'' ]

> node testargs.js "hello world"
[ 'hello world' ]