re-flags Get the flags from a RegExp Install $ npm install [--save] re-flags Usage const reFlags = require('re-flags') const re = /^foo$/gi console.log(reFlags(re)) // => 'gi' Test $ npm test Author Evan Lucas License MIT (See LICENSE for more info)