Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

is-absolute

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-absolute - npm Package Compare versions

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._
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc