Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 15, 2024 via pnpm
Package summary
Share
0
issues
2
licenses
21
MIT
2
ISC
Package created
21 Jun 2014
Version published
5 Jul 2023
Maintainers
1
Total deps
23
Direct deps
5
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
21 Packages, Including:
@nodelib/fs.scandir@2.1.5
@nodelib/fs.stat@2.0.5
@nodelib/fs.walk@1.2.8
braces@3.0.2
dir-glob@3.0.1
fast-glob@3.3.2
fill-range@7.0.1
globby@13.2.2
ignore@5.3.1
is-extglob@2.1.1
is-glob@4.0.3
is-number@7.0.0
merge2@1.4.1
micromatch@4.0.5
path-type@4.0.0
picomatch@2.3.1
queue-microtask@1.2.3
reusify@1.0.4
run-parallel@1.2.0
slash@4.0.0
to-regex-range@5.0.1

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
fastq@1.17.1
glob-parent@5.1.2
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

5
All Dependencies CSV
ⓘ This is a list of globby 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
dir-glob3.0.12.21 kBMIT
prod
fast-glob3.3.224.37 kBMIT
prod
ignore5.3.114.1 kBMIT
prod
merge21.4.13.33 kBMIT
prod
slash4.0.01.96 kBMIT
prod

Visualizations

Frequently Asked Questions

What does globby do?

Globby is a user-friendly glob matching utility for JavaScript, built on top of the fast-glob library. It provides a more feature-rich interface for matching files and directories using globbing patterns. Its main features include a Promise-based API, support for multiple and negated patterns, the ability to expand directories in patterns, and the option to respect ignore patterns in .gitignore and similar files. Furthermore, it supports URL as cwd.

How do you use globby?

Globby can be installed using npm with the command $ npm install globby. Once installed, it can be imported and used in your JavaScript code. Here's how you can use Globby to match file paths:

import {globby} from 'globby';

// Find all files in the current directory, excluding 'cake'
const paths = await globby(['*', '!cake']);

console.log(paths);
//=> ['unicorn', 'rainbow']

In this example, the globby function is called with an array containing two patterns, '*' and '!cake'. The asterisk (*) matches any file or directory, while prefixing a pattern with an exclamation mark (!) negates it, excluding any matches from the results.

It's important to note that glob patterns should only contain forward-slashes, not backward-slashes. If you need to construct a glob pattern from path components, use path.posix.join() instead of path.join().

Where are the globby docs?

Documentation for Globby can be found directly in the readme file located in the repository on GitHub. This file provides a comprehensive guide to the utility’s API and usage, including details of the function signatures, available options, return types, as well as a number of usage examples. Additionally, there are links to supporting libraries used by Globby, such as fast-glob and minimatch, where further details and context can be found.