Nodejs.npmrc cross platform syntax for working directory / current directory

  .npmrc, linux, node.js, npm, windows

It’s possible to use ${PWD} in a nodejs project .npmrc to get the project directory path. However this dynamic environment variable doesn’t seem to work on windows.

The syntax ${__CD__} appears to work on windows.

However I need a solution that works for consuming developers regardless of OS. Is there a syntax available I’m just not seeing please?

Source: Windows Questions