PHP 8.2.30
Preview: index.js Size: 770 B
/home/byroehnu/easepay.easetack.com/node_modules/enabled/index.js

'use strict';

/**
 * Checks if a given namespace is allowed by the given variable.
 *
 * @param {String} name namespace that should be included.
 * @param {String} variable Value that needs to be tested.
 * @returns {Boolean} Indication if namespace is enabled.
 * @public
 */
module.exports = function enabled(name, variable) {
  if (!variable) return false;

  var variables = variable.split(/[\s,]+/)
    , i = 0;

  for (; i < variables.length; i++) {
    variable = variables[i].replace('*', '.*?');

    if ('-' === variable.charAt(0)) {
      if ((new RegExp('^'+ variable.substr(1) +'$')).test(name)) {
        return false;
      }

      continue;
    }

    if ((new RegExp('^'+ variable +'$')).test(name)) {
      return true;
    }
  }

  return false;
};

Directory Contents

Dirs: 0 × Files: 7

Name Size Perms Modified Actions
127 B lr--r--r-- 2026-03-14 01:49:21
Edit Download
167 B lrw-r--r-- 2026-02-21 00:53:22
Edit Download
770 B lrw-r--r-- 2026-02-21 00:53:22
Edit Download
1.09 KB lrw-r--r-- 2026-02-21 00:53:24
Edit Download
787 B lrw-r--r-- 2026-02-21 00:53:20
Edit Download
1.74 KB lrw-r--r-- 2026-02-21 00:53:26
Edit Download
1.24 KB lrw-r--r-- 2026-02-21 00:53:28
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).