Sha256: 65e7d6233482e0b80817963d25a2841e22845e09b7d8797010bef11250ee8216

Contents?: true

Size: 1.28 KB

Versions: 20

Compression:

Stored size: 1.28 KB

Contents

glob-parent [![Build Status](https://travis-ci.org/es128/glob-parent.svg)](https://travis-ci.org/es128/glob-parent) [![Coverage Status](https://img.shields.io/coveralls/es128/glob-parent.svg)](https://coveralls.io/r/es128/glob-parent?branch=master)
======
Javascript module to extract the non-magic parent path from a glob string.

[![NPM](https://nodei.co/npm/glob-parent.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/glob-parent/)
[![NPM](https://nodei.co/npm-dl/glob-parent.png?height=3&months=9)](https://nodei.co/npm-dl/glob-parent/)

Usage
-----
```sh
npm install glob-parent --save
```

```js
var globParent = require('glob-parent');

globParent('path/to/*.js'); // 'path/to'
globParent('/root/path/to/*.js'); // '/root/path/to'
globParent('/*.js'); // '/'
globParent('*.js'); // '.'
globParent('**/*.js'); // '.'
globParent('path/{to,from}'); // 'path'
globParent('path/!(to|from)'); // 'path'
globParent('path/?(to|from)'); // 'path'
globParent('path/+(to|from)'); // 'path'
globParent('path/*(to|from)'); // 'path'
globParent('path/@(to|from)'); // 'path'
globParent('path/**/*'); // 'path'
```

Change Log
----------
[See release notes page on GitHub](https://github.com/es128/glob-parent/releases)

License
-------
[ISC](https://raw.github.com/es128/glob-parent/master/LICENSE)

Version data entries

20 entries across 20 versions & 3 rubygems

Version Path
hooch-0.4.2 jasmine/node_modules/karma/node_modules/chokidar/node_modules/glob-parent/README.md
hooch-0.4.1 jasmine/node_modules/karma/node_modules/chokidar/node_modules/glob-parent/README.md
hooch-0.4.0 jasmine/node_modules/karma/node_modules/chokidar/node_modules/glob-parent/README.md
gulp_assets-1.0.0.pre.5 template/node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/glob-parent/README.md
gulp_assets-1.0.0.pre.4 template/node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/glob-parent/README.md
gulp_assets-1.0.0.pre.3 template/node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/glob-parent/README.md
hooch-0.3.0 jasmine/node_modules/karma/node_modules/chokidar/node_modules/glob-parent/README.md
hooch-0.2.1 jasmine/node_modules/karma/node_modules/chokidar/node_modules/glob-parent/README.md
hooch-0.2.0 jasmine/node_modules/karma/node_modules/chokidar/node_modules/glob-parent/README.md
hooch-0.1.0 jasmine/node_modules/karma/node_modules/chokidar/node_modules/glob-parent/README.md
hooch-0.0.8 jasmine/node_modules/karma/node_modules/chokidar/node_modules/glob-parent/README.md
hooch-0.0.7 jasmine/node_modules/karma/node_modules/chokidar/node_modules/glob-parent/README.md
hooch-0.0.6 jasmine/node_modules/karma/node_modules/chokidar/node_modules/glob-parent/README.md
entangled-0.0.16 spec/dummy/public/node_modules/karma/node_modules/chokidar/node_modules/glob-parent/README.md
entangled-0.0.15 spec/dummy/public/node_modules/karma/node_modules/chokidar/node_modules/glob-parent/README.md
entangled-0.0.14 spec/dummy/public/node_modules/karma/node_modules/chokidar/node_modules/glob-parent/README.md
entangled-0.0.13 spec/dummy/public/node_modules/karma/node_modules/chokidar/node_modules/glob-parent/README.md
entangled-0.0.12 spec/dummy/public/node_modules/karma/node_modules/chokidar/node_modules/glob-parent/README.md
entangled-0.0.11 spec/dummy/public/node_modules/karma/node_modules/chokidar/node_modules/glob-parent/README.md
entangled-0.0.10 spec/dummy/public/node_modules/karma/node_modules/chokidar/node_modules/glob-parent/README.md