Comment
Comment by CGamesPlay
I released something similar to this, jsgrep, but the query syntax is actual JS with special variables marking the placeholders. I think the patch syntax makes more intuitive sense in jsgrep; although it is more limited:
In jsgrep, the same substitution could be made by:
jsgrep: https://github.com/facebook/jsgrep