globalyzer
Advanced tools
Weekly downloads
Readme
Detect and extract the static part of a glob string
Utility to detect if a string contains a glob and then split it in a glob and none-glob part.
npm install globalyzer --save
const globalyzer = require('globalyzer');
globalyzer('foo/bar/.git/');
// => { base: 'foo/bar/.git/', glob: '', isGlob: false }
globalyzer('foo/bar/**/baz');
// => { base: 'foo/bar', glob: '**/baz', isGlob: true }
Type: function
Returns: { base, glob, isGlob }
Returns an object with the (non-glob) base path and the actual pattern and a is-glob flag.
Type: Boolean
Default: true
Be strict about what's a glob and what's not
Type: String
Glob string to analyze.
This is a fork of is-glob and glob-base
MIT © Terkel Gjervig
FAQs
Detect and extract the static part of a glob string
The npm package globalyzer receives a total of 2,044,949 weekly downloads. As such, globalyzer popularity was classified as popular.
We found that globalyzer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a GitHub app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.