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

cordova-plugin-text-size

v1.0.1

Published

Cordova plugin (iOS only): reports the system text size (Dynamic Type) as a percentage, initially and on every change.

Readme

cordova-plugin-text-size

Cordova plugin: reports the system text size (Dynamic Type — Settings › Display & Brightness › Text Size) as a percentage of the default size, once and on every change. The app applies it to its WebView content itself.

Why

WKWebView only applies Dynamic Type to text declared with font: -apple-system-body (and the other -apple-system-* styles). Any page that sets its own font family or px sizes ignores the slider completely. The Android WebView, by contrast, follows the system font size by default (WebSettings.textZoom). This plugin closes that gap: it tells the page the same factor the OS uses, and the page scales its text with -webkit-text-size-adjust, the very mechanism WebKit uses for Dynamic Type (text scales, boxes don't).

Nothing is stored — the OS setting is the single source of truth, exactly like on Android.

iOS only for now. The Android WebView already follows the system font size on its own (WebSettings.textZoom is initialised from the font scale); it just needs an app restart to pick up a change. An Android side that applies the new scale live (onConfigurationChangedsetTextZoom) is a possible future addition — the plugin id is platform-neutral for that reason.

API

// once
cordova.plugins.textSize.getTextZoom(function (pct) { ... });

// initial value + every change (delivered when the app returns to the foreground after a Settings change)
cordova.plugins.textSize.watch(function (pct) {
	document.documentElement.style.webkitTextSizeAdjust = pct === 100 ? "" : pct + "%";
});

pct is an integer: UIFont.preferredFont(forTextStyle: .body).pointSize / 17 × 100, i.e. 100 at the default setting ("Large"). Values by category: xS 82, S 88, M 94, L 100, xL 112, xxL 124, xxxL 135, accessibility AX1 165, AX2 194, AX3 235, AX4 276, AX5 312. The per-app text size (Settings › Accessibility › Per-App Settings) is honoured. Clamp on the JS side if your layout can't take the accessibility sizes.

Only one watcher per page; watch replaces an earlier watcher, and a page reload resets it (onReset), so call watch again after deviceready on every page load.

Install

cordova plugin add cordova-plugin-text-size

or in config.xml:

<plugin name="cordova-plugin-text-size" spec="1.0.1" />

The plugin is also installable straight from GitHub (cordova plugin add https://github.com/LogicsSoftwareGmbH/cordova-plugin-text-size.git#1.0.1).

No permissions, no Info.plist entries, no window/scene access (safe with the UIScene lifecycle of cordova-ios 8).

License

MIT — see LICENSE. © 2026 Logics Software GmbH.