Closed thdoan closed 3 months ago
Hi @adamreisnz,
I have raised a PR #190 for this enhancement. Kindly review and please let me know for any improvements.
Thanks
Thanks @kabilansakthivelu @thdoan , I have updated the readme to clarify how you can do this in your scripts easily, without the need for this package to support this natively:
const replacements = [
{
files: 'path/to/file1',
from: /foo/g,
to: 'bar',
},
{
files: 'path/to/file2',
from: /bar/g,
to: 'foo',
}
]
await Promise.all(
replacements.map(options => replaceInFile(options))
)
It would be nice to be able to do this: