Sophie

Sophie

distrib > Fedora > 20 > x86_64 > by-pkgid > 877742f24d2bbd2209cdd24b0dcbb8f1 > files > 29

nodejs-proxyquire-0.5.2-1.fc20.noarch.rpm

var fs = require('fs')
  , path = require('path');

module.exports.filesAllCaps = function (dir, cb) { 
  fs.readdir(dir, function (err, files) {
    if (err) cb(err);
    else cb (
        null
      , files.map(function (f) { return f.toUpperCase(); })
      );
  });
};

module.exports.extnameAllCaps = function (file) { 
  return path.extname(file).toUpperCase();
};