You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.
Are you using replace from the command line, or within another script?
If you're using it in a script, you can easily use a regex to perform a global replace.
varreplace=require("replace");replace({regex: /foo/g,// NOT "foo"replacement: "bar",paths: ['.'],recursive: true,silent: false,});
For the command line, I'm not sure 'cause I haven't used it 😬 Let me know if that helps!
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
How to replace all content of a file with same text ?
The text was updated successfully, but these errors were encountered: