{"id":18277626,"url":"https://github.com/inspect-js/is-regex","last_synced_at":"2025-05-16T11:05:51.272Z","repository":{"id":13245233,"uuid":"15930063","full_name":"inspect-js/is-regex","owner":"inspect-js","description":"Is this value a JS regex?","archived":false,"fork":false,"pushed_at":"2024-12-12T05:44:05.000Z","size":207,"stargazers_count":24,"open_issues_count":1,"forks_count":11,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-05-07T06:39:55.617Z","etag":null,"topics":["is","javascript","js-regex","regex","regexp"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/inspect-js.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["ljharb"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":"npm/deep-equal","community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2014-01-15T09:04:39.000Z","updated_at":"2024-12-12T05:44:09.000Z","dependencies_parsed_at":"2024-12-15T16:03:15.790Z","dependency_job_id":"8e82ab01-04a5-4c3d-b0b6-074b3356cd3c","html_url":"https://github.com/inspect-js/is-regex","commit_stats":{"total_commits":160,"total_committers":4,"mean_commits":40.0,"dds":"0.018750000000000044","last_synced_commit":"fbe9cc12f011f5550cb2057367166ae808ab020e"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fis-regex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fis-regex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fis-regex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fis-regex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inspect-js","download_url":"https://codeload.github.com/inspect-js/is-regex/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254518383,"owners_count":22084374,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["is","javascript","js-regex","regex","regexp"],"created_at":"2024-11-05T12:19:47.915Z","updated_at":"2025-05-16T11:05:46.263Z","avatar_url":"https://github.com/inspect-js.png","language":"JavaScript","funding_links":["https://github.com/sponsors/ljharb","https://tidelift.com/funding/github/npm/deep-equal"],"categories":[],"sub_categories":[],"readme":"# is-regex \u003csup\u003e[![Version Badge][2]][1]\u003c/sup\u003e\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-url]\n[![dependency status][5]][6]\n[![dev dependency status][7]][8]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][11]][1]\n\nIs this value a JS regex?\nThis module works cross-realm/iframe, and despite ES6 @@toStringTag.\n\n## Example\n\n```js\nvar isRegex = require('is-regex');\nvar assert = require('assert');\n\nassert.notOk(isRegex(undefined));\nassert.notOk(isRegex(null));\nassert.notOk(isRegex(false));\nassert.notOk(isRegex(true));\nassert.notOk(isRegex(42));\nassert.notOk(isRegex('foo'));\nassert.notOk(isRegex(function () {}));\nassert.notOk(isRegex([]));\nassert.notOk(isRegex({}));\n\nassert.ok(isRegex(/a/g));\nassert.ok(isRegex(new RegExp('a', 'g')));\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[1]: https://npmjs.org/package/is-regex\n[2]: https://versionbadg.es/inspect-js/is-regex.svg\n[5]: https://david-dm.org/inspect-js/is-regex.svg\n[6]: https://david-dm.org/inspect-js/is-regex\n[7]: https://david-dm.org/inspect-js/is-regex/dev-status.svg\n[8]: https://david-dm.org/inspect-js/is-regex#info=devDependencies\n[11]: https://nodei.co/npm/is-regex.png?downloads=true\u0026stars=true\n[license-image]: https://img.shields.io/npm/l/is-regex.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/is-regex.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=is-regex\n[codecov-image]: https://codecov.io/gh/inspect-js/is-regex/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/inspect-js/is-regex/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/is-regex\n[actions-url]: https://github.com/inspect-js/is-regex/actions\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finspect-js%2Fis-regex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finspect-js%2Fis-regex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finspect-js%2Fis-regex/lists"}