Changeset e29cc2e for trip-planner-front/node_modules/glob-parent/README.md
- Timestamp:
- 11/25/21 22:08:24 (3 years ago)
- Branches:
- master
- Children:
- 8d391a1
- Parents:
- 59329aa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner-front/node_modules/glob-parent/README.md
r59329aa re29cc2e 7 7 # glob-parent 8 8 9 [![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]9 [![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coveralls Status][coveralls-image]][coveralls-url] 10 10 11 11 Extract the non-magic parent path from a glob string. … … 46 46 { 47 47 // Disables the automatic conversion of slashes for Windows 48 flipBackslashes: true 48 flipBackslashes: true; 49 49 } 50 50 ``` … … 67 67 68 68 ```js 69 globParent('foo/[bar]/') // 'foo'70 globParent('foo/\\[bar]/') // 'foo/[bar]'69 globParent('foo/[bar]/'); // 'foo' 70 globParent('foo/\\[bar]/'); // 'foo/[bar]' 71 71 ``` 72 72 … … 74 74 75 75 ### Braces & Brackets 76 76 77 This library attempts a quick and imperfect method of determining which path 77 78 parts have glob magic without fully parsing/lexing the pattern. There are some … … 83 84 84 85 ### Windows 86 85 87 Backslashes are not valid path separators for globs. If a path with backslashes 86 88 is provided anyway, for simple cases, glob-parent will replace the path … … 92 94 ```js 93 95 // BAD 94 globParent('C:\\Program Files \\(x86\\)\\*.ext') // 'C:/Program Files /(x86/)'96 globParent('C:\\Program Files \\(x86\\)\\*.ext'); // 'C:/Program Files /(x86/)' 95 97 96 98 // GOOD 97 globParent('C:/Program Files\\(x86\\)/*.ext') // 'C:/Program Files (x86)'99 globParent('C:/Program Files\\(x86\\)/*.ext'); // 'C:/Program Files (x86)' 98 100 ``` 99 101 … … 103 105 ```js 104 106 // BAD 105 globParent('foo \\[bar]') // 'foo '106 globParent('foo \\[bar]*') // 'foo '107 globParent('foo \\[bar]'); // 'foo ' 108 globParent('foo \\[bar]*'); // 'foo ' 107 109 108 110 // GOOD 109 globParent('./foo \\[bar]') // 'foo [bar]'110 globParent('./foo \\[bar]*') // '.'111 globParent('./foo \\[bar]'); // 'foo [bar]' 112 globParent('./foo \\[bar]*'); // '.' 111 113 ``` 112 114 … … 115 117 ISC 116 118 119 <!-- prettier-ignore-start --> 120 [downloads-image]: https://img.shields.io/npm/dm/glob-parent.svg?style=flat-square 121 [npm-url]: https://www.npmjs.com/package/glob-parent 122 [npm-image]: https://img.shields.io/npm/v/glob-parent.svg?style=flat-square 123 124 [ci-url]: https://github.com/gulpjs/glob-parent/actions?query=workflow:dev 125 [ci-image]: https://img.shields.io/github/workflow/status/gulpjs/glob-parent/dev?style=flat-square 126 127 [coveralls-url]: https://coveralls.io/r/gulpjs/glob-parent 128 [coveralls-image]: https://img.shields.io/coveralls/gulpjs/glob-parent/master.svg?style=flat-square 129 <!-- prettier-ignore-end --> 130 131 <!-- prettier-ignore-start --> 117 132 [expand-braces]: https://github.com/jonschlinkert/expand-braces 118 133 [expand-brackets]: https://github.com/jonschlinkert/expand-brackets 119 120 [downloads-image]: https://img.shields.io/npm/dm/glob-parent.svg 121 [npm-url]: https://www.npmjs.com/package/glob-parent 122 [npm-image]: https://img.shields.io/npm/v/glob-parent.svg 123 124 [azure-pipelines-url]: https://dev.azure.com/gulpjs/gulp/_build/latest?definitionId=2&branchName=master 125 [azure-pipelines-image]: https://dev.azure.com/gulpjs/gulp/_apis/build/status/glob-parent?branchName=master 126 127 [travis-url]: https://travis-ci.org/gulpjs/glob-parent 128 [travis-image]: https://img.shields.io/travis/gulpjs/glob-parent.svg?label=travis-ci 129 130 [appveyor-url]: https://ci.appveyor.com/project/gulpjs/glob-parent 131 [appveyor-image]: https://img.shields.io/appveyor/ci/gulpjs/glob-parent.svg?label=appveyor 132 133 [coveralls-url]: https://coveralls.io/r/gulpjs/glob-parent 134 [coveralls-image]: https://img.shields.io/coveralls/gulpjs/glob-parent/master.svg 135 136 [gitter-url]: https://gitter.im/gulpjs/gulp 137 [gitter-image]: https://badges.gitter.im/gulpjs/gulp.svg 134 <!-- prettier-ignore-end -->
Note:
See TracChangeset
for help on using the changeset viewer.