Detect the executable python interpreter cmd in $PATH.
$ npm install --save detect-python-interpreter
const { detect } = require('detect-python-interpreter');
const executable = detect(); // 'python', 'python2', 'python3' or throw an Error.
PRs and Issues are welcomed.