Skip to content
JS
Package

is-regex

Is this value a JS regex? Works cross-realm/iframe, and despite ES6 @@toStringTag

v1.2.1, 12 Dec 2024MITCommonJSTypes: Bundled
$ npm install is-regex

Key numbers

As of 25 Sept 2026
Weekly downloads
79.7m
+57% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
4
Direct, from package.json
Last release
1 year ago
v1.2.1
GitHub stars
24
10 forks
Open issues / PRs
1 / 0
Contributors
4
Commits, last 52 weeks
6

Downloads

Last week 2026-09-15 to 2026-09-21
050m100m150mSept 2025Mar 2026Sept 2026High 102.7m (18 Aug 2026)Low 32.2m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

79,710,573 downloads last week, 362,575,834 in the last month. The 12-month change of +57% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
014 in total
Latest version
1.2.1, 12 Dec 20241 year ago
First published
15 Jan 2014
Last push to GitHub
8 Apr 2026169 days before the snapshot
Repository archived
No
Open issues
1
Open pull requests
0
Commits, last 52 weeks
6
Dependents on npm
1,413

Major versions

  1. v1 first release 1.0.0, 19 May 2014
  2. v0 first release 0.0.0, 15 Jan 2014

Recent releases

VersionPublished
1.2.112 Dec 2024
1.2.030 Nov 2024
1.1.46 Aug 2021
1.1.38 May 2021
1.1.21 Feb 2021
1.1.14 Aug 2020
1.1.04 Jun 2020
1.0.515 Dec 2019
1.0.418 Feb 2017
1.0.330 Jan 2015
1.0.229 Jan 2015
1.0.128 Jan 2015
1.0.019 May 2014
0.0.015 Jan 2014
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>= 0.4
Runtimes
-
Unpacked size (npm)
35 kB
Dependencies (4)
gopdhasowncall-boundhas-tostringtag
npm install is-regex
  • jsDelivrhttps://cdn.jsdelivr.net/npm/is-regex@1.2.1/
  • unpkghttps://unpkg.com/is-regex@1.2.1/
  • esm.shhttps://esm.sh/is-regex@1.2.1
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): no category.