https://github.com/xadillax/detect-python-interpreter
Detect the executable python interpreter cmd in $PATH.
https://github.com/xadillax/detect-python-interpreter
Last synced: 3 months ago
JSON representation
Detect the executable python interpreter cmd in $PATH.
- Host: GitHub
- URL: https://github.com/xadillax/detect-python-interpreter
- Owner: XadillaX
- License: mit
- Created: 2022-04-12T11:00:30.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2025-01-07T23:46:05.000Z (6 months ago)
- Last Synced: 2025-04-11T11:49:12.198Z (3 months ago)
- Language: JavaScript
- Size: 15.6 KB
- Stars: 2
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# detect-python-interpreter
[](https://www.npmjs.org/package/detect-python-interpreter)
[](https://github.com/XadillaX/detect-python-interpreter)
[](https://coveralls.io/github/XadillaX/detect-python-interpreter)Detect the executable python interpreter cmd in $PATH.
## Installation
```shell
$ npm install --save detect-python-interpreter
```## Usage
```js
const { detect } = require('detect-python-interpreter');const executable = detect(); // 'python', 'python2', 'python3' or throw an Error.
```## Contribution
PRs and Issues are welcomed.