]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/node_modules/glob/node_modules/path-is-absolute/readme.md
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / node_modules / glob / node_modules / path-is-absolute / readme.md
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
4
5 > Ponyfill: A polyfill that doesn't overwrite the native method
6
7
8 ## Install
9
10 ```
11 $ npm install --save path-is-absolute
12 ```
13
14
15 ## Usage
16
17 ```js
18 var pathIsAbsolute = require('path-is-absolute');
19
20 // Linux
21 pathIsAbsolute('/home/foo');
22 //=> true
23
24 // Windows
25 pathIsAbsolute('C:/Users/');
26 //=> true
27
28 // Any OS
29 pathIsAbsolute.posix('/home/foo');
30 //=> true
31 ```
32
33
34 ## API
35
36 See the [`path.isAbsolute()` docs](http://nodejs.org/api/path.html#path_path_isabsolute_path).
37
38 ### pathIsAbsolute(path)
39
40 ### pathIsAbsolute.posix(path)
41
42 The Posix specific version.
43
44 ### pathIsAbsolute.win32(path)
45
46 The Windows specific version.
47
48
49 ## License
50
51 MIT © [Sindre Sorhus](http://sindresorhus.com)