{"id":20876734,"url":"https://github.com/terkelg/globalyzer","last_synced_at":"2025-05-12T15:32:30.699Z","repository":{"id":31867295,"uuid":"129584065","full_name":"terkelg/globalyzer","owner":"terkelg","description":"Detect and extract the static part of a glob string.","archived":false,"fork":false,"pushed_at":"2022-03-22T03:24:09.000Z","size":56,"stargazers_count":10,"open_issues_count":5,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-31T18:14:43.081Z","etag":null,"topics":["extract","glob","globbing","parser","strings"],"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/terkelg.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-04-15T06:39:40.000Z","updated_at":"2024-04-02T00:17:00.000Z","dependencies_parsed_at":"2022-08-07T17:00:20.612Z","dependency_job_id":null,"html_url":"https://github.com/terkelg/globalyzer","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terkelg%2Fglobalyzer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terkelg%2Fglobalyzer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terkelg%2Fglobalyzer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terkelg%2Fglobalyzer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/terkelg","download_url":"https://codeload.github.com/terkelg/globalyzer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225141715,"owners_count":17427358,"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":["extract","glob","globbing","parser","strings"],"created_at":"2024-11-18T06:54:39.682Z","updated_at":"2024-11-18T06:54:40.152Z","avatar_url":"https://github.com/terkelg.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# globalyzer [![Build Status](https://travis-ci.org/terkelg/globalyzer.svg?branch=master)](https://travis-ci.org/terkelg/globalyzer)[![Build status](https://ci.appveyor.com/api/projects/status/0xqnmxt99rsnnjqh?svg=true)](https://ci.appveyor.com/project/terkelg/globalyzer)\n\n\u003e  Detect and extract the static part of a glob string\n\nUtility to detect if a string contains a glob and then split it in a glob and none-glob part.\n\n## Install\n\n```\nnpm install globalyzer --save\n```\n\n## Usage\n\n```js\nconst globalyzer = require('globalyzer');\n\nglobalyzer('foo/bar/.git/');\n// =\u003e { base: 'foo/bar/.git/', glob: '', isGlob: false }\n\nglobalyzer('foo/bar/**/baz');\n// =\u003e { base: 'foo/bar', glob: '**/baz', isGlob: true }\n```\n\n\n## API\n\n### globalyzer(glob, options)\n\nType: `function`\u003cbr\u003e\nReturns: `{ base, glob, isGlob }`\n\nReturns an object with the (non-glob) base path and the actual pattern and a is-glob flag.\n\n#### options.strict\n\nType: `Boolean`\u003cbr\u003e\nDefault: `true`\n\nBe strict about what's a glob and what's not\n\n\n#### glob\n\nType: `String`\n\nGlob string to analyze.\n\n\n## Credit\n\nThis is a fork of [is-glob](https://github.com/micromatch/is-glob) and [glob-base](https://github.com/micromatch/glob-base)\n\n\n## License\n\nMIT © [Terkel Gjervig](https://terkel.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterkelg%2Fglobalyzer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fterkelg%2Fglobalyzer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterkelg%2Fglobalyzer/lists"}