Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Changes as suggested by @mscdex & @cjihrig
With this commit everyline of process documentation
is wrapped in 80 characters
and there are some changes for documention
of process.arv[0] and process.argv[1]
  • Loading branch information
tarungarg546 committed Jun 29, 2016
commit 4cd40266b5c13296b03b511879743b1e1e009167
10 changes: 5 additions & 5 deletions doc/api/process.md
Original file line number Diff line number Diff line change
Expand Up @@ -450,11 +450,11 @@ console.log(`This processor architecture is ${process.arch}`);
added: v0.1.27
-->

The `process.argv` property returns a array containing the command line
arguments passed when the Node.js process was launched.
The first element will be [`process.execPath()`],
The second element will be the path to the JavaScript file being executed.
The remaining elements will be any additional command line arguments.
The `process.argv` property returns a array containing the command line
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a -> an

arguments passed when the Node.js process was launched.The first element will
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Space after the period.

Copy link
Copy Markdown
Contributor Author

@tarungarg546 tarungarg546 Jun 29, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cjihrig Now it LGTM. 🍭

be [`process.execPath()`]. The second element will be the path to the
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

process.execPath is not a function, so I’d drop the parentheses?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done 👍

JavaScript file being executed. The remaining elements will be any additional
command line arguments.

For example, assuming the following script for `process-args.js`:

Expand Down