afile

1.0.1 • Public • Published

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)

/afile/

    Package Sidebar

    Install

    npm i afile

    Weekly Downloads

    14

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • ragingwind