smartmatch/ts/index.ts
2020-02-25 19:02:52 +00:00

14 lines
346 B
TypeScript

import * as plugins from './smartmatch.plugins';
export class SmartMatch {
private picomatch;
public globString;
constructor(globStringArg: string) {
this.globString = globStringArg;
this.picomatch = plugins.picomatch(this.globString);
}
public match(matchStringArg): boolean {
return this.picomatch(matchStringArg);
}
}