JSPM

appium-adb

14.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 468457
  • Score
    100M100P100Q182273F
  • License Apache-2.0

Android Debug Bridge interface

Package Exports

  • appium-adb
  • appium-adb/build/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (appium-adb) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

appium-adb

NPM version Downloads

A wrapper over Android Debugger Bridge, implemented using ES6 and along with async/await. This package is mainly used by Appium to perform all adb operations on Android devices.

Installing

npm install appium-adb

Watch

npm run dev

Test

unit tests

npm run test

functional tests

By default the functional tests use an avd named NEXUS_S_18_X86, with API Level 18. To change this, you can use the environment variables PLATFORM_VERSION, API_LEVEL, and ANDROID_AVD. If PLATFORM_VERSION is set then it is not necessary to set API_LEVEL as it will be inferred.

npm run e2e-test

Usage:

example:

import { ADB } from 'appium-adb';

const adb = await ADB.createADB();
console.log(await adb.getPIDsByName('com.android.phone'));