
Security News
CISA Kills Off RSS Feeds for KEVs and Cyber Alerts
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
is-supported-regexp-flag
Advanced tools
Check whether a RegExp flag is supported
$ npm install is-supported-regexp-flag
import isSupportedRegexpFlag from 'is-supported-regexp-flag';
isSupportedRegexpFlag('g'); // As in `/foo/g`
//=> true
isSupportedRegexpFlag('u');
//=> false
The RegExp
constructor throws if you're trying to use unsupported flags. This is a nicer way to check for support.
FAQs
Check whether a RegExp flag is supported
The npm package is-supported-regexp-flag receives a total of 373,764 weekly downloads. As such, is-supported-regexp-flag popularity was classified as popular.
We found that is-supported-regexp-flag demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.