CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes48downloads
readme.md60 linesDownload Raw Back to path-is-absolute
1# path-is-absolute [![Build Status](https://travis-ci.org/sindresorhus/path-is-absolute.svg?branch=master)](https://travis-ci.org/sindresorhus/path-is-absolute)2 3> Node.js 0.12 [`path.isAbsolute()`](http://nodejs.org/api/path.html#path_path_isabsolute_path) [ponyfill](https://ponyfill.com)4 5 6## Install7 8```9$ npm install --save path-is-absolute10```11 12 13## Usage14 15```js16const pathIsAbsolute = require('path-is-absolute');17 18// Running on Linux19pathIsAbsolute('/home/foo');20//=> true21pathIsAbsolute('C:/Users/foo');22//=> false23 24// Running on Windows25pathIsAbsolute('C:/Users/foo');26//=> true27pathIsAbsolute('/home/foo');28//=> false29 30// Running on any OS31pathIsAbsolute.posix('/home/foo');32//=> true33pathIsAbsolute.posix('C:/Users/foo');34//=> false35pathIsAbsolute.win32('C:/Users/foo');36//=> true37pathIsAbsolute.win32('/home/foo');38//=> false39```40 41 42## API43 44See the [`path.isAbsolute()` docs](http://nodejs.org/api/path.html#path_path_isabsolute_path).45 46### pathIsAbsolute(path)47 48### pathIsAbsolute.posix(path)49 50POSIX specific version.51 52### pathIsAbsolute.win32(path)53 54Windows specific version.55 56 57## License58 59MIT © [Sindre Sorhus](https://sindresorhus.com)60 
basant307/AI_Governance_Project · CoolFace