replace-in-file icon indicating copy to clipboard operation
replace-in-file copied to clipboard

.doc file support

Open waltergpc opened this issue 1 year ago • 0 comments

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
  }
]

waltergpc avatar Dec 04 '23 04:12 waltergpc