Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/roccomuso/has-termux-api
- Owner: roccomuso
- License: mit
- Created: 2017-09-16T16:30:56.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-16T19:46:37.000Z (about 7 years ago)
- Last Synced: 2024-10-14T04:23:00.964Z (22 days ago)
- Topics: android, api, js, module, node, termux, termux-api
- Language: JavaScript
- Size: 2.93 KB
- Stars: 12
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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