GitShow/sindresorhus/replace-string
sindresorhus

replace-string

Replace all substring matches in a string

by sindresorhus
Star on GitHubForknpm

JavaScript

90 stars11 forks6 contributorsQuiet · 4y agoSince 2017v4.0.0MIT

Meet the team

See all 6 on GitHub →
sindresorhus
sindresorhus14 contributions
daveseco7
daveseco71 contribution
BendingBender
BendingBender1 contribution
cluk3
cluk31 contribution
papb
papb1 contribution
Richienb
Richienb1 contribution

Languages

View on GitHub →
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

Recent fixes

View closed PRs →
Richienb
Move to GitHub ActionsMergedPR
Richienb · 5y ago
simone-fracassetti
This is a base code, then you can edit it.MergedPR

Instead of code, you can use String.split(search).join(replace);

simone-fracassetti · 5y ago
papb
Add `caseInsensitive` optionMergedPR

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 (4y ago). Open PRs: 0, open issues: 0. Last activity: 4y ago. Community health: 71%. Top contributors: sindresorhus, daveseco7, BendingBender, cluk3, papb, Richienb.

·@ofershap

Replace github.com with gitshow.dev