Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export async function trace(words: string[], options: TraceOptions): Promise {
const configGlob = options.config || defaultConfigGlob;
const configGlobOptions = options.config ? {} : defaultConfigGlobOptions;
const configFiles = (await globP(configGlob, configGlobOptions)).filter(util.uniqueFn());
const config = cspell.mergeSettings(cspell.getDefaultSettings(), cspell.getGlobalSettings(), cspell.readSettingsFiles(configFiles));
const results = await traceWords(words, config);
return results;
}