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: about 1 year ago
JSON representation
Node module to check if termux-api is installed
- Host: GitHub
- URL: https://github.com/roccomuso/has-termux-api
- Owner: roccomuso
- License: mit
- Created: 2017-09-16T16:30:56.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-16T19:46:37.000Z (almost 9 years ago)
- Last Synced: 2025-03-24T15:11:28.061Z (over 1 year ago)
- Topics: android, api, js, module, node, termux, termux-api
- Language: JavaScript
- Size: 2.93 KB
- Stars: 12
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# has-termux-api
[](https://www.npmjs.com/package/has-termux-api)
[](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