is-extglob
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|
The npm package "is-extglob" is designed to run a check on strings and return true if the string contains an extended glob pattern. Extended globbing is a form of pattern matching and a string containing this pattern would signify complex command shells or scripting. Hence, this package is an exceptional tool for developers needing to identify the said patterns within strings.
Using the package is-extglob is a pretty straightforward task. Post successful installation of the package using $ npm install --save is-extglob
, it needs to be required in the JavaScript file using:
var isExtglob = require('is-extglob');
Then, you can implement the isExtglob function to verify if a string has an extglob. Below are examples demonstrating the usage of this function which returns 'True' when an extglob is present:
isExtglob('?(abc)');
isExtglob('@(abc)');
isExtglob('!(abc)');
isExtglob('*(abc)');
isExtglob('+(abc)');
The principal source of information and documentation for is-extglob is the package's README file on its GitHub repository, which can be accessed using the following URL: git+https://github.com/jonschlinkert/is-extglob.git. The README provides core insights about the package, examples illustrating its usage, and even technicalities such as test running methods. This, in conjunction with related npm package docs, should cover most questions that a user might run into while using is-extglob.