We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reference: sindresorhus/globby#261
Have a AbortSignal option to stop stop glob in progress.
AbortSignal
const signal = AbortSignal.timeout(200); try { return await fg.glob(patterns, {signal}); } catch { return []; }
Or have a globExists matching the first file.
globExists
async function globExists(patterns, options) { const controller = new AbortController(); for await (const entry of fg.globStream(patterns, {...options, signal: controller.signal})) { controller.abort(); return entry; } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Environment
Reference: sindresorhus/globby#261
Code sample
Have a
AbortSignal
option to stop stop glob in progress.Or have a
globExists
matching the first file.The text was updated successfully, but these errors were encountered: