How to use the nanomatch.compilers function in nanomatch

To help you get started, we’ve selected a few nanomatch 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 ifgyong / demo / React-native / Helloword / node_modules / metro-bundler / node_modules / sane / node_modules / micromatch / lib / compilers.js View on Github external
module.exports = function (snapdragon) {
    var compilers = snapdragon.compiler.compilers;
    var opts = snapdragon.options;

    // register nanomatch compilers
    snapdragon.use(nanomatch.compilers);

    // get references to some specific nanomatch compilers before they
    // are overridden by the extglob and/or custom compilers
    var escape = compilers.escape;
    var qmark = compilers.qmark;
    var slash = compilers.slash;
    var star = compilers.star;
    var text = compilers.text;
    var plus = compilers.plus;
    var dot = compilers.dot;

    // register extglob compilers or escape exglobs if disabled
    if (opts.extglob === false || opts.noext === true) {
        snapdragon.compiler.use(escapeExtglobs);
    } else {
        snapdragon.use(extglob.compilers);
github micromatch / micromatch / lib / compilers.js View on Github external
module.exports = function(snapdragon) {
  var compilers = snapdragon.compiler.compilers;
  var opts = snapdragon.options;

  // register nanomatch compilers
  snapdragon.use(nanomatch.compilers);

  // get references to some specific nanomatch compilers before they
  // are overridden by the extglob and/or custom compilers
  var escape = compilers.escape;
  var qmark = compilers.qmark;
  var slash = compilers.slash;
  var star = compilers.star;
  var text = compilers.text;
  var plus = compilers.plus;
  var dot = compilers.dot;

  // register extglob compilers or escape exglobs if disabled
  if (opts.extglob === false || opts.noext === true) {
    snapdragon.compiler.use(escapeExtglobs);
  } else {
    snapdragon.use(extglob.compilers);

nanomatch

Fast, minimal glob matcher for node.js. Similar to micromatch, minimatch and multimatch, but complete Bash 4.3 wildcard support only (no support for exglobs, posix brackets or braces)

MIT
Latest version published 6 years ago

Package Health Score

71 / 100
Full package analysis