Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 1.78 KB

README.md

File metadata and controls

40 lines (31 loc) · 1.78 KB

has-named-captures Version Badge

github actions coverage License Downloads

npm badge

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