i think you need to specify what version of nodejs it supported.
-
-
-
Node 10+ In Node 13 it works even with ESM modules: Import {promises as fs} from 'fs'

- Još 6 drugih odgovora
Novi razgovor -
-
-
I wish there was a way to import promises and streams in one line as one fs object
@matteocollina -
Do you mean both 'fs' and 'stream' module at the same time?
- Još 6 drugih odgovora
Novi razgovor -
-
-
I love this kind of tips! I think they're more useful than thousands of blog posts and articles. Sorry all to be sincere
-
Great, then I'll put some more effort into it. Thanks for the feedback

- Još 3 druga odgovora
Novi razgovor -
-
-
What a hero! Love this tip
-
Thanks Thomas :) I'll be posting more. Stay tuned
Kraj razgovora
Novi razgovor -
-
-
WTF why is this not the recommend way everywhere
Thanks @loige! -
Available only from node 10... Maybe that's why it's still a quite new practice

- Još 1 odgovor
Novi razgovor -
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.
