{"id":19774405,"url":"https://github.com/zbinlin/node-glob-to-regexp","last_synced_at":"2026-05-13T11:31:51.280Z","repository":{"id":57251408,"uuid":"61543236","full_name":"zbinlin/node-glob-to-regexp","owner":"zbinlin","description":null,"archived":false,"fork":false,"pushed_at":"2019-05-16T13:30:09.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-23T11:23:22.549Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zbinlin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-20T11:38:47.000Z","updated_at":"2021-04-08T16:28:22.000Z","dependencies_parsed_at":"2022-09-16T22:13:12.686Z","dependency_job_id":null,"html_url":"https://github.com/zbinlin/node-glob-to-regexp","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/zbinlin/node-glob-to-regexp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zbinlin%2Fnode-glob-to-regexp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zbinlin%2Fnode-glob-to-regexp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zbinlin%2Fnode-glob-to-regexp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zbinlin%2Fnode-glob-to-regexp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zbinlin","download_url":"https://codeload.github.com/zbinlin/node-glob-to-regexp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zbinlin%2Fnode-glob-to-regexp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32980652,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T06:31:55.726Z","status":"ssl_error","status_checked_at":"2026-05-13T06:31:51.336Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-12T05:12:51.626Z","updated_at":"2026-05-13T11:31:51.254Z","avatar_url":"https://github.com/zbinlin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# glob2regexp\n\n[![Build Status](https://img.shields.io/travis/zbinlin/node-glob-to-regexp/master.svg?style=flat-square)](https://travis-ci.org/zbinlin/node-glob-to-regexp)\n[![NPM version](https://img.shields.io/npm/v/glob2regexp.svg?style=flat-square)](https://www.npmjs.org/package/glob2regexp)\n\n\u003e Convert glob string to RegExp object\n\n\n## Usage\n\n```javascript\nvar globToRegExp = require(\"glob2regexp\");\nconsole.log(\n\tglobToRegExp(\"http?://www.example.org\").test(\"https://www.example.org\")\n); // true\nconsole.log(\n\tglobToRegExp(\"http{s,}://www.example.org\").test(\"http://www.example.org\")\n); // true\nconsole.log(\n\tglobToRegExp(\"http{s,}://www.example.org\").test(\"https://www.example.org\")\n); // true\n\n\n// match a signle character\nglobToRegExp(\"?\").test(\"a\"); // true\n\n// match any characters\nglobToRegExp(\"*\").test(\"\"); // true, match empty character\nglobToRegExp(\"*\").test(\"a\"); // true, match a signle character\nglobToRegExp(\"*\").test(\"aa\"); // true, match multiple characters\n\n\n// also supports range match\nglobToRegExp(\"[0-9]\").test(\"0\"); // true\nglobToRegExp(\"[a-z]\").test(\"z\"); // true\n\n\n// and supports brace-expansion\nglobToRegExp(\"{1,2}\").test(\"1\"); // true\nglobToRegExp(\"{1,2}\").test(\"2\"); // true\nglobToRegExp(\"{1,2}\").test(\"3\"); // false\nglobToRegExp(\"{,1}\").test(\"\"); // true\nglobToRegExp(\"{,1}\").test(\"1\"); // true\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzbinlin%2Fnode-glob-to-regexp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzbinlin%2Fnode-glob-to-regexp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzbinlin%2Fnode-glob-to-regexp/lists"}