Skip to content
JS
Package

repeat-string

Repeat the given string n times. Fastest implementation for repeating a string.

v1.6.1, 23 Oct 2016MITCommonJSTypes: NoneStrings and text
$ npm install repeat-string

Key numbers

As of 25 Sept 2026
Weekly downloads
18.2m
-1% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
9 years ago
v1.6.1
GitHub stars
50
17 forks
Open issues / PRs
1 / 3
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
010m20m30mSept 2025Mar 2026Sept 2026High 23m (25 Nov 2025)Low 9.4m (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.

18,245,223 downloads last week, 79,625,599 in the last month. The 12-month change of -1% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
017 in total
Latest version
1.6.1, 23 Oct 20169 years ago
First published
27 Mar 2014
Last push to GitHub
17 Jan 20221,712 days before the snapshot
Repository archived
No
Open issues
1
Open pull requests
3
Commits, last 52 weeks
0
Dependents on npm
928

Major versions

  1. v1 first release 1.0.0, 6 Dec 2014
  2. v0 first release 0.1.0, 27 Mar 2014

Recent releases

VersionPublished
1.6.123 Oct 2016
1.6.023 Oct 2016
1.5.429 Feb 2016
1.5.22 Apr 2015
1.5.11 Apr 2015
1.5.026 Jan 2015
1.4.024 Jan 2015
1.3.019 Jan 2015
1.2.023 Dec 2014
1.1.06 Dec 2014
1.0.06 Dec 2014
0.2.214 Oct 2014
0.2.11 Oct 2014
0.2.01 Oct 2014
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>=0.10
Runtimes
-
Unpacked size (npm)
-
Dependencies (0)
None
npm install repeat-string
  • jsDelivrhttps://cdn.jsdelivr.net/npm/repeat-string@1.6.1/
  • unpkghttps://unpkg.com/repeat-string@1.6.1/
  • esm.shhttps://esm.sh/repeat-string@1.6.1
PackageWeekly downloadsGzipLast releaseModuleComparison
@hexagon/base643.3m-1 year agoESM + CommonJS-
string-to-stream358.2k-7 years agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.