Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/metaory/simple-find-file-recursively-up
returns the path at which a provided pattern exists, checking the current directory and any parent folders recursively up
https://github.com/metaory/simple-find-file-recursively-up
npm npm-package
Last synced: about 18 hours ago
JSON representation
returns the path at which a provided pattern exists, checking the current directory and any parent folders recursively up
- Host: GitHub
- URL: https://github.com/metaory/simple-find-file-recursively-up
- Owner: metaory
- License: mit
- Created: 2022-10-05T12:42:32.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-05-06T05:25:27.000Z (over 1 year ago)
- Last Synced: 2024-07-17T11:15:57.680Z (4 months ago)
- Topics: npm, npm-package
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/simple-find-file-recursively-up
- Size: 16.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
simple find file recursively up
===============================Installation
============
npm i simple-find-file-recursively-upUsage
=====```javascript
const findFileRecursivelyUp = require('simple-find-file-recursively-up')// Pass filename
const found = findFileRecursivelyUp('config.yml')
// /home/meta/dev/project-x/.circleci/config.yml// pass file path suffix
const found = findFileRecursivelyUp('.mxflow/config.yml')
// /home/meta/.mxflow/config.yml// pass non-existing path
const found = findFileRecursivelyUp('file-that-dont-exist.csv')
// null
```