|
|
|
|
|
by xg15
3333 days ago
|
|
Last time I checked (~ a year ago admittedly), the node.js api itself (e.g. fs) was still mostly callback-based and had little built-in support for promises. You either had to resort to 3rd-party wrapper modules or wrap the calls yourself, resulting in a lot of clutter in your code. Does anyone know if the situation has changed by now and you can obtain promises from core functions directly? |
|
That being said, there are some fantastic libraries which you can use as a drop-in replacement for the core libraries provide a promise based API, but nothing in core directly.
[0] https://github.com/nodejs/NG/issues/25