-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: update os.markdown #976
Conversation
LGTM, except the commit message should start with |
What @tellnes said. Otherwise LGTM. |
Thanks, I've renamed it appropriately. |
|
||
## os.endianness() | ||
|
||
Returns the endianness of the CPU. Possible values are `"BE"` or `"LE"`. | ||
Returns the endianness of the CPU. Possible values are `'BE'` for big endian | ||
or `'LE'` for little endien. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spelling, endian
@brendanashworth thanks! Fixed and squashed. |
@@ -20,16 +21,18 @@ Returns the hostname of the operating system. | |||
|
|||
## os.type() | |||
|
|||
Returns the operating system name. | |||
Returns the operating system name. For example 'Linux' on Linux, 'Darwin' on | |||
OSX and 'Windows_NT' on Windows. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OS X
Some doc update based on improvement ideas I remember from when I used this module in node: - Mention windows returns 0 for `nice` values (which is obvious, but io makes no attempt to calculate something similar or return undefined, 0 is returned) - Mention platform and arch are aliases for `process` properties. - Document possible return values where appropriate, add examples in others. - Rename title in order to match other titles in the navigation. - Fix line that was over 80 characters long.
Thanks @vkurchatkin! I've changed the quoting per your suggestion - it's worth mentioning it's not consistent throughout the docs (discussed in Domenic's promise event docs PR) |
LGTM |
Some doc update based on improvement ideas I remember from when I used this module in node: - Mention windows returns 0 for `nice` values (which is obvious, but io makes no attempt to calculate something similar or return undefined, 0 is returned) - Mention platform and arch are aliases for `process` properties. - Document possible return values where appropriate, add examples in others. - Rename title in order to match other titles in the navigation. - Fix line that was over 80 characters long. PR-URL: #976 Reviewed-By: Christian Tellnes <christian@tellnes.no> Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Vladimir Kurchatkin <vladimir.kurchatkin@gmail.com>
Landed as f83d380 |
Some doc update based on improvement ideas I remember from when I used this module in node:
nice
values (which is obvious, but io makes no attempt to calculate something similar or return undefined, 0 is returned)process
properties.