regexp-flags-upfront (npm): Make regexps from a string that contains the flags as well as the pattern.
Keywords: flags|regexp