is-absolute
Advanced tools
Comparing version 0.2.1 to 0.2.2
18
index.js
'use strict'; | ||
var isRelative = require('is-relative'); | ||
var windows = process.platform === 'win32'; | ||
var isWindows = require('is-windows'); | ||
/** | ||
* Expose `isAbsolute` | ||
*/ | ||
module.exports = isAbsolute; | ||
/** | ||
* Returns true if a file path is absolute. | ||
@@ -17,7 +23,7 @@ * | ||
} | ||
if (!windows && isAbsolute.posix(fp)) { | ||
if (!isWindows() && isAbsolute.posix(fp)) { | ||
return true; | ||
} | ||
return isAbsolute.win32(fp); | ||
}; | ||
} | ||
@@ -46,7 +52,1 @@ /** | ||
}; | ||
/** | ||
* Expose `isAbsolute` | ||
*/ | ||
module.exports = isAbsolute; |
{ | ||
"name": "is-absolute", | ||
"description": "Return true if a file path is absolute.", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"homepage": "https://github.com/jonschlinkert/is-absolute", | ||
@@ -23,3 +23,4 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
"dependencies": { | ||
"is-relative": "^0.2.0" | ||
"is-relative": "^0.2.1", | ||
"is-windows": "^0.1.0" | ||
}, | ||
@@ -26,0 +27,0 @@ "devDependencies": { |
@@ -93,2 +93,2 @@ # is-absolute [![NPM version](https://badge.fury.io/js/is-absolute.svg)](http://badge.fury.io/js/is-absolute) [![Build Status](https://travis-ci.org/jonschlinkert/is-absolute.svg)](https://travis-ci.org/jonschlinkert/is-absolute) | ||
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on July 07, 2015._ | ||
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on July 11, 2015._ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5634
2
+ Addedis-windows@^0.1.0
+ Addedis-windows@0.1.1(transitive)
Updatedis-relative@^0.2.1