3 var isUncPath = require('is-unc-path');
5 module.exports = function isRelative(fp) {
6 if (typeof fp !== 'string') {
7 throw new TypeError('isRelative expects a string.');
9 // Windows UNC paths are always considered to be absolute.
10 return !isUncPath(fp) && !/^([a-z]:)?[\\\/]/i.test(fp);