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

18 lines
416 B
TypeScript
Raw Normal View History

2020-01-09 20:05:31 +00:00
import {Globber, DefaultGlobber} from './internal-globber'
import {GlobOptions} from './internal-glob-options'
2019-12-31 15:16:18 +00:00
2020-01-09 20:05:31 +00:00
export {Globber, GlobOptions}
2019-12-31 15:16:18 +00:00
/**
2020-01-09 20:05:31 +00:00
* Constructs a globber
2019-12-31 15:16:18 +00:00
*
2020-01-09 20:05:31 +00:00
* @param patterns Patterns separated by newlines
* @param options Glob options
2019-12-31 15:16:18 +00:00
*/
2020-01-09 20:05:31 +00:00
export async function create(
patterns: string,
options?: GlobOptions
): Promise<Globber> {
return await DefaultGlobber.create(patterns, options)
2019-12-31 15:16:18 +00:00
}