1.0.0 • Published 8 years ago
re-flags v1.0.0
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)
1.0.0
8 years ago