Sha256: 134d2be33677347be35ec4689847592ec4b05e46ba09a391641065011952fc9c
Contents?: true
Size: 543 Bytes
Versions: 66
Compression:
Stored size: 543 Bytes
Contents
/*! * is-absolute <https://github.com/jonschlinkert/is-absolute> * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. */ 'use strict'; var isRelative = require('is-relative'); module.exports = function isAbsolute(filepath) { if ('/' === filepath[0]) { return true; } if (':' === filepath[1] && '\\' === filepath[2]) { return true; } // Microsoft Azure absolute filepath if ('\\\\' == filepath.substring(0, 2)) { return true; } if (!isRelative(filepath)) { return true; } };
Version data entries
66 entries across 66 versions & 3 rubygems