{"_id":"globalyzer","_rev":"96665","name":"globalyzer","description":"Detect and extract the static part of a glob string","dist-tags":{"latest":"0.1.4"},"maintainers":[{"name":"terkelg","email":""}],"time":{"modified":"2023-03-27T07:52:50.000Z","created":"2018-04-15T06:42:05.827Z","0.1.4":"2019-02-08T18:54:06.631Z","0.1.0":"2018-04-15T06:42:05.827Z"},"users":{},"author":{"name":"Terkel Gjervig"},"repository":{"type":"git","url":"git+https://github.com/terkelg/globalyzer.git"},"versions":{"0.1.4":{"name":"globalyzer","version":"0.1.4","description":"Detect and extract the static part of a glob string","main":"src/index.js","repository":{"type":"git","url":"git+https://github.com/terkelg/globalyzer.git"},"keywords":["glob","analyzer","base","detect"],"scripts":{"test":"tape test/*.js | tap-spec"},"author":{"name":"Terkel Gjervig"},"license":"MIT","devDependencies":{"tap-spec":"^4.1.2","tape":"^4.9.2"},"gitHead":"091af68b6432171e3946c34167a07617a3f776e6","bugs":{"url":"https://github.com/terkelg/globalyzer/issues"},"homepage":"https://github.com/terkelg/globalyzer#readme","_id":"globalyzer@0.1.4","_nodeVersion":"11.5.0","_npmVersion":"6.7.0","dist":{"shasum":"bc8e273afe1ac7c24eea8def5b802340c5cc534f","size":2939,"noattachment":false,"key":"/globalyzer/-/globalyzer-0.1.4.tgz","tarball":"http://name.csiicloud.com:7001/globalyzer/download/globalyzer-0.1.4.tgz"},"maintainers":[{"name":"terkelg","email":""}],"_npmUser":{"name":"terkelg","email":"terkel@terkel.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/globalyzer_0.1.4_1549652046487_0.8832280659726877"},"_hasShrinkwrap":false,"publish_time":1549652046631,"_cnpm_publish_time":1549652046631},"0.1.0":{"name":"globalyzer","version":"0.1.0","description":"Detects and extract the glob part of a string","main":"src/index.js","repository":{"type":"git","url":"git+https://github.com/terkelg/globalyzer.git"},"files":["src"],"keywords":["glob","analyzer","base","detect"],"scripts":{"test":"tape test/*.js | tap-spec"},"author":{"name":"Terkel Gjervig"},"license":"MIT","devDependencies":{"tap-spec":"^4.1.1","tape":"^4.9.0"},"gitHead":"5b627ba0a1fc4a3c6ce3584ab7a74ef44494d1b6","bugs":{"url":"https://github.com/terkelg/globalyzer/issues"},"homepage":"https://github.com/terkelg/globalyzer#readme","_id":"globalyzer@0.1.0","_npmVersion":"5.8.0","_nodeVersion":"9.7.1","_npmUser":{"name":"terkelg","email":"terkel@terkel.com"},"dist":{"shasum":"cb76da79555669a1519d5a8edf093afaa0bf1465","size":2895,"noattachment":false,"key":"/globalyzer/-/globalyzer-0.1.0.tgz","tarball":"http://name.csiicloud.com:7001/globalyzer/download/globalyzer-0.1.0.tgz"},"maintainers":[{"name":"terkelg","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/globalyzer_0.1.0_1523774525696_0.6083594797975567"},"_hasShrinkwrap":false,"publish_time":1523774525827,"_cnpm_publish_time":1523774525827}},"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>  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// => { base: 'foo/bar/.git/', glob: '', isGlob: false }\n\nglobalyzer('foo/bar/**/baz');\n// => { base: 'foo/bar', glob: '**/baz', isGlob: true }\n```\n\n\n## API\n\n### globalyzer(glob, options)\n\nType: `function`<br>\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`<br>\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","_attachments":{},"homepage":"https://github.com/terkelg/globalyzer#readme","bugs":{"url":"https://github.com/terkelg/globalyzer/issues"},"license":"MIT"}