Static
debugStatic
delayStatic
parseParses an Android-formatted mincrypt public key (e.g. ~/.android/adbkey.pub
).
The key as a forge.pki public key. You may need node-forge for complicated operations.
The key String or [Buffer
][node-buffer] to parse. Not a filename.
Static
readTakes a [Stream
][node-stream] and reads everything it outputs until the stream ends. Then it resolves with the collected output. Convenient with client.shell()
.
All the output as a [Buffer
][node-buffer]. Use output.toString('utf-8')
to get a readable string from it.
The [Stream
][node-stream] to read.
Static
waitforPromise waiter for a Duplex to be readable
is the true is duplex is readable
Optional
duplex: Duplex | PromiseDuplex<Duplex>a vanilla Duplex of a PromiseDuplex
do not wait more than timeout
Static
waitforWait for a spesific text in the Duplex all text will be concatened in a single string to dean with segments.
matched text
regexp to match
Generated using TypeDoc
A delay promise
Returns
void