1.0.1 • Published 8 years ago

afile v1.0.1

Weekly downloads
15
License
MIT
Repository
github
Last release
8 years ago

afile Build Status

Find a file in the list

Install

$ npm install --save afile

Usage

var afile = require('afile');
var targets = [
	process.cwd(),
	process.env[(process.platform == 'win32') ? 'USERPROFILE' : 'HOME'],
	'/'
].map(p => {
	return path.join(p, '.bowerrc');
});

afile(targets).then(function (f) {
	console.log(f);
	//=> /home/yours/.bowerrc
}, function () {
	// not in the list
});

## API

### afile(tagets)

return promise, it will resolve if target was founded.

## License

MIT © [Jimmy Moon](http://ragingwind.me)
1.0.1

8 years ago

1.0.0

8 years ago

0.3.2

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.0

8 years ago

0.1.1

8 years ago

0.1.0

9 years ago