sindresorhus

replace-string

Replace all substring matches in a string

by sindresorhus

JavaScript

JavaScript85.7%
TypeScript14.3%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
71
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template
papb

This PR adds a option, which defaults to and therefore is not a breaking change. Also, the function now receives the matched substring as a first parameter, instead of the needle, which is not a breaking change for anyone not using the option, and makes much more sense for anyone using .

papb · 6y ago
Structured data for AI agents

Repository: sindresorhus/replace-string. Description: Replace all substring matches in a string Stars: 90, Forks: 11. Primary language: JavaScript. Languages: JavaScript (85.7%), TypeScript (14.3%). License: MIT. Latest release: v4.0.0 (5y ago). Open PRs: 0, open issues: 0. Last activity: 5y ago. Community health: 71%. Top contributors: sindresorhus, daveseco7, BendingBender, cluk3, papb, Richienb.