Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

freeflow

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

freeflow

Similar to async.auto, but offers partial calculation and different interface.

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Freeflow

Another control-flow extension for some places where async doesn't covers.

What this library for?

async.auto is great feature which offers simple dependency resolution, but it doesn't have target function so all the functions are to be executed. If you have bunch of functions and needs only some of them are to be executed to get needed value, other functions are executed with no use.

async.auto({
  foo: function(callback) { ... }
  bar: function(callback) { ... }
  baz: [ 'foo', function(callback) { ... } ]
});

Think if we only need the result of baz. then bar don't needed to executed in this context but async doesn't have that feature. that's why I coded this library.

How to use?

var freeflow = require('freeflow');
freeflow({
  funcA: function(callback) { ... },
  funcB: function(callback) { ... },
  funcC: function(funcA, funcB, callback) { ... } // dependencies are auto-inferenced
}, 'funcC', function(err, result) {
  ...
});

TODO

  • Alternative way without dependency inference.

Keywords

FAQs

Package last updated on 11 Mar 2014

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc