Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/boo1ean/nearest-file
Find nearest file in path
https://github.com/boo1ean/nearest-file
Last synced: 30 days ago
JSON representation
Find nearest file in path
- Host: GitHub
- URL: https://github.com/boo1ean/nearest-file
- Owner: boo1ean
- Created: 2014-02-25T20:19:47.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-09-22T20:10:46.000Z (about 9 years ago)
- Last Synced: 2024-08-10T21:15:45.091Z (3 months ago)
- Language: JavaScript
- Size: 112 KB
- Stars: 1
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Find nearest file in path
```javascript
var find = require('nearest-file');
// Get content of nearest .gitconfig in given path from end to root
var config = find(__dirname, '.gitconfig');
```