Gathering detailed insights and metrics for adb-commander
Gathering detailed insights and metrics for adb-commander
npm install adb-commander
Typescript
Module System
Node Version
NPM Version
69.8
Supply Chain
97.1
Quality
78.1
Maintenance
25
Vulnerability
100
License
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
494,698
Last Day
221
Last Week
745
Last Month
3,741
Last Year
72,984
Minified
Minified + Gzipped
Latest Version
0.1.9
Package Id
adb-commander@0.1.9
Size
3.38 kB
NPM Version
6.4.1
Node Version
10.15.1
Publised On
27 May 2020
Cumulative downloads
Total Downloads
Last day
1,478.6%
221
Compared to previous day
Last week
149.2%
745
Compared to previous week
Last month
-19.7%
3,741
Compared to previous month
Last year
-33.1%
72,984
Compared to previous year
1
8
provide adb(Android Debug Bridge) command functions
1const adbCommander = require('adb-commander') 2 3adbCommander.deviceList().then((deviceList, err) => { 4 if (err) { 5 console.error('fail to execute adb devices') 6 return 7 } 8 if (deviceList.length > 0) { 9 console.info(`devices is ${deviceList.join(',')}`) 10 } 11})
1 2const adbCommander = require('adb-commander') 3 4adbCommander.install(apkPath) 5 .then(({ result, err }) => { 6 if (err) { 7 console.error('install failed') 8 } 9 adbCommander.isInstalled(deviceSn, 'org.hapjs.debugger').then(({isInstalled, err }) => { 10 if(isInstalled === true){ 11 console.log('org.hapjs.debugger is installed') 12 } 13 }) 14 15 }) 16) 17
1 2const adbCommander = require('adb-commander') 3 4adbCommander.uninstall( deviceSn, 'org.hapjs.debugger') 5 .then(({ result, err }) => { 6 if (err) { 7 console.error('uninstall failed') 8 } 9 adbCommander.isInstalled(deviceSn, 'org.hapjs.debugger').then(({isInstalled, err }) => { 10 if(isInstalled === false){ 11 console.log('org.hapjs.debugger is uninstalled') 12 } 13 }) 14 }) 15) 16
string
string
optionalstring
optional[{key: string, type: string, value: <any>}, ...]
optional1const adbCommander = require('adb-commander') 2 3adbCommander 4 .startActivity(deviceSn, action, component, extra) 5 .then(({ result, err }) => { 6 if (err) { 7 console.error('startActivity failed') 8 return 9 } 10 console.log('start activity result', { result, err }) 11 })
1const adbCommander = require('adb-commander') 2 3adbCommander.exeCommand('adb devices').then(({ result, err }) => { 4 if (err) { 5 console.error("exeCommand 'adb devices' failed") 6 return 7 } 8 console.log('adb devices result', { result, err }) 9})
No vulnerabilities found.
No security vulnerabilities found.