0.0.1 • Published 3 years ago
ffd v0.0.1
ffd — find a file among directories
Usage
const ffd = require("ffd");
// filename, [ path, ... ], callback(file)
ffd("passwd", ["/usr/local","/etc","/tmp"], function(file){
if (file === null) {
console.error("This file does not exist in any of the paths");
} else {
console.log("The file was found in %s", file);
}
})
0.0.1
3 years ago