How to use the glob.globAsync function in glob

To help you get started, we’ve selected a few glob 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 olistic / warriorjs / src / Game.js View on Github external
.then(() => {
        const profilePattern = path.join(Config.pathPrefix, 'warriorjs', '**', '.profile');
        return glob.globAsync(profilePattern);
      });
  }
github olistic / warriorjs / src / Game.js View on Github external
getTowerPaths() {
    const towerPattern = path.resolve(__dirname, '..', 'towers', '*');
    return glob.globAsync(towerPattern);
  }