HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/firetech.komma.pro/node_modules/is-relative/index.js
'use strict';

/**
 * ```js
 * var isRelative = require('is-relative');
 * isRelative('README.md');
 * //=> true
 * ```
 *
 * @name isRelative
 * @param {String} `filepath` Path to test.
 * @return {Boolean}
 * @api public
 */

module.exports = function isRelative(filepath) {
  if (typeof filepath !== 'string') {
    throw new Error('isRelative expects a string.');
  }
  return !/^([a-z]+:)?[\\\/]/i.test(filepath);
};