BLUE
PHP 7.4.33
Path:
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/jscodeshift/src
Run
Logout
Edit File
Size: 1.73 KB
Close
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/jscodeshift/src/ignoreFiles.js
Text
Base64
'use strict'; const fs = require('fs'); const mm = require('micromatch'); const matchers = []; /** * Add glob patterns to ignore matched files and folders. * Creates glob patterns to approximate gitignore patterns. * @param {String} val - the glob or gitignore-style pattern to ignore * @see {@linkplain https://git-scm.com/docs/gitignore#_pattern_format} */ function addIgnorePattern(val) { if (val && typeof val === 'string' && val[0] !== '#') { let pattern = val; if (pattern.indexOf('/') === -1) { matchers.push('**/' + pattern); } else if (pattern[pattern.length-1] === '/') { matchers.push('**/' + pattern + '**'); matchers.push(pattern + '**'); } matchers.push(pattern); } } /** * Adds ignore patterns directly from function input * @param {String|Array<String>} input - the ignore patterns */ function addIgnoreFromInput(input) { let patterns = []; if (input) { patterns = patterns.concat(input); } patterns.forEach(addIgnorePattern); } /** * Adds ignore patterns by reading files * @param {String|Array<String>} input - the paths to the ignore config files */ function addIgnoreFromFile(input) { let lines = []; let files = []; if (input) { files = files.concat(input); } files.forEach(function(config) { const stats = fs.statSync(config); if (stats.isFile()) { const content = fs.readFileSync(config, 'utf8'); lines = lines.concat(content.split(/\r?\n/)); } }); lines.forEach(addIgnorePattern); } function shouldIgnore(path) { const matched = matchers.length ? mm.isMatch(path, matchers, { dot:true }) : false; return matched; } exports.add = addIgnoreFromInput; exports.addFromFile = addIgnoreFromFile; exports.shouldIgnore = shouldIgnore;
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 3 × Files: 10
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
collections
DIR
-
drwxr-xr-x
2025-03-28 11:04:33
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
utils
DIR
-
drwxr-xr-x
2025-03-28 11:04:33
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
__testfixtures__
DIR
-
drwxr-xr-x
2025-03-28 11:04:33
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
argsParser.js
7.55 KB
lrw-r--r--
2025-03-28 11:04:33
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Collection.js
11.85 KB
lrw-r--r--
2025-03-28 11:04:33
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
core.js
4.37 KB
lrw-r--r--
2025-03-28 11:04:33
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
getParser.js
648 B
lrw-r--r--
2025-03-28 11:04:33
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ignoreFiles.js
1.73 KB
lrw-r--r--
2025-03-28 11:04:33
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
matchNode.js
971 B
lrw-r--r--
2025-03-28 11:04:33
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Runner.js
9.18 KB
lrw-r--r--
2025-03-28 11:04:33
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
template.js
4.79 KB
lrw-r--r--
2025-03-28 11:04:33
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
testUtils.js
5.87 KB
lrw-r--r--
2025-03-28 11:04:33
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Worker.js
5.48 KB
lrw-r--r--
2025-03-28 11:04:33
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).