Package
document.contains
Polyfill/shim for `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
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
- v1 first release 1.0.0, 10 Mar 2019
Recent releases
| Version | Published |
|---|---|
| 1.0.2 | 13 Jun 2020 |
| 1.0.1 | 15 Mar 2019 |
| 1.0.0 | 10 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- jsDelivr
https://cdn.jsdelivr.net/npm/document.contains@1.0.2/ - unpkg
https://unpkg.com/document.contains@1.0.2/ - esm.sh
https://esm.sh/document.contains@1.0.2
Indexability: Indexed.