Skip to content

roccomuso/has-termux-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

has-termux-api

NPM Version JavaScript Style Guide

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 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

Releases

No releases published

Packages

No packages published