has-named-captures
v1.0.0
Published
Does the JS environment support named capture groups in regexes?
Downloads
1,008
Maintainers
Readme
has-named-captures
Does the JS environment support named capture groups in regexes?
Returns true
in node 10+, and equivalent engines.
Example
var hasNamedCaptures = require('has-named-captures');
var assert = require('assert');
assert.equal(typeof hasNamedCaptures(), 'boolean', 'returns true or false');
Tests
Simply clone the repo, npm install
, and run npm test