HEX
Server: Apache
System: Linux www 6.18.6-i1-amd #905 SMP Mon Jan 19 08:49:07 CET 2026 x86_64
User: sws1073755998 (1073755998)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/share/node_modules/dotignore/bin/ignored
#!/usr/bin/env node

'use strict';

var fs = require('fs');
var path = require('path');
var rules = String(fs.readFileSync(process.argv[2] || '.gitignore'));
var matcher = require('../').createMatcher(rules);

function checkDir(dir) {
  fs.readdirSync(dir).forEach(function (filename) {
    var resolved = path.join(dir, filename);
    if (matcher.shouldIgnore(resolved)) {
      console.log('- ' + resolved);
    } else if (fs.statSync(resolved).isDirectory()) {
      checkDir(resolved);
    } else {
      console.log('+ ' + resolved);
    }
  });
}
checkDir('.');