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

Add Promises version of ReadLine #37287

Description

@buffet-time

Is your feature request related to a problem? Please describe.
Not to my knowledge.

Describe the solution you'd like
I'd like to have access to a set of functions for the readline portion of Node in a similar style to import fs from 'fs/promises'. Having to wrap callback functions in promises is rather tedious.

I'd like to know if this would be something I can work on. I want this for my own purposes and have the time to work on and implement this if possible.

Activity

  1. aduh95 commented on Feb 9, 2021

    @aduh95
    Contributor

    I agree it would make sense for Node.js to provide promise-based versions of readline.clearLine, readline.clearScreenDown, readline.cursorTo, and readline.moveCursor. readline.Interface is an AsyncIterator, which is already a promise API, but its methods (such as question) would deserve to have a Promise-based equivalent.

  2. TheAlakazam commented on Feb 14, 2021

    @TheAlakazam

    I would like to work on this. Is that alright?

  3. buffet-time commented on Feb 14, 2021

    @buffet-time
    Author

    I would like to work on this. Is that alright?

    That's fine by me, was going to get to this after doing some work on something else but if you're free go for it.

  4. added
    feature requestIssues requesting new Node.js features.
    readlineIssues and PRs related to the built-in readline module.
    on Apr 13, 2021
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.readlineIssues and PRs related to the built-in readline module.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions