mirror of
https://github.com/Raghu-Ch/nodeRestAPI.git
synced 2026-02-10 20:53:02 -05:00
initial commit
This commit is contained in:
11
node_modules/is-relative/index.js
generated
vendored
Normal file
11
node_modules/is-relative/index.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
'use strict';
|
||||
|
||||
var isUncPath = require('is-unc-path');
|
||||
|
||||
module.exports = function isRelative(fp) {
|
||||
if (typeof fp !== 'string') {
|
||||
throw new TypeError('isRelative expects a string.');
|
||||
}
|
||||
// Windows UNC paths are always considered to be absolute.
|
||||
return !isUncPath(fp) && !/^([a-z]:)?[\\\/]/i.test(fp);
|
||||
};
|
||||
Reference in New Issue
Block a user