All Projects → gulpjs → Findup Sync

gulpjs / Findup Sync

Licence: mit
Find the first file matching a given pattern in the current directory or the nearest ancestor directory.

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Findup Sync

extglob
Extended globs. Add (almost) the expressive power of regular expressions to glob patterns.
Stars: ✭ 25 (-73.4%)
Mutual labels:  glob
Tiny Glob
Super tiny and ~350% faster alternative to node-glob
Stars: ✭ 710 (+655.32%)
Mutual labels:  glob
Fast Glob
🚀 It's a very fast and efficient glob library for Node.js
Stars: ✭ 1,150 (+1123.4%)
Mutual labels:  glob
Dotnet.glob
A fast globbing library for .NET / .NETStandard applications. Outperforms Regex.
Stars: ✭ 259 (+175.53%)
Mutual labels:  glob
Cpx
A cli tool to watch and copy file globs.
Stars: ✭ 394 (+319.15%)
Mutual labels:  glob
Is Extglob
Returns true if a string has an extglob
Stars: ✭ 19 (-79.79%)
Mutual labels:  glob
replace-in-files
Replace text in one or more files or globs.
Stars: ✭ 21 (-77.66%)
Mutual labels:  glob
Nanomatch
Fast, minimal glob matcher for node.js. Similar to micromatch, minimatch and multimatch, but without support for extended globs (extglobs), posix brackets or braces, and with complete Bash 4.3 wildcard support: ("*", "**", and "?").
Stars: ✭ 79 (-15.96%)
Mutual labels:  glob
Glob
Go glob
Stars: ✭ 670 (+612.77%)
Mutual labels:  glob
Is Glob
If you use globs, this will make your code faster. Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a better user experience. 55+ million downloads.
Stars: ✭ 63 (-32.98%)
Mutual labels:  glob
Anymatch
‼️ Matches strings against configurable strings, globs, regular expressions, and/or functions
Stars: ✭ 289 (+207.45%)
Mutual labels:  glob
Picomatch
Blazing fast and accurate glob matcher written JavaScript, with no dependencies and full support for standard and extended Bash glob features, including braces, extglobs, POSIX brackets, and regular expressions.
Stars: ✭ 393 (+318.09%)
Mutual labels:  glob
Load Templates
Load templates from file paths, globs or objects, and cache them as normalized objects.
Stars: ✭ 9 (-90.43%)
Mutual labels:  glob
witch
Dead simple watching
Stars: ✭ 15 (-84.04%)
Mutual labels:  glob
Less Plugin Glob
Globbing support for LESS
Stars: ✭ 70 (-25.53%)
Mutual labels:  glob
glob-tool
A tool to test globs against sets of test strings quickly and easily for the DigitalOcean Community.
Stars: ✭ 14 (-85.11%)
Mutual labels:  glob
Fdir
⚡ The fastest directory crawler & globbing library for NodeJS. Crawls 1m files in < 1s
Stars: ✭ 777 (+726.6%)
Mutual labels:  glob
Globbing
Introduction to "globbing" or glob matching, a programming concept that allows "filepath expansion" and matching using wildcards.
Stars: ✭ 86 (-8.51%)
Mutual labels:  glob
Glob
Glob for C++17
Stars: ✭ 74 (-21.28%)
Mutual labels:  glob
Run When
Run tasks based on "Git diff" changes 🏃 ➕ ➖
Stars: ✭ 63 (-32.98%)
Mutual labels:  glob

findup-sync

NPM version Downloads Azure Pipelines Build Status Travis Build Status AppVeyor Build Status Coveralls Status Gitter chat

Find the first file matching a given pattern in the current directory or the nearest ancestor directory.

Matching is done with micromatch, please report any matching related issues on that repository.

Usage

var findup = require('findup-sync');
findup(patternOrPatterns [, micromatchOptions]);

// Start looking in the CWD.
var filepath1 = findup('{a,b}*.txt');

// Start looking somewhere else, and ignore case (probably a good idea).
var filepath2 = findup('{a,b}*.txt', {cwd: '/some/path', nocase: true});

API

findup(patterns, [options])

  • patterns {String|Array}: Glob pattern(s) or file path(s) to match against.
  • options {Object}: Options to pass to micromatch. Note that if you want to start in a different directory than the current working directory, specify a cwd property here.
  • returns {String}: Returns the first matching file.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].