1.0.0 • Published 7 years ago
has-termux-api v1.0.0
has-termux-api
Node module to check if termux-api is installed
Install
$ npm install --save has-termux-api
It works well with the termux node module.
Usage
const hasTermux = require('has-termux-api')
hasTermux().then(function () {
// yeah
}).catch(function () {
// nope
})
Sync usage
const hasTermux = require('has-termux-api')
if (hasTermux.sync()) {
// ...
} else {
// install it: apt install termux-api
}
Author
Rocco Musolino (@roccomuso)
License
MIT
1.0.0
7 years ago