项目作者: roccomuso

项目描述 :
Node module to check if termux-api is installed
高级语言: JavaScript
项目地址: git://github.com/roccomuso/has-termux-api.git
创建时间: 2017-09-16T16:30:56Z
项目社区:https://github.com/roccomuso/has-termux-api

开源协议:MIT License

下载


has-termux-api

NPM Version
JavaScript Style Guide

Node module to check if termux-api is installed on your Android

Install

  1. $ npm install --save has-termux-api

It works well with the termux node module.

Usage

  1. const hasTermux = require('has-termux-api')
  2. hasTermux().then(function () {
  3. // yeah
  4. }).catch(function () {
  5. // nope
  6. })

Sync usage

  1. const hasTermux = require('has-termux-api')
  2. if (hasTermux.sync()) {
  3. // ...
  4. } else {
  5. // install it: apt install termux-api
  6. }

Author

Rocco Musolino (@roccomuso)

License

MIT