string-to-regexp (npm): A simple module that knows how to build a regexp with or without flags without using eval.
Keywords: regexp|nodejs