Skip to content
New issue

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

Provide glob, globSync and globSteam aliases #397

Closed
mrmlnc opened this issue May 14, 2023 · 1 comment
Closed

Provide glob, globSync and globSteam aliases #397

mrmlnc opened this issue May 14, 2023 · 1 comment

Comments

@mrmlnc
Copy link
Owner

mrmlnc commented May 14, 2023

Motivation

The user is forced to use the renaming of the imported method when using a named import. This is because the async, sync and stream methods tell the developer nothing and can lead to conflicts with other variables or methods in the module being developed.

import { sync as globSync } from 'fast-glob';

There is no such problem with the next use case:

import * as fg from 'fast-glob';

fg();
fg.sync();

Related issues

#383

@mrmlnc
Copy link
Owner Author

mrmlnc commented May 14, 2023

Will be shipped with 3.3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant