{"id":14036530,"url":"https://github.com/Mottie/is-regexp-string","last_synced_at":"2025-07-27T03:32:14.158Z","repository":{"id":57277551,"uuid":"126703960","full_name":"Mottie/is-regexp-string","owner":"Mottie","description":"Check if a string is a regular expression","archived":false,"fork":false,"pushed_at":"2018-03-25T14:36:09.000Z","size":3,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-21T16:17:38.578Z","etag":null,"topics":["check","node","regexp","regular-expression","string"],"latest_commit_sha":null,"homepage":"https://npm.im/is-regexp-string","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/Mottie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-25T14:09:09.000Z","updated_at":"2019-06-13T04:50:14.000Z","dependencies_parsed_at":"2022-09-12T01:11:22.082Z","dependency_job_id":null,"html_url":"https://github.com/Mottie/is-regexp-string","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Mottie/is-regexp-string","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mottie%2Fis-regexp-string","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mottie%2Fis-regexp-string/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mottie%2Fis-regexp-string/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mottie%2Fis-regexp-string/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mottie","download_url":"https://codeload.github.com/Mottie/is-regexp-string/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mottie%2Fis-regexp-string/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267294180,"owners_count":24065343,"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","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["check","node","regexp","regular-expression","string"],"created_at":"2024-08-12T03:02:01.240Z","updated_at":"2025-07-27T03:32:13.909Z","avatar_url":"https://github.com/Mottie.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# is-regexp-string  [![Build Status](https://travis-ci.org/Mottie/is-regexp-string.svg?branch=master)](https://travis-ci.org/Mottie/is-regexp-string)\n\n\u003e Check if a string is a regular expression\n\n* The string *must* include the opening \u0026amp; closing forward slash (`/`).\n* Regular expression flags, e.g. `gim`, may be optionally included.\n\n## Install\n\n```\n$ npm install is-regexp-string\n```\n\n## Usage\n\n```js\nconst isRegexpString = require('is-regexp-string');\n\n// The forward slashes of the regular expression are *required*\nisRegexpString('/(foo|bar)/gi');\n//=\u003e true\n\nisRegexpString('foo|bar');\n//=\u003e false\n\n// Valid RegExp, but matches everything\nisRegexpString('/foo|/');\n//=\u003e true\n```\n\n## Related\n\n- [is-regexp](https://github.com/sindresorhus/is-regexp) - Check if a value is a regular expression\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMottie%2Fis-regexp-string","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMottie%2Fis-regexp-string","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMottie%2Fis-regexp-string/lists"}