npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

adbkat

v1.0.1

Published

Encapsulates adbkit's client and device within a common structure.

Readme

adbkat

adbkat reduces the amount of code needed to use adbkit by exposing a Device object that interacts with a specific device over a specific client connection.

Dependencies

Installation

npm install adbkat

Code

  • Uses ESLint for quality and style
  • Uses Jasmine for unit testing
  • Uses JSDoc for documentation

Contributing

Before submitting a pull request, make sure that you...

  1. Write/edit documentation for all new/modified members that are exposed by a module.
  2. If any documentation was written/edited, run npm run jsdoc to update the documentation in this README.md.
  3. Write unit tests for all new sufficiently significant functions. If a function has a name or is exposed by a module, then it is significant enough that it should be tested.
  4. Run all unit tests with npm test and correct all failures.
  5. Run ESLint with npm run lint and correct all warnings and errors.

API

Modules

Classes

adbkat

Encapsulates adbkit's client and device within a common structure.

Author: RSG, Inc.

adbkat.getDevices() ⇒ Promise.<Array.<Device>>

Retrieves the Devices that represent the devices that are connected to the computer via ADB.

Kind: static method of adbkat
Returns: Promise.<Array.<Device>> - A promise that resolves with the devices that are connected to the computer via ADB.

Device

A device that can be communicated with via ADB.

Kind: global class

device.getPhoneNumber() ⇒ Promise.<String>

Retrieves the phone number of the device.

This function uses dumpstate, which may not be a reliable method of retrieving the phone number, depending on your device model. For that reason this function should be considered experimental, and should only be used if you know that dumpstate can be used to retrieve your device's phone number.

Note that the promise will take a few minutes to resolve, due to the size of dumpstate's output.

Kind: instance method of Device
Returns: Promise.<String> - A promise that resolves with the device's phone number.

device.install(apk) ⇒ Promise.<Boolean>

Installs the specified apk file onto the device.

Kind: instance method of Device
Returns: Promise.<Boolean> - A promise that resolves with true when the app is successfully installed.

| Param | Type | Description | | --- | --- | --- | | apk | String | Stream | The apk file to install. See adbkit.Client.install. |

device.shell(command) ⇒ Promise.<String>

Runs the specified shell command on the device. See the official ADB shell documentation for valid commands.

Kind: instance method of Device
Returns: Promise.<String> - A promise that resolves with the string output of the command when the command finishes.

| Param | Type | Description | | --- | --- | --- | | command | String | The command to run. |

device.uninstall(pkg) ⇒ Promise.<Boolean>

Uninstalls the specified package from the device.

Kind: instance method of Device
Returns: Promise.<Boolean> - A promise that resolves with true when the package is finished uninstalling.

| Param | Type | Description | | --- | --- | --- | | pkg | String | The name of the package to uninstall. |