Initial commit
[yaffs-website] / node_modules / is-relative / index.js
1 'use strict';
2
3 var isUncPath = require('is-unc-path');
4
5 module.exports = function isRelative(fp) {
6   if (typeof fp !== 'string') {
7     throw new TypeError('isRelative expects a string.');
8   }
9   // Windows UNC paths are always considered to be absolute.
10   return !isUncPath(fp) && !/^([a-z]:)?[\\\/]/i.test(fp);
11 };