Skip to content
JS
Package

string.prototype.includes

A robust & optimized `String.prototype.includes` polyfill, based on the ECMAScript 6 specification.

v2.0.1, 15 Oct 2024MITCommonJSTypes: NonePolyfills and shims
$ npm install string.prototype.includes

Key numbers

As of 25 Sept 2026
Weekly downloads
31m
+143% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
3
Direct, from package.json
Last release
1 year ago
v2.0.1
GitHub stars
70
10 forks
Open issues / PRs
1 / 1
Contributors
4
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
020m40m60mSept 2025Mar 2026Sept 2026High 40.7m (18 Aug 2026)Low 8.9m (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.

30,968,464 downloads last week, 133,838,396 in the last month. The 12-month change of +143% 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
2.0.1, 15 Oct 20241 year ago
First published
20 Nov 2014
Last push to GitHub
15 Oct 2024709 days before the snapshot
Repository archived
No
Open issues
1
Open pull requests
1
Commits, last 52 weeks
0
Dependents on npm
36

Major versions

  1. v2 first release 2.0.0, 21 May 2020
  2. v1 first release 1.0.0, 20 Nov 2014

Recent releases

VersionPublished
2.0.115 Oct 2024
2.0.021 May 2020
1.0.020 Nov 2014
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>= 0.4
Runtimes
-
Unpacked size (npm)
16 kB
Dependencies (3)
call-bindes-abstractdefine-properties
npm install string.prototype.includes
  • jsDelivrhttps://cdn.jsdelivr.net/npm/string.prototype.includes@2.0.1/
  • unpkghttps://unpkg.com/string.prototype.includes@2.0.1/
  • esm.shhttps://esm.sh/string.prototype.includes@2.0.1
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.