Skip to content
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: explain path.format() algorithm #5688

Closed
wants to merge 1 commit into from
Closed

Conversation

Trott
Copy link
Member

@Trott Trott commented Mar 13, 2016

Affected core subsystem(s)

doc

Description of change

Explain how path.format() behaves when pathObject is incomplete. Last remaining fix to close #2305

/cc @nodejs/documentation @sam-github @reggi

@Trott Trott added doc Issues and PRs related to the documentations. path Issues and PRs related to the path subsystem. lts-watch-v4.x labels Mar 13, 2016
@benjamingr
Copy link
Member

LGTM

@claudiorodriguez
Copy link
Contributor

LGTM

Returns a path string from an object, the opposite of [`path.parse`][].
Returns a path string from an object. This is the opposite of [`path.parse`][].

If `pathObject` has all expected properties, the returned string will be a
Copy link
Member

Choose a reason for hiding this comment

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

May want to expand on this just a bit to say what all the expected properties are up front.

@jasnell
Copy link
Member

jasnell commented Mar 14, 2016

Generally LGTM with some nits.

Trott added a commit to Trott/io.js that referenced this pull request Mar 16, 2016
PR-URL: nodejs#5688
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Claudio Rodriguez <cjrodr@yahoo.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Fixes: nodejs#2305
@Trott
Copy link
Member Author

Trott commented Mar 16, 2016

Landed in a97dfa0

@Trott Trott closed this Mar 16, 2016
MylesBorins pushed a commit that referenced this pull request Mar 17, 2016
PR-URL: #5688
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Claudio Rodriguez <cjrodr@yahoo.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Fixes: #2305
MylesBorins pushed a commit that referenced this pull request Mar 21, 2016
PR-URL: #5688
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Claudio Rodriguez <cjrodr@yahoo.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Fixes: #2305
MylesBorins pushed a commit that referenced this pull request Mar 21, 2016
PR-URL: #5688
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Claudio Rodriguez <cjrodr@yahoo.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Fixes: #2305
Fishrock123 pushed a commit that referenced this pull request Mar 22, 2016
PR-URL: #5688
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Claudio Rodriguez <cjrodr@yahoo.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Fixes: #2305
@Trott Trott deleted the format-doc branch January 13, 2022 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Issues and PRs related to the documentations. path Issues and PRs related to the path subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Path should format when 'base' missing and 'name' and 'ext' exist
5 participants