Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on Jun 15, 2024 via pnpm

glob 10.3.10

the most correct and second fastest glob implementation in JavaScript
Package summary
Share
4
issues
2
high severity
license
2
2
low severity
license
2
3
licenses
14
MIT
9
ISC
2
BlueOak-1.0.0
Package created
2 Jan 2011
Version published
27 Sep 2023
Maintainers
1
Total deps
25
Direct deps
5
License
ISC

Issues

4

2 high severity issues

high
Recommendation: Read and validate the license terms
via: jackspeak@2.3.6
Recommendation: Read and validate the license terms
via: path-scurry@1.11.1
Collapse
Expand

2 low severity issues

low
Recommendation: Read and validate the license terms
via: jackspeak@2.3.6
Recommendation: Read and validate the license terms
via: path-scurry@1.11.1
Collapse
Expand

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
14 Packages, Including:
@pkgjs/parseargs@0.11.0
ansi-regex@6.0.1
ansi-styles@6.2.1
balanced-match@1.0.2
brace-expansion@2.0.1
cross-spawn@7.0.3
eastasianwidth@0.2.0
emoji-regex@9.2.2
path-key@3.1.1
shebang-command@2.0.0
shebang-regex@3.0.0
string-width@5.1.2
strip-ansi@7.1.0
wrap-ansi@8.1.0

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
9 Packages, Including:
@isaacs/cliui@8.0.2
foreground-child@3.2.1
glob@10.3.10
isexe@2.0.0
lru-cache@10.2.2
minimatch@9.0.4
minipass@7.1.2
signal-exit@4.1.0
which@2.0.2

Blue Oak Model License 1.0.0

Uncategorized
Not OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
Cannot
Must
2 Packages, Including:
jackspeak@2.3.6
path-scurry@1.11.1
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 glob 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
foreground-child3.2.166.59 kBISC
prod
jackspeak2.3.646.98 kBBlueOak-1.0.0
prod
1
1
minimatch9.0.4424.71 kBISC
prod
minipass7.1.2279.49 kBISC
prod
path-scurry1.11.1522.93 kBBlueOak-1.0.0
prod
1
1

Visualizations

Frequently Asked Questions

What does glob do?

Glob is a widely-used npm package that matches files using the same patterns as the shell. Regarded as one of the most accurate and efficient glob implementations in JavaScript, Glob helps you match and handle files and directories following specific patterns. Using this package, you can conveniently match, ignore, search, and filter files using patterns like *.js (for matching all JavaScript files), **/*.txt (for matching all text files in all directories), and many more.

How do you use glob?

Before you can use Glob, you need to install it in your Node.js project using npm. The npm package name is "glob". Install it by running npm i glob in your project directory.

After installation, you can import or require Glob in your JavaScript file. Glob provides several methods that you can use, including glob, globSync, globStream, and globStreamSync. You can also use the Glob class to perform glob pattern traversals multiple times, which can be faster if you need to look in the same folder multiple times.

Here's a code example:

// Import Glob
import { glob, globSync } from 'glob';

// Match all .js files but ignore those in node_modules
const jsfiles = await glob('**/*.js', { ignore: 'node_modules/**' });

// Use globSync for synchronous operation
const imagesAlt = globSync('{css,public}/*.{png,jpeg}');

Note that Glob always uses / as a path separator, regardless of the operating system.

Where are the glob docs?

The official Glob documentation is comprehensive and provides detailed usage examples, information about different options you can use with Glob methods, comparisons to other glob implementations, and clarifications on Glob's behavior concerning different filesystem entities. The documentation also includes details about Glob's command-line interface for extra flexibility and convenience. Additionally, you can gain insights into Glob's internals by checking out the source code on its GitHub repository.