Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inDemoInstall

is-regexp

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Issues
File Explorer

Advanced tools

is-regexp

Check if a value is a regular expression

    3.1.0latest
    Github

Version published
Maintainers
1
Weekly downloads
10,149,811
increased by8.13%

Weekly downloads

Readme

Source

is-regexp

Check if a value is a regular expression

Install

$ npm install is-regexp

Usage

import isRegexp from 'is-regexp'; isRegexp('unicorn'); //=> false isRegexp(/unicorn/); //=> true isRegexp(new RegExp('unicorn')); //=> true

FAQ

Why not just use instanceof instead of this package?
  • is - Type check values

Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.

Keywords

FAQs

What is is-regexp?

Check if a value is a regular expression

Is is-regexp popular?

The npm package is-regexp receives a total of 9,743,009 weekly downloads. As such, is-regexp popularity was classified as popular.

Is is-regexp well maintained?

We found that is-regexp 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.

Last updated on 31 Oct 2021

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket[email protected]

Product

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc