import { fileURLToPath } from 'node:url';

const toPath = urlOrPath => urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath;
const isNegativePattern = pattern => pattern[0] === '!';

export { isNegativePattern, toPath };
