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

fix code sample in "Use Promises, not callbacks" section #211

Open
wants to merge 1 commit into
base: master
from

Conversation

@ateshuseyin
Copy link

@ateshuseyin ateshuseyin commented Apr 28, 2017

I fixed package names in good code sample in "Use Promises, not callbacks" section.

@ryanmcdermott
Copy link
Owner

@ryanmcdermott ryanmcdermott commented Apr 28, 2017

Thanks for looking into this! Apparently fs-promise is deprecated? https://github.com/kevinbeaty/fs-promise

Copy link

@felquis felquis left a comment

This change is very simple, if you can't do this change let me know early.

import { get } from 'request';
import { writeFile } from 'fs';
import { get } from 'request-promise';
import { writeFile } from 'fs-promise';

This comment has been minimized.

@felquis

felquis Jul 16, 2017

Use fs-extra instead!

@styfle
Copy link

@styfle styfle commented Jul 16, 2017

Node 8 actually has a native solution for wrapping core APIs in promises.
See this blog post for more info.

@felquis
Copy link

@felquis felquis commented Jul 16, 2017

I don't see advantage using the built in promisify than using fs-extra.

@styfle
Copy link

@styfle styfle commented Jul 16, 2017

I don't see advantage using the built in promisify than using fs-extra.

The advantage is one less dependency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants
You can’t perform that action at this time.