Lines Matching refs:options
18 function checkFileInclusion(path, filename, options) { argument
21 (new RegExp('\\.(' + options.extensions.join('|') + ')$', 'i').test(filename)) &&
24 !(options.include && options.include instanceof RegExp && !options.include.test(path)) &&
27 … !(options.include && typeof options.include === 'function' && !options.include(path, filename)) &&
30 !(options.exclude && options.exclude instanceof RegExp && options.exclude.test(path)) &&
33 !(options.exclude && typeof options.exclude === 'function' && options.exclude(path, filename))
37 function requireDirectory(m, path, options) { argument
41 if (path && !options && typeof path !== 'string') {
42 options = path;
47 options = options || {};
49 if (typeof options[prop] === 'undefined') {
50 options[prop] = defaultOptions[prop];
65 if (fs.statSync(joined).isDirectory() && options.recurse) {
67 files = requireDirectory(m, joined, options);
70 retval[options.rename(filename, joined, filename)] = files;
73 if (joined !== m.filename && checkFileInclusion(joined, filename, options)) {
77 retval[options.rename(key, joined, filename)] = options.visit(obj, joined, filename) || obj;