{"id":51166456,"url":"https://github.com/shahradelahi/ts-glob","last_synced_at":"2026-06-26T19:03:29.731Z","repository":{"id":367066605,"uuid":"1272268246","full_name":"shahradelahi/ts-glob","owner":"shahradelahi","description":"⚡ Blazing fast, compiler-grade glob matcher with strict syntax checking","archived":false,"fork":false,"pushed_at":"2026-06-24T11:56:39.000Z","size":71,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-06-24T13:08:41.584Z","etag":null,"topics":["ast-parser","glob","glob-compiler","glob-matcher","globstar","high-performance","pattern-matching","typescript"],"latest_commit_sha":null,"homepage":"https://npmjs.com/@se-oss/glob","language":"TypeScript","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/shahradelahi.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-17T12:55:03.000Z","updated_at":"2026-06-24T11:52:45.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/shahradelahi/ts-glob","commit_stats":null,"previous_names":["shahradelahi/ts-glob"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/shahradelahi/ts-glob","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shahradelahi%2Fts-glob","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shahradelahi%2Fts-glob/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shahradelahi%2Fts-glob/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shahradelahi%2Fts-glob/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shahradelahi","download_url":"https://codeload.github.com/shahradelahi/ts-glob/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shahradelahi%2Fts-glob/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34829439,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-26T02:00:06.560Z","response_time":106,"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":["ast-parser","glob","glob-compiler","glob-matcher","globstar","high-performance","pattern-matching","typescript"],"created_at":"2026-06-26T19:03:29.319Z","updated_at":"2026-06-26T19:03:29.725Z","avatar_url":"https://github.com/shahradelahi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  \u003csup\u003e@se-oss/glob\u003c/sup\u003e\n  \u003cbr\u003e\n  \u003ca href=\"https://github.com/shahradelahi/ts-glob/actions/workflows/ci.yml\"\u003e\u003cimg src=\"https://github.com/shahradelahi/ts-glob/actions/workflows/ci.yml/badge.svg?branch=main\u0026event=push\" alt=\"CI\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@se-oss/glob\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/@se-oss/glob.svg\" alt=\"NPM Version\"\u003e\u003c/a\u003e\n  \u003ca href=\"/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-MIT-blue.svg?style=flat\" alt=\"MIT License\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://bundlephobia.com/package/@se-oss/glob\"\u003e\u003cimg src=\"https://img.shields.io/bundlephobia/minzip/@se-oss/glob\" alt=\"npm bundle size\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://packagephobia.com/result?p=@se-oss/glob\"\u003e\u003cimg src=\"https://packagephobia.com/badge?p=@se-oss/glob\" alt=\"Install Size\"\u003e\u003c/a\u003e\n\u003c/h1\u003e\n\n_@se-oss/glob_ compiles glob patterns into highly optimized regular expressions to deliver a blazing fast, compiler-grade matching engine with strict syntax checking.\n\n---\n\n- [Installation](#-installation)\n- [Usage](#-usage)\n- [Documentation](#-documentation)\n- [Contributing](#-contributing)\n- [License](#license)\n\n## 📦 Installation\n\n```bash\nnpm install @se-oss/glob\n```\n\n\u003cdetails\u003e\n\u003csummary\u003eInstall using your favorite package manager\u003c/summary\u003e\n\n**pnpm**\n\n```bash\npnpm install @se-oss/glob\n```\n\n**yarn**\n\n```bash\nyarn add @se-oss/glob\n```\n\n\u003c/details\u003e\n\n## 📖 Usage\n\n### Basic Usage\n\nCheck if an input string matches a pattern or multiple patterns.\n\n```ts\nimport { isMatch } from '@se-oss/glob';\n\nisMatch('foo/bar.ts', 'foo/**/*.ts'); // true\nisMatch('foo/b.ts', ['foo/**/*.ts', '!foo/b.ts']); // false\n```\n\n### Compiler Matcher\n\nCompile a glob pattern once into a highly optimized matcher function for repeated matches.\n\n```ts\nimport { compile } from '@se-oss/glob';\n\nconst isTs = compile('foo/*.ts');\n\nisTs('foo/bar.ts'); // true\nisTs('foo/bar/baz.ts'); // false\n```\n\n### Regular Expression\n\nCompile a glob pattern directly into a JavaScript `RegExp` object.\n\n```ts\nimport { makeRe } from '@se-oss/glob';\n\nconst regex = makeRe('foo/*.ts');\n\nregex.test('foo/bar.ts'); // true\n```\n\n### Scanning\n\nExtract the leading static path (base) and determine if a pattern contains dynamic glob features.\n\n```ts\nimport { scan } from '@se-oss/glob';\n\nscan('foo/bar/*.js');\n// { base: 'foo/bar', isDynamic: true, pattern: 'foo/bar/*.js' }\n```\n\n### Partial Matching\n\nCheck if a path is a partial match for a glob pattern. Highly useful for file watchers and tree traversals to skip scanning directories early.\n\n```ts\nimport { isPartialMatch } from '@se-oss/glob';\n\nisPartialMatch('src/app', 'src/**/*.ts'); // true\nisPartialMatch('dist', 'src/**/*.ts'); // false\n```\n\n### AST Parsing\n\nParse a glob pattern safely to validate or inspect its Abstract Syntax Tree (AST).\n\n```ts\nimport { safeParse } from '@se-oss/glob';\n\nconst result = safeParse('src/**/*.ts');\nif (result.success) {\n  console.log(result.data); // AST Node\n}\n```\n\n## 📚 Documentation\n\nFor all configuration options, please see [the API docs](https://www.jsdocs.io/package/@se-oss/glob).\n\n## 🤝 Contributing\n\nWant to contribute? Awesome! To show your support is to star the project, or to raise issues on [GitHub](https://github.com/shahradelahi/ts-glob).\n\nThanks again for your support, it is much appreciated! 🙏\n\n## License\n\n[MIT](/LICENSE) © [Shahrad Elahi](https://github.com/shahradelahi) and [contributors](https://github.com/shahradelahi/ts-glob/graphs/contributors).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshahradelahi%2Fts-glob","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshahradelahi%2Fts-glob","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshahradelahi%2Fts-glob/lists"}