Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
adb-commander
Advanced tools
provide adb(Android Debug Bridge) command functions
const adbCommander = require('adb-commander')
adbCommander.deviceList().then((deviceList, err) => {
if (err) {
console.error('fail to execute adb devices')
return
}
if (deviceList.length > 0) {
console.info(`devices is ${deviceList.join(',')}`)
}
})
const adbCommander = require('adb-commander')
adbCommander.install(apkPath)
.then(({ result, err }) => {
if (err) {
console.error('install failed')
}
adbCommander.isInstalled(deviceSn, 'org.hapjs.debugger').then(({isInstalled, err }) => {
if(isInstalled === true){
console.log('org.hapjs.debugger is installed')
}
})
})
)
const adbCommander = require('adb-commander')
adbCommander.uninstall( deviceSn, 'org.hapjs.debugger')
.then(({ result, err }) => {
if (err) {
console.error('uninstall failed')
}
adbCommander.isInstalled(deviceSn, 'org.hapjs.debugger').then(({isInstalled, err }) => {
if(isInstalled === false){
console.log('org.hapjs.debugger is uninstalled')
}
})
})
)
string
string
optionalstring
optional[{key: string, type: string, value: <any>}, ...]
optionalconst adbCommander = require('adb-commander')
adbCommander
.startActivity(deviceSn, action, component, extra)
.then(({ result, err }) => {
if (err) {
console.error('startActivity failed')
return
}
console.log('start activity result', { result, err })
})
const adbCommander = require('adb-commander')
adbCommander.exeCommand('adb devices').then(({ result, err }) => {
if (err) {
console.error("exeCommand 'adb devices' failed")
return
}
console.log('adb devices result', { result, err })
})
FAQs
A typescript project
The npm package adb-commander receives a total of 1,047 weekly downloads. As such, adb-commander popularity was classified as popular.
We found that adb-commander demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.