I previously asked (and got a great answer for) this question: named parameter to npm run script
As mentioned in 1 of the comments to the correct answer, the $npm_config_variable does not work on windows. I'm looking for a cross platform way to run this script as npm run say-hello --greeting='hello'
.
Is there any way to check for the OS in npm scripts and use %% instead of $?