Skip to content
JS
Package

string.prototype.repeat

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

v1.0.0, 21 May 2020MITCommonJSTypes: NonePolyfills and shims
$ npm install string.prototype.repeat

Key numbers

As of 25 Sept 2026
Weekly downloads
39.5m
+141% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
2
Direct, from package.json
Last release
6 years ago
v1.0.0
GitHub stars
28
8 forks
Open issues / PRs
2 / 1
Contributors
5
Commits, last 52 weeks
0

Downloads

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

39,487,881 downloads last week, 195,329,671 in the last month. The 12-month change of +141% 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.0, 21 May 20206 years ago
First published
20 Dec 2013
Last push to GitHub
16 Jan 20212,078 days before the snapshot
Repository archived
No
Open issues
2
Open pull requests
1
Commits, last 52 weeks
0
Dependents on npm
114

Major versions

  1. v1 first release 1.0.0, 21 May 2020
  2. v0 first release 0.1.0, 20 Dec 2013

Recent releases

VersionPublished
1.0.021 May 2020
0.2.010 Apr 2014
0.1.020 Dec 2013
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
8.4 kB
Dependencies (2)
es-abstractdefine-properties
npm install string.prototype.repeat
  • jsDelivrhttps://cdn.jsdelivr.net/npm/string.prototype.repeat@1.0.0/
  • unpkghttps://unpkg.com/string.prototype.repeat@1.0.0/
  • esm.shhttps://esm.sh/string.prototype.repeat@1.0.0
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.