ffd

0.0.1 • Public • Published

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);
	}
})

Package Sidebar

Install

npm i ffd

Weekly Downloads

0

Version

0.0.1

License

Unlicense

Unpacked Size

2.5 kB

Total Files

4

Last publish

Collaborators

  • yetzt