cross-var
cross-var copied to clipboard
Bugfix for Windows
If a variable doesn't exist on windows, it would always return the variable name as a string (e.g. $npm_config_build). On Linux/OSX on the other hand an empty string is returned.
I now tried to fix this, by checking if the variable exists and replace the variable on windows with an empty string.
Any thoughts about this PR? Could it be merged?