has-termux-api

1.0.0 • Public • Published

has-termux-api

NPM Version JavaScript Style Guide

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    36
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    36

Package Sidebar

Install

npm i has-termux-api

Weekly Downloads

36

Version

1.0.0

License

MIT

Last publish

Collaborators

  • roccomuso