Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 9, 2024 via pnpm

glob 7.2.3

a little globber
Package summary
Share
0
issues
2
licenses
7
ISC
4
MIT
Package created
2 Jan 2011
Version published
15 May 2022
Maintainers
1
Total deps
11
Direct deps
6
License
ISC

Issues

0
This package has no issues

Licenses

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
7 Packages, Including:
fs.realpath@1.0.0
glob@7.2.3
inflight@1.0.6
inherits@2.0.4
minimatch@3.1.2
once@1.4.0
wrappy@1.0.2

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
4 Packages, Including:
balanced-match@1.0.2
brace-expansion@1.1.11
concat-map@0.0.1
path-is-absolute@1.0.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

6
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
fs.realpath1.0.04.33 kBISC
prod
inflight1.0.61.99 kBISC
prod
inherits2.0.41.98 kBISC
prod
minimatch3.1.211.66 kBISC
prod
once1.4.01.93 kBISC
prod
path-is-absolute1.0.11.84 kBMIT
prod

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.