replace-in-files-cli
replace-in-files-cli copied to clipboard
Replace matching strings and regexes in files
Hi, I'm having big issue with using this cli in package.json script. I want to change the version in a JSON file. Can't escape the simple quote (**'**) Here is...
I guess my issue is related to double quote strings. **index.js** ``` "use strict"; // REST OF THE FILE ``` I need to add a `require()` after the `"use strict";`,...
If the dry run option is set, then no changes should happen, instead it should list all changes that would happen.
I'm using `replace-in-files-cli` (specifically, the programmatic API) to _prepend_ a banner to a bunch of files. There are myriad packages to do this sort of thing, but they either a)...