doc: Mention we should be ware of platform differences.

This commit is contained in:
Cheng Zhao 2013-10-21 22:41:41 +08:00
parent 89f72c36f8
commit 1129ff7436

View File

@ -28,6 +28,13 @@
* Class methods (methods starting with a `@`)
* Instance variables
* Instance methods
* Be ware of platform differences
* The home directory is `process.env.USERPROFILE` on Windows, while on OS X
and Linux it's `process.env.HOME`
* Path separator is `\` on Windows, and is `/` on OS X and Linux, so use
`path.join` to concatenate filenames.
* Temporary directory is not `/tmp` on Windows, use `os.tmpdir()` when
possible
## Philosophy