How to use the fis3.get function in fis3

To help you get started, we’ve selected a few fis3 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 fex-team / fis3-hook-commonjs / test / index.js View on Github external
function hookSelf(opts) {
  var key = 'modules.hook';
  var origin = fis.get(key);

  if (origin) {
    origin = typeof origin === 'string' ? origin.split(/\s*,\s*/) : (Array.isArray(origin) ? origin : [origin]);
  } else {
    origin = [];
  }

  origin.push(function(fis) {
    var options = {};
    _.assign(options, _self.defaultOptions);
    _.assign(options, opts);
    return _self.call(this, fis, options);
  });

  fis.set(key, origin);
}

fis3

fis 3.0

BSD-2-Clause
Latest version published 1 year ago

Package Health Score

52 / 100
Full package analysis