GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: explicitly mention that the explanation of an synchronous fs API live in the docs of the async API · Issue #21197 · nodejs/node

doc: explicitly mention that the explanation of an synchronous fs API live in the docs of the async API #21197

New issue
Copy link
New issue
Copy link
Closed
Closed
doc: explicitly mention that the explanation of an synchronous fs API live in the docs of the async API#21197
Copy link
Labels
docIssues and PRs related to Node.js documentation.fsIssues and PRs related to file-system APIs and the fs module.good first issueIssues that are suitable for first-time contributors.

Description

@joyeecheung
joyeecheung
opened on Jun 7, 2018
Issue body actions
  • Version: master
  • Subsystem: fs, doc

In a lot of cases, the documentation of a synchronous fs API only links to the aysnc version of that API in order to reduce duplicated texts.

For example, fs.readSync() only mentions

Synchronous version of fs.read(). Returns the number of bytesRead.

Which could be confusing to beginners since it does not explicitly mention that if they want to see a detailed explanation of the arguments, they should click the link of fs.read(). It would be more friendly if, for example, in the fs.readSync() docs we explicitly say:

Synchronous version of fs.read(). Returns the number of bytesRead.

For detailed information, see the documentation of fs.read().

And do the same for other fs.*Sync APIs if applicable.

Refs: #21193

Activity

  1. joyeecheung
    added
    docIssues and PRs related to Node.js documentation.
    fsIssues and PRs related to file-system APIs and the fs module.
    good first issueIssues that are suitable for first-time contributors.
    on Jun 7, 2018
  2. iwko commented on Jun 7, 2018

    @iwko
    iwko
    on Jun 7, 2018
    Contributor
    More actions

    @joyeecheung May I take this one?

  3. joyeecheung commented on Jun 7, 2018

    @joyeecheung
    joyeecheung
    on Jun 7, 2018
    MemberAuthor
    More actions

    @iwko Sure, go ahead!

  4. BeniCheni commented on Jun 23, 2018

    @BeniCheni
    BeniCheni
    on Jun 23, 2018
    Contributor
    More actions

    Since didn't see any open PR fo 15 days from last comment so I opened #21479 to try this "good first issue" labeled issue. Thanks for your time to review.

  5. TimothyGu commented on Jun 23, 2018

    @TimothyGu
    TimothyGu
    on Jun 23, 2018
    Member
    More actions

    @BeniCheni, hmm, did you see #21243 (linked above by GitHub automatically)?

  6. BeniCheni commented on Jun 23, 2018

    @BeniCheni
    BeniCheni
    on Jun 23, 2018
    Contributor
    More actions

    Sorry about missing #21243. Closed my own duplicated PR.

    Reacted by Vse Mozhe Buty and Timothy Gu
  7. Trott
    added a commit that references this issue on Jul 9, 2018

    doc: improve documentation of fs sync methods

    65208d0
  8. targos
    added a commit that references this issue on Jul 10, 2018

    doc: improve documentation of fs sync methods

    cd77d87
  9. lirantal commented on Oct 14, 2018

    @lirantal
    lirantal
    on Oct 14, 2018
    Member
    More actions

    @joyeecheung seems like we can close this issue having @iwko's PR landed already, unless there are other areas we want to make the change in...?

    What do you think about zlib? the section for all the methods do specify the connection between the sync and async version of them here: https://nodejs.org/api/zlib.html#zlib_convenience_methods

  10. adarshsaraogi commented on Oct 24, 2018

    @adarshsaraogi
    adarshsaraogi
    on Oct 24, 2018
    More actions

    Can i work on this issue

  11. iwko commented on Oct 24, 2018

    @iwko
    iwko
    on Oct 24, 2018
    Contributor
    More actions

    @adarshsaraogi this issue is alread resolved and merged

  12. Trott commented on Nov 11, 2018

    @Trott
    Trott
    on Nov 11, 2018
    Member
    More actions

    (As always, if I'm closing in error, please comment or re-open. Thanks.)

  13. Trott
    closed this as completedon Nov 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to Node.js documentation.fsIssues and PRs related to file-system APIs and the fs module.good first issueIssues that are suitable for first-time contributors.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.