svenschoenung/glob-escape


Escape glob patterns

License: MIT

Language: JavaScript


npm Version Build Status Coverage Status Dependency Status devDependency Status Code Climate Codacy Badge

glob-escape

Escapes glob patterns. Works for packages like minimatch, multimatch, glob, glob-stream, globby, vinyl-fs and gulp.

Installation

npm install glob-escape

Usage

var escapeGlob = require('glob-escape');
var glob = require('glob');

glob('algorithms/a*.txt', function(err, array) {
  // array might contain several files like:
  //   - algorithms/a*.txt
  //   - algorithms/alpha-beta_pruning.txt
  //   - algorithms/augmented_lagrangian_method.txt
});

glob(escapeGlob('algorithms/a*.txt'), function(err, array) {
  // array will only contain one file:
  //   - algorithms/a*.txt
});

API

escapeGlob(glob)

Escapes all glob patterns in the provided glob.

glob may be a string or an array of strings.

Returns the escaped glob.

License

MIT

Project Statistics

Sourcerank 5
Repository Size 8.79 KB
Stars 1
Forks 1
Watchers 1
Open issues 2
Dependencies 7
Contributors 1
Tags 2
Created
Last updated
Last pushed

Top Contributors See all

Sven Schoenung

Packages Referencing this Repo

glob-escape
Escape glob patterns
Latest release 0.0.2 - Updated - 1 stars

Recent Tags See all

v0.0.2 July 08, 2016
v0.0.1 May 02, 2016

Something wrong with this page? Make a suggestion

Last synced: 2016-07-09 07:41:33 UTC

Login to resync this repository