How to use the expand-brackets.compilers function in expand-brackets

To help you get started, we’ve selected a few expand-brackets examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github micromatch / extglob / lib / compilers.js View on Github external
module.exports = function(extglob) {
  var star = extglob.options.star || '.*?';

  /**
   * Use `expand-brackets` compilers
   */

  extglob.use(brackets.compilers);
  extglob.compiler

    /**
     * Escaped: "\\*"
     */

    .set('escape', function(node) {
      return this.emit(node.val, node);
    })

    /**
     * Dot: "."
     */

    .set('dot', function(node) {
      return this.emit('\\' + node.val, node);

expand-brackets

Expand POSIX bracket expressions (character classes) in glob patterns.

MIT
Latest version published 7 years ago

Package Health Score

71 / 100
Full package analysis

Popular expand-brackets functions