This is a very lightweight and straightforward module that proposes a simple, yet limited, solution to write portable NPM scripts when those have to work on Windows too (the hell with Windows, hopefully someday all developers will be working on Unix).
npm-run-posix-or-windows in NPM
scripts to run an alternative script
when the script is run under Windows. When under Windows the script name is then