FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

doc: add fspromises mkdir example by bnb · Pull Request #40843 · nodejs/node · GitHub

/ node Public

doc: add fspromises mkdir example - #40843

Merged
nodejs-github-bot merged 8 commits into
nodejs:masterfrom
bnb:bnb/fspromises-mkdir
Jun 12, 2022
Merged

doc: add fspromises mkdir example#40843
nodejs-github-bot merged 8 commits into
nodejs:masterfrom
bnb:bnb/fspromises-mkdir

Conversation

bnb commented Nov 17, 2021

Copy link
Copy Markdown
Contributor

Adds an example to the fsPromises mkdir doc. Includes both cjs and mjs versions, because we should support both imo.

Signed-off-by: Tierney Cyren <hello@bnb.im>

This comment has been minimized.

Comment thread doc/api/fs.md Outdated
Comment thread doc/api/fs.md Outdated
nodejs-github-bot added doc Issues and PRs related to the documentations. fs Issues and PRs related to the fs subsystem / file system. labels Nov 17, 2021
Signed-off-by: Tierney Cyren <hello@bnb.im>
aduh95 added author ready PRs that have at least one approval, no outstanding review comments, and a CI started. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. labels Nov 19, 2021
Comment thread doc/api/fs.md Outdated
Trott removed the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label Dec 12, 2021
Comment thread doc/api/fs.md Outdated
Signed-off-by: Tierney Cyren <hello@bnb.im>

bnb commented Jun 11, 2022

Copy link
Copy Markdown
Contributor Author

@aduh95 PTAL. Should be good now. Worth noting that I also added a slash at the end of the CJS example, again to be consistent.

bnb added the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label Jun 11, 2022

bnb commented Jun 11, 2022

Copy link
Copy Markdown
Contributor Author

Added author ready PRs that have at least one approval, no outstanding review comments, and a CI started. back 👍🏻

bnb commented Jun 11, 2022

Copy link
Copy Markdown
Contributor Author

(also apologies for the delay, ngl I forgot this was open)

aduh95 left a comment

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

All the docs are now using node: prefix.

Comment thread doc/api/fs.md Outdated
Comment thread doc/api/fs.md Outdated
Comment thread doc/api/fs.md Outdated
Comment thread doc/api/fs.md Outdated

}

makeDirectory();

aduh95 Jun 11, 2022
edited
Loading

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

nit: instead of a try/catch, I would put a .catch(console.error): calling an async function without awaiting it or having a catch handler should be frowned upon imho.

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

would you want me to move the MJS example to be a function and do the same, or should that continue using top-level await in a try/catch?

bnb added 5 commits June 11, 2022 16:44
Signed-off-by: Tierney Cyren <hello@bnb.im>
Signed-off-by: Tierney Cyren <hello@bnb.im>
Signed-off-by: Tierney Cyren <hello@bnb.im>
Signed-off-by: Tierney Cyren <hello@bnb.im>
Signed-off-by: Tierney Cyren <hello@bnb.im>
aduh95 added the commit-queue Add this label to land a pull request using GitHub Actions. label Jun 12, 2022
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Jun 12, 2022
nodejs-github-bot merged commit fab676e into nodejs:master Jun 12, 2022

Copy link
Copy Markdown
Collaborator

Landed in fab676e

danielleadams mentioned this pull request Jun 13, 2022
danielleadams pushed a commit that referenced this pull request Jun 13, 2022
Signed-off-by: Tierney Cyren <hello@bnb.im>

PR-URL: #40843
Reviewed-By: Adrian Estrada <edsadr@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
bnb deleted the bnb/fspromises-mkdir branch June 14, 2022 18:04
targos pushed a commit that referenced this pull request Jul 12, 2022
Signed-off-by: Tierney Cyren <hello@bnb.im>

PR-URL: #40843
Reviewed-By: Adrian Estrada <edsadr@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
targos pushed a commit that referenced this pull request Jul 31, 2022
Signed-off-by: Tierney Cyren <hello@bnb.im>

PR-URL: #40843
Reviewed-By: Adrian Estrada <edsadr@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
guangwong pushed a commit to noslate-project/node that referenced this pull request Oct 10, 2022
Signed-off-by: Tierney Cyren <hello@bnb.im>

PR-URL: nodejs/node#40843
Reviewed-By: Adrian Estrada <edsadr@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no outstanding review comments, and a CI started. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. doc Issues and PRs related to the documentations. fs Issues and PRs related to the fs subsystem / file system.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants


Back | FazBrowse Home | New Git URL