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

is-absolute

Package Overview
Dependencies
Maintainers
2
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.3 to 0.2.4

5

index.js

@@ -23,6 +23,3 @@ 'use strict';

}
if (!isWindows() && isAbsolute.posix(fp)) {
return true;
}
return isAbsolute.win32(fp);
return isWindows() ? isAbsolute.win32(fp) : isAbsolute.win32(fp);
}

@@ -29,0 +26,0 @@

29

package.json
{
"name": "is-absolute",
"description": "Returns true if a file path is absolute.",
"version": "0.2.3",
"description": "Polyfill for node.js `path.isAbolute`. Returns true if a file path is absolute.",
"version": "0.2.4",
"homepage": "https://github.com/jonschlinkert/is-absolute",

@@ -24,6 +24,7 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",

"is-relative": "^0.2.1",
"is-windows": "^0.1.0"
"is-windows": "^0.1.1"
},
"devDependencies": {
"mocha": "*"
"gulp-format-md": "^0.1.7",
"mocha": "^2.4.5"
},

@@ -60,13 +61,27 @@ "keywords": [

"verb": {
"run": true,
"toc": false,
"layout": "default",
"tasks": [
"readme"
],
"plugins": [
"gulp-format-md"
],
"related": {
"list": [
"is-absolute",
"is-relative",
"is-dotfile",
"is-glob",
"is-relative",
"is-unc-path",
"is-valid-glob"
]
},
"reflinks": [
"verb"
],
"lint": {
"reflinks": true
}
}
}
}

@@ -1,15 +0,15 @@

# 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)
# is-absolute [![NPM version](https://img.shields.io/npm/v/is-absolute.svg?style=flat)](https://www.npmjs.com/package/is-absolute) [![NPM downloads](https://img.shields.io/npm/dm/is-absolute.svg?style=flat)](https://npmjs.org/package/is-absolute) [![Build Status](https://img.shields.io/travis/jonschlinkert/is-absolute.svg?style=flat)](https://travis-ci.org/jonschlinkert/is-absolute)
> Return true if a file path is absolute.
> Polyfill for node.js `path.isAbolute`. Returns true if a file path is absolute.
Based on the `isAbsolute` utility method in [express](https://github.com/visionmedia/express).
## Install
Install with [npm](https://www.npmjs.com/)
Install with [npm](https://www.npmjs.com/):
```sh
$ npm i is-absolute --save
$ npm install is-absolute --save
```
Originally based on the `isAbsolute` utility method in [express](https://github.com/visionmedia/express).
## Usage

@@ -59,10 +59,30 @@

## Other projects
## Related projects
* [is-relative](https://github.com/jonschlinkert/is-relative): Returns `true` if the path appears to be relative.
* [is-dotfile](https://github.com/jonschlinkert/is-dotfile): Return true if a file path is (or has) a dotfile.
* [is-glob](https://github.com/jonschlinkert/is-glob): Returns `true` if the given string looks like a glob pattern.
* [is-unc-path](https://github.com/jonschlinkert/is-unc-path): Returns true if a filepath is a windows UNC file path.
* [is-valid-glob](https://github.com/jonschlinkert/is-valid-glob): Return true if a value is a valid glob pattern or patterns.
You might also be interested in these projects:
* [is-dotfile](https://www.npmjs.com/package/is-dotfile): Return true if a file path is (or has) a dotfile. Returns false if the… [more](https://www.npmjs.com/package/is-dotfile) | [homepage](https://github.com/jonschlinkert/is-dotfile)
* [is-glob](https://www.npmjs.com/package/is-glob): Returns `true` if the given string looks like a glob pattern or an extglob pattern.… [more](https://www.npmjs.com/package/is-glob) | [homepage](https://github.com/jonschlinkert/is-glob)
* [is-relative](https://www.npmjs.com/package/is-relative): Returns `true` if the path appears to be relative. | [homepage](https://github.com/jonschlinkert/is-relative)
* [is-unc-path](https://www.npmjs.com/package/is-unc-path): Returns true if a filepath is a windows UNC file path. | [homepage](https://github.com/jonschlinkert/is-unc-path)
* [is-valid-glob](https://www.npmjs.com/package/is-valid-glob): Return true if a value is a valid glob pattern or patterns. | [homepage](https://github.com/jonschlinkert/is-valid-glob)
## Contributing
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/is-absolute/issues/new).
## Building docs
Generate readme and API documentation with [verb](https://github.com/verbose/verb):
```sh
$ npm install verb && npm run docs
```
Or, if [verb](https://github.com/verbose/verb) is installed globally:
```sh
$ verb
```
## Running tests

@@ -73,9 +93,5 @@

```sh
$ npm i -d && npm test
$ npm install -d && npm test
```
## Contributing
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/is-absolute/issues/new)
## Author

@@ -85,12 +101,12 @@

+ [github/jonschlinkert](https://github.com/jonschlinkert)
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
* [github/jonschlinkert](https://github.com/jonschlinkert)
* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
## License
Copyright © 2014-2015 Jon Schlinkert
Released under the MIT license.
Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).
Released under the [MIT license](https://github.com/jonschlinkert/is-absolute/blob/master/LICENSE).
***
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on July 11, 2015._
_This file was generated by [verb](https://github.com/verbose/verb), v, on March 29, 2016._

Sorry, the diff of this file is not supported yet

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