Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

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
34,641,207
decreased by-11.8%

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 27,880,167 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 because the last version was released a year ago.It has 1 open source maintainer collaborating on the project.

Last updated on 08 Nov 2018

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
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