
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
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,216 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.