Node module to check if termux-api is installed on your Android
$ npm install --save has-termux-api
It works well with the termux node module.
const hasTermux = require('has-termux-api')
hasTermux().then(function () {
// yeah
}).catch(function () {
// nope
})
const hasTermux = require('has-termux-api')
if (hasTermux.sync()) {
// ...
} else {
// install it: apt install termux-api
}
Rocco Musolino (@roccomuso)
MIT