adamreisnz / replace-in-file

A simple utility to quickly replace contents in one or more files
580 stars 65 forks source link

feat: Add processor cb type with function overloads #191

Closed epicmet closed 4 months ago

epicmet commented 4 months ago

This pr would resolve #170

With these changes typescript intellisense would let user either pass the from and to options OR the processor callback (along side other options such as files or dry and etc.).

adamreisnz commented 4 months ago

Thank you, merged and release in 7.2.0