DefinitelyTyped/types/findup-sync/findup-sync-tests.ts
2018-12-06 00:35:08 +01:00

18 lines
296 B
TypeScript

import findup = require('findup-sync');
let str: string;
str = findup('foo');
str = findup(['foo', 'bar']);
str = findup('foo', {
matchBase: true,
});
str = findup('foo', {
cwd: 'c:\\',
});
str = findup('{a,b}*.txt');
str = findup('{a,b}*.txt', { cwd: '/some/path', nocase: true });