Back to Explore

sindresorhus/is-regexp

GitHub
1 watchersOpen source

Last release: 10/31/2021

A small JavaScript utility that checks whether a given value is a regular expression. Useful for input validation and type checks when you need to distinguish strings from RegExp instances.

Project status

  • The upstream repository appears to be no longer actively maintained, with the last recorded push on 2021-10-31 and the most recent published update (v3.1.0) also dated 2021-10-31.
  • The apparent update cadence is infrequent, with updates spanning roughly 2019 to 2021 (v2.1.0 in 2019, v3.0.0 in 2021, v3.1.0 later in 2021), suggesting a low-frequency maintenance pattern.

AI summary generated Today

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v3.1.0

    10/31/2021

    Release v3.1.0 is described as a tiny performance improvement. The code change primarily optimizes how the RegExp tag is checked, with no apparent API changes.

  • v3.0.0

    4/7/2021

    v3.0.0 raises the minimum supported Node.js version and converts the package to ESM-only. The runtime implementation is essentially the same logic, but module entry and TypeScript typings changed accordingly.

    Breaking
  • v2.1.0

    4/16/2019

    Release v2.1.0 adds TypeScript type definitions to the package. No other functionality changes or fixes are mentioned in the release notes.

    Features