Print environment, runtime, platform & more in npm scripts.
npm install npm-script-context
npm-script-context
Installing will also print info. For an example of the output, see our CI. Note that the output depends on how and where it's run, for example whether it's installed as an npm dependency, git dependency or standalone.