Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xadillax/detect-python-interpreter

Detect the executable python interpreter cmd in $PATH.
https://github.com/xadillax/detect-python-interpreter

Last synced: 5 days ago
JSON representation

Detect the executable python interpreter cmd in $PATH.

Awesome Lists containing this project

README

        

# detect-python-interpreter

[![](https://img.shields.io/npm/v/detect-python-interpreter)](https://www.npmjs.org/package/detect-python-interpreter)
[![](https://img.shields.io/github/workflow/status/XadillaX/detect-python-interpreter/Node.js%20CI?event=push)](https://github.com/XadillaX/detect-python-interpreter)
[![](https://img.shields.io/coveralls/github/XadillaX/detect-python-interpreter/master)](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.