re-flags

1.0.0 • Public • Published

re-flags

Build Status Coverage Status

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)

Readme

Keywords

none

Package Sidebar

Install

npm i re-flags

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • evanlucas