{"repo":"roccomuso/termux","free":true,"listed":false,"github":"https://github.com/roccomuso/termux","clone":"git clone https://github.com/roccomuso/termux.git","description":"Node.js module for Termux-API","language":"JavaScript","stars":189,"topics":["android","termux","api","nodejs","node","js","wrapper"],"license":"MIT","category":"mobile-apps","readme_excerpt":"termux Comprehensive Node.js module for Termux-API Install 1. Make sure you've first installed the termux-api on your Android device from the Play store. 2. Then install the scripts with apt install termux-api . 3. Finally get this node module: $ yarn add termux (or, if you prefer npm: npm install --save termux ) Example usage Available methods Every command instance has the .run() method that must be used to execute the command. It always return a Promise (eventually with results). Method Description Parameters -------- ------------- ----------- .toast() Show a toast message set the text to show .text( ) show the toast for a short while .transient() .vibrate() Vibrate your phone set the duration in milliseconds .duration( ) force vibration even in silent mode .force() .batteryStatus() Get the status of the device battery .cameraInfo() Get info about device camera(s) .cameraPhoto() Take a photo and save it to a file (JPEG format) select the camera by ID .camera( ) output photo file (NB. use an absolute path!) .outputFile( ) .clipboardGet() Get the system clipboard text .clipboardSet() Set the system clipboard text text to copy in clipboard .text( ) .contactList() Set the system clipboard text .contactList() List all contacts .dialog() Show a text entry dialog dialog title .title( ) hint to show when input is empty .hint( ) use a textarea with multiple lines .multipleLines() enter the input as a password .password() .download() Download a resource using the download manager se","default_branch":null,"files":null,"tree":[],"storefront":"/r/roccomuso","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/roccomuso/termux/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}