Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/roccomuso/has-termux-api

Node module to check if termux-api is installed
https://github.com/roccomuso/has-termux-api

android api js module node termux termux-api

Last synced: 19 days ago
JSON representation

Node module to check if termux-api is installed

Awesome Lists containing this project

README

        

# has-termux-api

[![NPM Version](https://img.shields.io/npm/v/has-termux-api.svg)](https://www.npmjs.com/package/has-termux-api)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

> Node module to check if termux-api is installed on your Android

## Install

$ npm install --save has-termux-api

It works well with the [termux](https://github.com/roccomuso/termux) node module.

## Usage

```javascript
const hasTermux = require('has-termux-api')

hasTermux().then(function () {
// yeah
}).catch(function () {
// nope
})
```

## Sync usage

```javascript
const hasTermux = require('has-termux-api')

if (hasTermux.sync()) {
// ...
} else {
// install it: apt install termux-api
}
```

# Author

Rocco Musolino ([@roccomuso](https://twitter.com/roccomuso))

# License

MIT