# easy-adb

> easy to use adb to debug your android devices

Latest version **1.0.2** (published 2016-10-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install easy-adb
pnpm add easy-adb
yarn add easy-adb
bun add easy-adb
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2016-10-12 |
| First published | 2016-10-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | summer |
| Maintainers | summer2186 |

## Links

- npm: https://www.npmjs.com/package/easy-adb
- Repository: https://github.com/summer2186/easy-adb/
- npm.io page: https://npm.io/package/easy-adb

## Dependencies (1)

- [lodash](https://npm.io/package/lodash.md) ^4.16.4

## Recent versions

- 1.0.2 (latest) — 2016-10-12
- 1.0.1 (1.0.0) — 2016-10-08

## README

# easy-adb

一个简单的adb调用脚本，方便使用在自动化测试方面

##　使用

### 枚举设备

一般情况下，adb可以连接多个设备，使用： **devices** 方法可以枚举出已经连接的设备

```javascript
var Adb = require('easy-adb');

Adb.devices((err, devices) => {
  console.info(devices);
});
```

### 连接设备

使用 **connect** 可以连接目标设备

```javascript
var Adb = require('easy-adb');

Adb.connect(function(err, adb) {
  // 连接默认设备，如果存在多个设备，会报错
});

Adb.connect('20080411', function(err, adb) {
  // 连接设备ID为20080411的设备，如果存在多个同名设备，会报错
});

Adb.connect('192.168.1.10', '5555', function(err, adb) {
  // 连接网络上的设备，通过TCP/IP使用adb
  // 调用disconnect来断开连接
  adb.disconnect();
});
```

---
_Source: https://npm.io/package/easy-adb · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
