Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 591 Bytes

Readme.md

File metadata and controls

34 lines (24 loc) · 591 Bytes

game-adb

Introduction

game-adb is an easy-to-use adb library for making automated game software

Installation

// with npm
npm install game-adb

// with yarn
yarn add game-adb

Usage

Create adb client and get device

import { Adb } from "game-adb";

(async () => {
  const adb = await Adb(path/to/adb);
  const devices = await adb.getDevices()
  const device = adb.devices.find((d) => d.serialNumber === "emulator-5554");
  
  if (device) {
    // code
  }
})()

Please view the contents of the "test" folder in packages for more usage instructions