{"_id":"@snyk/glob-parent","_rev":"6-b62fbeff0883d6031fd4e47ea53563f7","name":"@snyk/glob-parent","dist-tags":{"latest":"5.1.2-patch.1"},"versions":{"5.1.2-patch":{"name":"@snyk/glob-parent","version":"5.1.2-patch","keywords":["glob","parent","strip","path","dirname","directory","base","wildcard"],"author":{"url":"https://gulpjs.com/","name":"Gulp Team","email":"team@gulpjs.com"},"license":"ISC","_id":"@snyk/glob-parent@5.1.2-patch","maintainers":[{"name":"snyk-user","email":"npmjs+snyk-user@snyk.io"}],"contributors":[{"url":"https://github.com/es128","name":"Elan Shanker"},{"name":"Blaine Bublitz","email":"blaine.bublitz@gmail.com"}],"homepage":"https://github.com/gulpjs/glob-parent#readme","bugs":{"url":"https://github.com/gulpjs/glob-parent/issues"},"dist":{"shasum":"f7ff031ae0ee59834b9555278cadb12620f47c32","tarball":"https://registry.npmjs.org/@snyk/glob-parent/-/glob-parent-5.1.2-patch.tgz","fileCount":5,"integrity":"sha512-l+HXh/fTDOhz9VzOv5uZJPKzcxwWqDmy8p7lWHcV/xpejSuR52z7rin3clJ2DXxCGrpvzar6iCXZ+Qohn7j/nA==","signatures":[{"sig":"MEUCIAjz+htAPSpezdNocMXTL9B7qDI4JmDG5mXoa6MvZ6K4AiEA4W4OiACSfCrcya4thmNWWPEg8xQvhgR5+5roYfh6nBw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11870,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgN6KJCRA9TVsSAnZWagAARfEP/RbpPNBB8ZSIv5Dc+ImH\n/KK/9amD+1xBmQGR3ptjeuSLkEWYpu+Yi3EplCnW4Jpg1E47N0gWZZkoCFEd\nPSUCkM61kvSRHQRM6xyzuHXaBOPwygntUsqgyXk0FYfCqdNrDXT7KoZzP40L\nIMf6vHCLWvM7dFklHba25B2X5ijsQxOpxawWIVQ1EcPUMtuLvtvz+1m99Hgq\nCCL0ScDDro1fv+DsK4bVuoBBuBYQCixHJc8m/3Ky1zowTZzjYBsZ5G6Dq3p+\nIX4+h4w6fzw/DBLWUUoO4JR1xJtqByZmWSggAsVC/p519d7xQp256WgkpN/i\nWbZCFciyq8rjdzVb4AqUTnRwla560CqqCitwozOaUoajDTTOndJBy66kVCPB\nMEMRgMJYfvVxva+Y5zlW9mVGIc9OTLxl7klQR9AvGjqOw6AEgEdzqVZi/NGo\njA3csROPSdE3eijdNl6yigpA5SstesmWYNPCTb5T170R+0oEWFjDdTPFNvQj\n2hBC4GCXu/7ScrlxoSvKZr2ody/xBEOoJwHBg9APQX+9ScrXvZr8Cr8rv7yo\n7Z88U6Xo2+cD94YHz9IvtGidRS2U6RIMaN5UQ5aVQYCiUG81So4ny6otQ/Cc\n3PCkjWpZjm7Hs0a+Skzuyi1AeFGK4mv7TXVXk2Ps4DkFy2QoB8sAMjKVrYQZ\nLksE\r\n=IabY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","engines":{"node":">= 6"},"gitHead":"6dd4b27ac3a7c8643cdd59d936e04d9dd4241922","scripts":{"lint":"eslint .","test":"nyc mocha --async-only","pretest":"npm run lint","coveralls":"nyc report --reporter=text-lcov | coveralls","azure-pipelines":"nyc mocha --async-only --reporter xunit -O output=test.xunit"},"_npmUser":{"name":"snyk-user","email":"npmjs+snyk-user@snyk.io"},"repository":{"url":"git+https://github.com/gulpjs/glob-parent.git","type":"git"},"_npmVersion":"6.14.8","description":"Extract the non-magic parent path from a glob string.","directories":{},"_nodeVersion":"12.20.0","dependencies":{"is-glob":"^4.0.1"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^13.3.0","mocha":"^6.0.2","eslint":"^2.13.1","expect":"^1.20.2","coveralls":"^3.0.11","eslint-config-gulp":"^3.0.1"},"_npmOperationalInternal":{"tmp":"tmp/glob-parent_5.1.2-patch_1614258825084_0.08630120072115521","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"5.1.2-patch.1":{"name":"@snyk/glob-parent","version":"5.1.2-patch.1","keywords":["glob","parent","strip","path","dirname","directory","base","wildcard"],"author":{"url":"https://gulpjs.com/","name":"Gulp Team","email":"team@gulpjs.com"},"license":"ISC","_id":"@snyk/glob-parent@5.1.2-patch.1","maintainers":[{"name":"snyk-user","email":"npmjs+snyk-user@snyk.io"}],"contributors":[{"url":"https://github.com/es128","name":"Elan Shanker"},{"name":"Blaine Bublitz","email":"blaine.bublitz@gmail.com"}],"homepage":"https://github.com/gulpjs/glob-parent#readme","bugs":{"url":"https://github.com/gulpjs/glob-parent/issues"},"dist":{"shasum":"87733b4ab282043fa7915200bc94cb391df6d44f","tarball":"https://registry.npmjs.org/@snyk/glob-parent/-/glob-parent-5.1.2-patch.1.tgz","fileCount":5,"integrity":"sha512-OkUPdHgxIWKAAzceG1nraNA0kgI+eS0I9wph8tll9UL0slD2mIWSj4mAqroGovaEXm8nHedoUfuDRGEb6wnzCQ==","signatures":[{"sig":"MEUCIFomd/jTjFahDhxsYGUpFAb75kf0Qf7B2W/TdkuOgdIiAiEAo2EAu7fbsrt9V8Jq3FPjVF5vzymNGmQZt6Cvs723ny8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11872,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgN6QACRA9TVsSAnZWagAAjxIQAIQ4jfTcpV+f8mHvIQfx\ndxqBCbjpwUnBIGnZNuKCB/5S0h3jW8NJClNKXWsFlhnOukjhtIdwxSQFKdj0\nKxpUIEOQuQa2KAmenOof4p/UEnlictFFO4lur7RTcHWsNmZfq3ESa+tc828J\nkq/z/vbWhtWHPMr1CmhYgY4BFNeErboHBGQGUv5B5b3RItC9K+eDxeIuvqSs\nRjoW4tCJkcwuWigVfzVrxP4KopryJvm58xnDFwv0q2iJqx7DTWMW2ReCK2+t\nOlxyEhwOKLNzVptnYPperux3g3P1iHxhS9wxULLzN6zJF6r6iAP59awH4xe6\n79l6BKCdeNzWzrL1qL+2wH9JWTKUHu6YSDOAz2yO05QLZphzRVZyZD7lj36m\nIILRSAR49c5+4z5+FDq6dffJtlBfh4wKYBI1oCFnmXIet6qE4McCmw2zM0Ms\nw5OBDJj0hkorscG1jlWimrb4nW+8kK2z4O5Xcdz8G4Q6MiDG3OfAssih5cjh\nWBIZzLd88LoziwrssNTZbaFwkxtMI8ul7LFXrs9nwr8ohhU0o4/3OwkTrTfq\npjgEQOnAOp/m7ZOM0BmVMjHG8H/zBBTg+++/u5OFS073eqPH4ayG+VbvhBIh\nclWDmS6a49IJtYGQLUYHqJGOdtLqJn6WcTCk4/21JDcBj5PKeXg9pIeol/j3\nHAuB\r\n=W1Df\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","engines":{"node":">= 6"},"gitHead":"584a55e8e819ba2a7b6cde242f84c1a245544afa","scripts":{"lint":"eslint .","test":"nyc mocha --async-only","pretest":"npm run lint","coveralls":"nyc report --reporter=text-lcov | coveralls","azure-pipelines":"nyc mocha --async-only --reporter xunit -O output=test.xunit"},"_npmUser":{"name":"snyk-user","email":"npmjs+snyk-user@snyk.io"},"repository":{"url":"git+https://github.com/gulpjs/glob-parent.git","type":"git"},"_npmVersion":"6.14.8","description":"Extract the non-magic parent path from a glob string.","directories":{},"_nodeVersion":"12.20.0","dependencies":{"is-glob":"^4.0.1"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^13.3.0","mocha":"^6.0.2","eslint":"^2.13.1","expect":"^1.20.2","coveralls":"^3.0.11","eslint-config-gulp":"^3.0.1"},"_npmOperationalInternal":{"tmp":"tmp/glob-parent_5.1.2-patch.1_1614259200102_0.5031596631635669","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."}},"time":{"created":"2021-02-25T13:13:45.084Z","modified":"2026-05-14T10:33:29.006Z","5.1.2-patch":"2021-02-25T13:13:45.223Z","5.1.2-patch.1":"2021-02-25T13:20:00.220Z"},"bugs":{"url":"https://github.com/gulpjs/glob-parent/issues"},"author":{"url":"https://gulpjs.com/","name":"Gulp Team","email":"team@gulpjs.com"},"license":"ISC","homepage":"https://github.com/gulpjs/glob-parent#readme","keywords":["glob","parent","strip","path","dirname","directory","base","wildcard"],"repository":{"url":"git+https://github.com/gulpjs/glob-parent.git","type":"git"},"description":"Extract the non-magic parent path from a glob string.","contributors":[{"url":"https://github.com/es128","name":"Elan Shanker"},{"name":"Blaine Bublitz","email":"blaine.bublitz@gmail.com"}],"maintainers":[{"name":"snyk-admin","email":"npmjs+snyk-admin@snyk.io"}],"readme":"<p align=\"center\">\n  <a href=\"https://gulpjs.com\">\n    <img height=\"257\" width=\"114\" src=\"https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png\">\n  </a>\n</p>\n\n# glob-parent\n\n[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Azure Pipelines Build Status][azure-pipelines-image]][azure-pipelines-url] [![Travis Build Status][travis-image]][travis-url] [![AppVeyor Build Status][appveyor-image]][appveyor-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Gitter chat][gitter-image]][gitter-url]\n\nExtract the non-magic parent path from a glob string.\n\n## Usage\n\n```js\nvar globParent = require('glob-parent');\n\nglobParent('path/to/*.js'); // 'path/to'\nglobParent('/root/path/to/*.js'); // '/root/path/to'\nglobParent('/*.js'); // '/'\nglobParent('*.js'); // '.'\nglobParent('**/*.js'); // '.'\nglobParent('path/{to,from}'); // 'path'\nglobParent('path/!(to|from)'); // 'path'\nglobParent('path/?(to|from)'); // 'path'\nglobParent('path/+(to|from)'); // 'path'\nglobParent('path/*(to|from)'); // 'path'\nglobParent('path/@(to|from)'); // 'path'\nglobParent('path/**/*'); // 'path'\n\n// if provided a non-glob path, returns the nearest dir\nglobParent('path/foo/bar.js'); // 'path/foo'\nglobParent('path/foo/'); // 'path/foo'\nglobParent('path/foo'); // 'path' (see issue #3 for details)\n```\n\n## API\n\n### `globParent(maybeGlobString, [options])`\n\nTakes a string and returns the part of the path before the glob begins. Be aware of Escaping rules and Limitations below.\n\n#### options\n\n```js\n{\n  // Disables the automatic conversion of slashes for Windows\n  flipBackslashes: true\n}\n```\n\n## Escaping\n\nThe following characters have special significance in glob patterns and must be escaped if you want them to be treated as regular path characters:\n\n- `?` (question mark) unless used as a path segment alone\n- `*` (asterisk)\n- `|` (pipe)\n- `(` (opening parenthesis)\n- `)` (closing parenthesis)\n- `{` (opening curly brace)\n- `}` (closing curly brace)\n- `[` (opening bracket)\n- `]` (closing bracket)\n\n**Example**\n\n```js\nglobParent('foo/[bar]/') // 'foo'\nglobParent('foo/\\\\[bar]/') // 'foo/[bar]'\n```\n\n## Limitations\n\n### Braces & Brackets\nThis library attempts a quick and imperfect method of determining which path\nparts have glob magic without fully parsing/lexing the pattern. There are some\nadvanced use cases that can trip it up, such as nested braces where the outer\npair is escaped and the inner one contains a path separator. If you find\nyourself in the unlikely circumstance of being affected by this or need to\nensure higher-fidelity glob handling in your library, it is recommended that you\npre-process your input with [expand-braces] and/or [expand-brackets].\n\n### Windows\nBackslashes are not valid path separators for globs. If a path with backslashes\nis provided anyway, for simple cases, glob-parent will replace the path\nseparator for you and return the non-glob parent path (now with\nforward-slashes, which are still valid as Windows path separators).\n\nThis cannot be used in conjunction with escape characters.\n\n```js\n// BAD\nglobParent('C:\\\\Program Files \\\\(x86\\\\)\\\\*.ext') // 'C:/Program Files /(x86/)'\n\n// GOOD\nglobParent('C:/Program Files\\\\(x86\\\\)/*.ext') // 'C:/Program Files (x86)'\n```\n\nIf you are using escape characters for a pattern without path parts (i.e.\nrelative to `cwd`), prefix with `./` to avoid confusing glob-parent.\n\n```js\n// BAD\nglobParent('foo \\\\[bar]') // 'foo '\nglobParent('foo \\\\[bar]*') // 'foo '\n\n// GOOD\nglobParent('./foo \\\\[bar]') // 'foo [bar]'\nglobParent('./foo \\\\[bar]*') // '.'\n```\n\n## License\n\nISC\n\n[expand-braces]: https://github.com/jonschlinkert/expand-braces\n[expand-brackets]: https://github.com/jonschlinkert/expand-brackets\n\n[downloads-image]: https://img.shields.io/npm/dm/glob-parent.svg\n[npm-url]: https://www.npmjs.com/package/glob-parent\n[npm-image]: https://img.shields.io/npm/v/glob-parent.svg\n\n[azure-pipelines-url]: https://dev.azure.com/gulpjs/gulp/_build/latest?definitionId=2&branchName=master\n[azure-pipelines-image]: https://dev.azure.com/gulpjs/gulp/_apis/build/status/glob-parent?branchName=master\n\n[travis-url]: https://travis-ci.org/gulpjs/glob-parent\n[travis-image]: https://img.shields.io/travis/gulpjs/glob-parent.svg?label=travis-ci\n\n[appveyor-url]: https://ci.appveyor.com/project/gulpjs/glob-parent\n[appveyor-image]: https://img.shields.io/appveyor/ci/gulpjs/glob-parent.svg?label=appveyor\n\n[coveralls-url]: https://coveralls.io/r/gulpjs/glob-parent\n[coveralls-image]: https://img.shields.io/coveralls/gulpjs/glob-parent/master.svg\n\n[gitter-url]: https://gitter.im/gulpjs/gulp\n[gitter-image]: https://badges.gitter.im/gulpjs/gulp.svg\n","readmeFilename":"README.md"}