镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Feature request: fs async methods to return promises if callback is not provided. #2368

Description

@RobiFerentz

Just a possible 'nice to have' feature, to match the current trend of things like the Fetch API etc.
Obviously this would only work in methods where the usual callback is called exactly once.

Activity

  1. added
    feature requestIssues requesting new Node.js features.
    fsIssues and PRs related to file-system APIs and the fs module.
    on Aug 13, 2015
  2. Fishrock123 commented on Aug 13, 2015

    @Fishrock123
    Contributor

    Please see the following issues on why this is still an in-discussion thing:

    #11
    #88
    #173
    #688

    nodejs/NG#1
    nodejs/NG#7

    It is definitely on our radar, but I'm not sure if / when it will happen. We don't currently guarantee to have the same or similar APIs as the web.

    I suggest if you want futher discussion that is not covered by the NG issues, that you file a new one on NG. :)
    https://github.com/nodejs/NG/issues

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

    feature requestIssues requesting new Node.js features.fsIssues and PRs related to file-system APIs and the fs module.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions