Big update!Announcing Socket for GitHub 1.0. Learn more
Socket
BlogLoveFAQ
Install
Log in

path-is-absolute

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Issues
File Explorer

Advanced tools

path-is-absolute

Node.js 0.12 path.isAbsolute() ponyfill

    2.0.0latest

Version published
Maintainers
1
Weekly downloads
37,804,833
decreased by-0.85%

Weekly downloads

Readme

Source

Deprecated

This package is no longer relevant as Node.js 0.12 is unmaintained.


path-is-absolute Build Status

Node.js 0.12 path.isAbsolute() ponyfill

Install

$ npm install --save path-is-absolute

Usage

const pathIsAbsolute = require('path-is-absolute'); // Running on Linux pathIsAbsolute('/home/foo'); //=> true pathIsAbsolute('C:/Users/foo'); //=> false // Running on Windows pathIsAbsolute('C:/Users/foo'); //=> true pathIsAbsolute('/home/foo'); //=> false // Running on any OS pathIsAbsolute.posix('/home/foo'); //=> true pathIsAbsolute.posix('C:/Users/foo'); //=> false pathIsAbsolute.win32('C:/Users/foo'); //=> true pathIsAbsolute.win32('/home/foo'); //=> false

API

See the path.isAbsolute() docs.

pathIsAbsolute(path)

pathIsAbsolute.posix(path)

POSIX specific version.

pathIsAbsolute.win32(path)

Windows specific version.

License

MIT © Sindre Sorhus

Keywords

FAQs

What is path-is-absolute?

Node.js 0.12 path.isAbsolute() ponyfill

Is path-is-absolute popular?

The npm package path-is-absolute receives a total of 31,103,070 weekly downloads. As such, path-is-absolute popularity was classified as popular.

Is path-is-absolute well maintained?

We found that path-is-absolute demonstrated a not healthy version release cadence and project activity. It has 1 open source maintainer collaborating on the project.

Last updated on 08 Nov 2018
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc