JSPM

glob-escape

0.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 486474
  • Score
    100M100P100Q190351F
  • License MIT

Escape glob patterns

Package Exports

  • glob-escape

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (glob-escape) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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