sfcode
An Online Competing and Development Environment
|
Contributing
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.
Please consider following this project's author, Jon Schlinkert, and consider starring the project to show your :heart: and support.
Install with npm:
You might also be interested in is-valid-glob and has-glob.
True
Patterns that have glob characters or regex patterns will return true
:
Extglobs
False
Escaped globs or extglobs return false
:
Patterns that do not have glob patterns return false
:
Arrays are also false
(If you want to check if an array has a glob pattern, use has-glob):
When options.strict === false
the behavior is less strict in determining if a pattern is a glob. Meaning that some patterns that would return false
may return true
. This is done so that matching libraries like micromatch have a chance at determining if the pattern is a glob or not.
True
Patterns that have glob characters or regex patterns will return true
:
Extglobs
False
Escaped globs or extglobs return false
:
<details>
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
</details>
<details>
Running Tests
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
</details>
<details>
Building docs
_(This project's readme.md is generated by verb, please don't edit the readme directly. Any changes to the readme must be made in the .verb.md readme template.)_
To generate the readme, run the following command:
</details>
You might also be interested in these projects:
Commits | Contributor |
---|---|
47 | jonschlinkert |
5 | doowb |
1 | phated |
1 | danhper |
1 | paulmillr |
Jon Schlinkert
Copyright © 2019, Jon Schlinkert. Released under the [MIT License](LICENSE).
This file was generated by verb-generate-readme, v0.8.0, on March 27, 2019.