Skip to content
JS
Package

document.contains

Polyfill/shim for `document.contains`

v1.0.2, 13 Jun 2020MITCommonJSTypes: NonePolyfills and shims
$ npm install document.contains

Key numbers

As of 25 Sept 2026
Weekly downloads
403.4k
+16% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
1
Direct, from package.json
Last release
6 years ago
v1.0.2
GitHub stars
3
1 forks
Open issues / PRs
1 / 0
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
0200k400k600k800kSept 2025Mar 2026Sept 2026High 720.9k (23 Jun 2026)Low 316.8k (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.

403,438 downloads last week, 2,233,635 in the last month. The 12-month change of +16% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
03 in total
Latest version
1.0.2, 13 Jun 20206 years ago
First published
10 Mar 2019
Last push to GitHub
26 Oct 20221,429 days before the snapshot
Repository archived
No
Open issues
1
Open pull requests
0
Commits, last 52 weeks
0
Dependents on npm
10

Major versions

  1. v1 first release 1.0.0, 10 Mar 2019

Recent releases

VersionPublished
1.0.213 Jun 2020
1.0.115 Mar 2019
1.0.010 Mar 2019
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
9.0 kB
Dependencies (1)
define-properties
npm install document.contains
  • jsDelivrhttps://cdn.jsdelivr.net/npm/document.contains@1.0.2/
  • unpkghttps://unpkg.com/document.contains@1.0.2/
  • esm.shhttps://esm.sh/document.contains@1.0.2
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.