diff options
author | Timothy J Fontaine <tjfontaine@gmail.com> | 2013-06-10 17:09:54 -0700 |
---|---|---|
committer | Chris Dickinson <christopher.s.dickinson@gmail.com> | 2014-11-20 16:10:55 -0800 |
commit | 6a90a060023dac4fc827613243e496237403f29f (patch) | |
tree | dce62d98b202a32b35d9b86faaccc3599e2624b4 /doc/api | |
parent | 4dc8b26bbefb21fd313b0c003cbc9102fb1c2205 (diff) | |
download | node-new-6a90a060023dac4fc827613243e496237403f29f.tar.gz |
path: allow calling platform specific methods
Add path.posix and path.win32 which have the specific methods like
resolve and normalize so you can specifically normalize or resolve
based on the target platform.
PR-URL: https://github.com/joyent/node/pull/5661
Reviewed-by: Chris Dickinson <christopher.s.dickinson@gmail.com>
Diffstat (limited to 'doc/api')
-rw-r--r-- | doc/api/path.markdown | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/api/path.markdown b/doc/api/path.markdown index 0e9a78b15b..054159533a 100644 --- a/doc/api/path.markdown +++ b/doc/api/path.markdown @@ -201,3 +201,13 @@ An example on Windows: process.env.PATH.split(path.delimiter) // returns ['C:\Windows\system32', 'C:\Windows', 'C:\Program Files\nodejs\'] + +## path.posix + +Provide access to aforementioned `path` methods but always interact in a posix +compatible way. + +## path.win32 + +Provide access to aforementioned `path` methods but always interact in a win32 +compatible way. |