replace-in-file
replace-in-file copied to clipboard
.doc file support
I want to know if this library has functionality with .doc and .docx files. I am trying to do a basic example with the options given in the README, but the changed flag of the file is false at the end. the path to file will be just a placeholder to show as example how it is being used
pathName = 'path/to/file/file.docx'
const options = {
files: pathName,
from: /case/g,
to: 'testing'
}
Replacement results: [
{
file: 'path/to/file/file.docx',
hasChanged: false
}
]