sindresorhus / globby

User-friendly glob matching
MIT License
2.51k stars 130 forks source link

Accept `URL` in function returns by `isGitIgnored()` and `isGitIgnoredSync()` #202

Closed fisker closed 2 years ago

fisker commented 2 years ago

This is a little different from #176, I didn't implement in #201

const isIgnored = await isGitIgnored();

- console.log(isIgnored(fileURLToPath(url)));
+ console.log(isIgnored(url));