How to use the micromatch.all function in micromatch

To help you get started, we’ve selected a few micromatch 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 juhamust / mozaik-ext-slack / src / client.js View on Github external
function matchChannel(channelName, filterString) {
  return mm.all(
    channelName.replace('#', ''),
    filterString.split(',').map(filter => filter.trim())
  );
}

micromatch

Glob matching for javascript/node.js. A replacement and faster alternative to minimatch and multimatch.

MIT
Latest version published 2 years ago

Package Health Score

87 / 100
Full package analysis