You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 6, 2019. It is now read-only.
I'm working on a project creation template create-esm and it would be great to be able to detect that npx invoked it so that I can defer to npm init, instead of say, yarn init.
My guess is that this could be done through an environment variable that is set for the executed child process.
Update:
On MacOS at least the process.env._ variable holds the executing path '/Users/jdalton/.nvm/versions/node/v9.9.0/bin/npx'