1
0
Fork 0
toolkit/packages/glob/src/glob.ts

18 lines
416 B
TypeScript

import {Globber, DefaultGlobber} from './internal-globber'
import {GlobOptions} from './internal-glob-options'
export {Globber, GlobOptions}
/**
* Constructs a globber
*
* @param patterns Patterns separated by newlines
* @param options Glob options
*/
export async function create(
patterns: string,
options?: GlobOptions
): Promise<Globber> {
return await DefaultGlobber.create(patterns, options)
}