Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on Apr 25, 2024 via pnpm

is-glob 4.0.3

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 bet
Package summary
Share
0
issues
1
license
2
MIT
Package created
18 Dec 2014
Version published
29 Sep 2021
Maintainers
3
Total deps
2
Direct deps
1
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
2 Packages, Including:
is-extglob@2.1.1
is-glob@4.0.3
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

1
All Dependencies CSV
β“˜ This is a list of is-glob 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
is-extglob2.1.12.6 kBMIT
prod

Visualizations

Frequently Asked Questions

What does is-glob do?

"Is-glob" is a JavaScript npm package that returns 'true' if the provided string appears to be a glob pattern or an extglob pattern. It allows you to create efficient, high-performance code by only utilizing external modules like node-glob when it's necessary, leading to quicker code execution and initialization time, improving the overall user experience.

How do you use is-glob?

To use "is-glob" in your code, you must first install it using npm by typing npm install --save is-glob in your terminal. After installation, require 'is-glob' at the top of your JavaScript file like so: var isGlob = require('is-glob');. You will then be able to test strings to see if they are glob patterns. For example, isGlob('*.js'); will return true, while something like isGlob('abc.js'); will return false, as it is not a glob pattern. "Is-glob" also accepts an optional settings object with a strict boolean, which when set to false, alters the behavior of the function to be less strict in its determination.

var isGlob = require('is-glob');

// example usages
isGlob('*.js'); // returns true
isGlob('abc/*.js'); // returns true

isGlob('abc.js'); // returns false
isGlob('foo.js'); // returns false

isGlob('!foo.js', {strict: false}); // returns true, because `{strict: false}` makes detection less strict

Where are the is-glob docs?

Documentation for "is-glob" can primarily be found in the readme file on the package's GitHub repository: https://github.com/micromatch/is-glob The readme contains clear instructions for installing and using the package, as well as examples of glob patterns that will return true or false. It also outlines the structure and behavior of the program and provides links to related projects and contributors. If you need more information about the package's methods and APIs, you might also want to delve into the source code itself or the unit tests, both of which are hosted on the GitHub repo.