has-named-captures
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i has-named-captures

Weekly Downloads

87

Version

1.0.0

License

MIT

Unpacked Size

11.7 kB

Total Files

11

Last publish

Collaborators

  • ljharb