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 🙏

© 2026 – Pkg Stats / Ryan Hefner

str-settings

v2.0.0

Published

Allows for checking if certain settings are enabled as well as quick launching settings menus on android TV.

Readme

str-settings

Allows for checking if certain settings are enabled as well as quick launching settings menus on android TV.

Install

To use npm

npm install str-settings

To use yarn

yarn add str-settings

Sync native files

npx cap sync

API

echo(...)

echo(options: { value: string; }) => Promise<{ value: string; }>

| Param | Type | | ------------- | ------------------------------- | | options | { value: string; } |

Returns: Promise<{ value: string; }>


checkOverlayPermission()

checkOverlayPermission() => Promise<OverlayPermissionResult>

Returns the current overlay permission state without prompting the user.

Returns: Promise<OverlayPermissionResult>


requestOverlayPermission(...)

requestOverlayPermission(options?: RequestOverlayPermissionOptions | undefined) => Promise<OverlayPermissionResult>

Shows a native confirmation dialog, then opens the system overlay settings screen. Resolves once the user returns from that screen. No-ops (resolves immediately) when already granted or unsupported.

| Param | Type | | ------------- | ------------------------------------------------------------------------------------------- | | options | RequestOverlayPermissionOptions |

Returns: Promise<OverlayPermissionResult>


checkAccessibilityService(...)

checkAccessibilityService(options: CheckAccessibilityServiceOptions) => Promise<AccessibilityServiceResult>

Returns whether the given accessibility service is currently enabled.

| Param | Type | | ------------- | --------------------------------------------------------------------------------------------- | | options | CheckAccessibilityServiceOptions |

Returns: Promise<AccessibilityServiceResult>


requestAccessibilityService(...)

requestAccessibilityService(options: RequestAccessibilityServiceOptions) => Promise<AccessibilityServiceResult>

Shows a dialog explaining that the user needs to enable the accessibility service (with a cancel option), then opens Accessibility Settings. Resolves immediately if the service is already enabled, or if the user cancels.

| Param | Type | | ------------- | ------------------------------------------------------------------------------------------------- | | options | RequestAccessibilityServiceOptions |

Returns: Promise<AccessibilityServiceResult>


openWifiSettings()

openWifiSettings() => Promise<SettingsPageResult>

Opens the system Wi-Fi settings page. Resolves when the user presses back.

Returns: Promise<SettingsPageResult>


openRemotesSettings()

openRemotesSettings() => Promise<SettingsPageResult>

Opens the Remotes & Accessories (Bluetooth) settings page. Resolves when the user presses back.

Returns: Promise<SettingsPageResult>


openAllSettings()

openAllSettings() => Promise<SettingsPageResult>

Opens the top-level system Settings page. Resolves when the user presses back.

Returns: Promise<SettingsPageResult>


openHdmiCecSettings()

openHdmiCecSettings() => Promise<SettingsPageResult>

Opens HDMI-CEC settings. Falls back to Display Settings if no dedicated HDMI-CEC screen is found. Resolves when the user presses back.

Returns: Promise<SettingsPageResult>


openAppSettings(...)

openAppSettings(options?: OpenAppSettingsOptions | undefined) => Promise<SettingsPageResult>

Opens the system app details page for the given package (force-stop, clear cache, etc.). Defaults to the host app's own package when packageName is omitted. Resolves when the user presses back.

| Param | Type | | ------------- | ------------------------------------------------------------------------- | | options | OpenAppSettingsOptions |

Returns: Promise<SettingsPageResult>


Interfaces

OverlayPermissionResult

| Prop | Type | Description | | --------------- | -------------------- | ------------------------------------------------------------- | | supported | boolean | Whether the device/OS supports the overlay permission screen. | | granted | boolean | Whether the app currently has draw-over-apps permission. |

RequestOverlayPermissionOptions

| Prop | Type | Description | | -------------- | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | | isManual | boolean | Skip the confirmation dialog and navigate directly to system settings. Use this when the user is toggling the feature off from your own UI. |

AccessibilityServiceResult

| Prop | Type | Description | | ------------- | -------------------- | ----------------------------------------------------------------- | | enabled | boolean | Whether the specified accessibility service is currently enabled. |

CheckAccessibilityServiceOptions

| Prop | Type | Description | | ------------------ | ------------------- | ---------------------------------------------------------------------------------------------------- | | serviceClass | string | Fully-qualified class name of the accessibility service, e.g. "com.strtv.www.HomeInterceptorService" |

RequestAccessibilityServiceOptions

| Prop | Type | Description | | ------------------ | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | | serviceClass | string | Fully-qualified class name of the accessibility service, e.g. "com.strtv.app.HomeInterceptorService" | | isManual | boolean | Skip the confirmation dialog and navigate directly to system settings. Use this when the user is toggling the feature off from your own UI. |

SettingsPageResult

| Prop | Type | Description | | -------------- | -------------------- | ------------------------------------------------------------ | | returned | boolean | True once the user has pressed back and returned to the app. |

OpenAppSettingsOptions

| Prop | Type | Description | | ----------------- | ------------------- | ------------------------------------------------------------------------- | | packageName | string | Package name of the app to show. Defaults to the host app's package name. |