adamreisnz / replace-in-file

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

Escape js file as string #122

Closed cksachdev closed 4 years ago

cksachdev commented 4 years ago

I am trying to escape a js file and output it as a string. Something similar to functionality on https://www.freeformatter.com/javascript-escape.html

Could I run a custom function instead of from and to configuration options, which are regular expressions?

adamreisnz commented 4 years ago

https://github.com/adamreisnz/replace-in-file#using-callbacks-for-from