
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
Simple construction of complex flows.
npm install flou --save
var Flow = require('flou');
var saveOrderPromise = new Flow({ order: someOrder })
.having('order')
.run(findCountry, findRegionAndTimezone, findOperator, findOffer)
.having('country', 'regionAndTimezone')
.run(createClientRecord)
.having('clientRecord', 'offer')
.run(createOrderRecord)
.having('country')
.run(findShipmentMethod)
.having('country', 'shipmentMethod', 'orderRecord')
.run(createOrderShipmentRecord)
.having('operator', 'orderRecord')
.run(createOrderCallRecord)
.having('orderShipmentRecord', 'orderCallRecord')
.run(updateOrderRecord)
.returning('updatedOrderRecord')
.having('updatedOrderRecord')
.finish();
saveOrderPromise.done(function (context) {
console.log('Hooray! I have passed all steps of the specified flow! Id of order is', context.order.id);
}, function (error) {
console.error('Oh no! Flow was interrupted due to', error && error.stack || error);
});
Creates flow object initialized with named values passed as hash.
Starts flow step building by accepting names of flow variables which must be resolved (in terms of promises) before step can start.
Schedules execution of given functions once preconditions are met (see having).
Each function should (but not must!) accept one argument which is hash of named flow variables and should (but not must!) return any value.
Each function result will be saved as flow variable named after function or using value provided via returning (see next section for details). "Named after function" here means equals to function name without leading verb (for example, result of saveOrderRecord will be named orderRecord).
Explicitly specifies names for function execution results.
Finalizes flow and returns final promise.
BSD
FAQs
Simple construction of complex flows.
We found that flou demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.