Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const glob: GlobWithCallback = (globPattern, options, callback) => {
validateInputs(globPattern, isObject(options) ? options : undefined);
if (typeof options === 'function') {
invariant(callback === undefined, 'Glob function accepts only one callback.');
return _glob(globPattern, options);
}
return _glob(
globPattern,
{
ignore: ['**/node_modules/**'],
...options,
},
callback,
);
};