1.0.1 • Published 3 years ago

adbssi v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

adbssi

ADB shell screencap interface

carbon

Install

npm install -g adbssi

Usage

adbssi screenshot.png

Module

import ADBssi from "adbssi"

/* valid ext
    .png | .jpg | .gif
*/
const filename = "screenshot.png"

/* valid type
    usb | tcp | auto
*/
const connectionType = "usb"

ADBssi(filename, connectionType)
    .then((savedFilePath) => {
        /*  savedFilePath */
    })
    .catch((errorTag) => {
        /* errorTag */
    })

Requirement

  • adb (connected to device)
  • node (version >=14)

Android Debug Bridge | Screencap