Skip to content
JS
Package

replace-last

JavaScript replaceLast function - Replaces last match for pattern in string with replacement

v1.2.6, 31 Mar 2018ISCCommonJSTypes: NoneUtility libraries
$ npm install replace-last

Key numbers

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

Downloads

Last week 2026-09-15 to 2026-09-21
050k100k150kSept 2025Mar 2026Sept 2026High 101.4k (9 Jun 2026)Low 20.8k (1 Sept 2026)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

47,792 downloads last week, 245,275 in the last month. The 12-month change of +21% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
1.2.6, 31 Mar 20188 years ago
First published
-
Last push to GitHub
5 Jan 20192,819 days before the snapshot
Repository archived
No
Open issues
1
Open pull requests
0
Commits, last 52 weeks
0
Dependents on npm
4

Major versions

-

Recent releases

-

Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>= 4.0.0
Runtimes
-
Unpacked size (npm)
24 kB
Dependencies (0)
None
npm install replace-last
  • jsDelivrhttps://cdn.jsdelivr.net/npm/replace-last@1.2.6/
  • unpkghttps://unpkg.com/replace-last@1.2.6/
  • esm.shhttps://esm.sh/replace-last@1.2.6
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.