0.0.1 • Published 6 years ago

walk-the-file v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

walk-the-file

Find first occurrence of a file in filedir.

Install

npm i --save walk-the-file

Usage

const findFile = require('walk-the-file');

// first occurence of index.html is in public

findFile('./', 'index.html');
//=> 'public/index.html'

## API

### findFile(dirString, fileName)

#### dirString

Type: `string`

#### fileName

Type: `string`

## License

MIT © [Tyler Boright](https://github.com/ru-lai)