Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const prefixed = (cwd, file) => {
let out = relative(cwd, file);
if(!prefixRegex.test(out)) {
out = `./${out}`;
}
return out;
};