Skip to content

Provide glob, globSync and globSteam aliases #397

@mrmlnc

Description

@mrmlnc

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions