Yes, it exists and is even richer in functionality https://github.com/QubitProducts/miniMerge .
Ii is also very fast and very small (a few kilobytes)! All you need is java.
I use it in my projects, this is not only for JS, I use it also with CSS and HTML.
The great thing is that you can specify a file or directory as input content and tag-based filtering!
source
share