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

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

Closed
RobiFerentz opened this issue Aug 13, 2015 · 1 comment
Labels
feature request Issues that request new features to be added to Node.js. fs Issues and PRs related to the fs subsystem / file system.

Comments

@RobiFerentz
Copy link

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.

@brendanashworth brendanashworth added feature request Issues that request new features to be added to Node.js. fs Issues and PRs related to the fs subsystem / file system. labels Aug 13, 2015
@Fishrock123
Copy link
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
Labels
feature request Issues that request new features to be added to Node.js. fs Issues and PRs related to the fs subsystem / file system.
Projects
None yet
Development

No branches or pull requests

3 participants