{"id":19560635,"url":"https://github.com/zoubin/xglob","last_synced_at":"2026-06-13T12:01:51.048Z","repository":{"id":32681583,"uuid":"36270441","full_name":"zoubin/xglob","owner":"zoubin","description":"glob with mulptiple patterns.","archived":false,"fork":false,"pushed_at":"2015-09-15T12:03:49.000Z","size":156,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-08T23:35:11.704Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"EventStore/EventStore.JVM","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zoubin.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","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":"2015-05-26T03:49:42.000Z","updated_at":"2015-09-15T12:04:29.000Z","dependencies_parsed_at":"2022-09-12T19:52:01.765Z","dependency_job_id":null,"html_url":"https://github.com/zoubin/xglob","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/zoubin%2Fxglob","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoubin%2Fxglob/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoubin%2Fxglob/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoubin%2Fxglob/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zoubin","download_url":"https://codeload.github.com/zoubin/xglob/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240822615,"owners_count":19863302,"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":[],"created_at":"2024-11-11T05:08:21.133Z","updated_at":"2026-06-13T12:01:45.964Z","avatar_url":"https://github.com/zoubin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xglob\n[glob](https://www.npmjs.com/package/glob) with mulptiple patterns.\n\nAdditionally, negation pattern can be functions or regular expressions.\nIf truthy value returned, the negation pattern matches.\n\n## Example\n\n```\n⌘ tree fixtures/\nfixtures/\n├── a.css\n├── a.js\n├── d.js\n├── dir\n│   ├── b.css\n│   ├── b.js\n│   ├── c.js\n│   ├── e\n│   │   ├── e.css\n│   │   └── e.js\n│   └── f\n│       ├── f.css\n│       └── f.js\n└── empty\n```\n\n### glob(patterns, opts, cb)\n\n```javascript\nglob(['**/', '!*/'], { cwd: fixtures }, function (err, files) {\n  console.log(files.sort());\n  // [ 'dir/e/', 'dir/f/'  ]\n});\n```\n\n### files = glob.sync(patterns, opts)\n\n```javascript\nconsole.log(\n  glob.sync(['**/', '!*/'], { cwd: fixtures }).sort()\n);\n// [ 'dir/e/', 'dir/f/'  ]\n```\n\n### negation function\n\n```javascript\nvar path = require('util-path');\nconsole.log(\n  glob.sync(['**/*.js', '**/*.css', function (file) {\n    var basename = path.replaceExtname(path.basename(file));\n    var dir = path.basename(path.dirname(file));\n    return basename !== dir;\n  }], { cwd: fixtures }).sort()\n);\n// [ 'dir/e/e.css', 'dir/e/e.js', 'dir/f/f.css', 'dir/f/f.js'  ]\n```\n\n\n\n## Usage\n\n```javascript\nvar glob = require('xglob');\n```\n\n### glob(patterns, opts, cb)\n\n#### patterns\nType: `String`, `Array`\n\nPassed to glob for locating files.\n\n### files = glob.sync(patterns, opts)\n\n### glob.glob\n[glob](https://www.npmjs.com/package/glob)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoubin%2Fxglob","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzoubin%2Fxglob","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoubin%2Fxglob/lists"}