regexp-quote

RegExp.quote = require('regexp-quote')

npm install regexp-quote
304 downloads in the last day
1 136 downloads in the last week
5 827 downloads in the last month
npm loves you