What is the alternative to a Flowy node.js?

I use Flowy for flow control in Node.js. Flowy allows you to write readable chain-code like this:

Flowy.chain(function(){
 _trips.findOne({id:tripId}, this.slot());
 _users.findOne({id:userId}, this.slot());
})
.then(function(err, trip, user){
...
})
.fail(function(err){
...
})


Flowy haven't updated, are there any modern alternatives Flowy, for writing readable asynchronous JS?

Article about Flowy habrahabr.ru/post/166419
September 26th 19 at 06:19
2 answers
September 26th 19 at 06:21
Solution
And in the async chain is the syntax? And then the code in examples looks ugly: i.imgur.com/ND82vX0.png - merl commented on September 26th 19 at 06:24
well, if you rewrite your code to async, it will be like this:
async.parallel(
[
 _trips.findOne({id: tripId}, this.slot()),
 _users.findOne({id: userId}, this.slot())
],
 function (err, trip, user) {}
);
- Florine_Hintz commented on September 26th 19 at 06:27
September 26th 19 at 06:23
Immediately, is Q, and Vow (what I often use, including for the client).
There is still less known then promise and bluebird
It is called Promises (promises) or Promises/A+
It is regarding the promises. There are other libraries bit.ly/1putPFj

There is also the option of using different libraries for control flow, which is also from the mountain noodle doing more or less consistent code.
Including async, more simple but not less efficient wrapper over the standard Colakli.
Other: Step, Seq, FuturesJS.

In addition, the standard sooner or later will be included the so-called generators (yield) — part of the es6 harmony. Already have experience in this type face koajs (change Express).
They are in the 0.11 branch, but require a flag at startup. Guarantee that it will be 0.12, of course not, but in 0.14 or 0.16, it will appear with high probability.
My question is a bit more specific. The development of the promise libraries I see this: Q -> Step -> TwoStep -> Flowy -> ? - merl commented on September 26th 19 at 06:26
Do not develop libraries and standards.
Panicacci, there are CommonJS (en.wikipedia.org/wiki/CommonJS) with its standardization, and there is a harsh reality. In future, hardly someone flies and say that you will use in 5 years.
Judging by the trends — integrated in the language will have more weight. So the generators. - Florine_Hintz commented on September 26th 19 at 06:29

Find more questions by tags JavaScriptNode.js