Skip to content
JS
Package

focus-within-polyfill

Small vanilla javascript that feature detect the :focus-within pseudo selector and polyfills it with a standard css class if necessary.

v5.2.1, 8 Apr 2021MITCommonJSTypes: NonePolyfills and shims
$ npm install focus-within-polyfill

Key numbers

As of 25 Sept 2026
Weekly downloads
7k
-43% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
5 years ago
v5.2.1
GitHub stars
38
5 forks
Open issues / PRs
1 / 11
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
010k20k30kSept 2025Mar 2026Sept 2026High 23.9k (7 Jul 2026)Low 5.5k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

7,047 downloads last week, 32,238 in the last month. The 12-month change of -43% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
5.2.1, 8 Apr 20215 years ago
First published
-
Last push to GitHub
3 Dec 20221,391 days before the snapshot
Repository archived
No
Open issues
1
Open pull requests
11
Commits, last 52 weeks
0
Dependents on npm
15

Major versions

-

Recent releases

-

Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>=8
Runtimes
-
Unpacked size (npm)
48 kB
Dependencies (0)
None
npm install focus-within-polyfill

CDN

jsDelivr: 67.2k requests in 30 days
  • jsDelivrhttps://cdn.jsdelivr.net/npm/focus-within-polyfill@5.2.1/
  • unpkghttps://unpkg.com/focus-within-polyfill@5.2.1/
  • esm.shhttps://esm.sh/focus-within-polyfill@5.2.1
Sources: npm registry, npm downloads API, GitHub API, jsDelivr. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): downloads_week 7047 < 10000.