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

fast-fast-series

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-fast-series

Fast fast series

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Fast Fast Series

Run as fast as possible your functions

Install

npm i --save fast-fast-series

Usage

const ffs = require('fast-fast-series')

function func1 (obj, next) {
  obj.a += 1
  setTimeout(next, 0, null, obj)
}

function func2 (obj, next) {
  obj.b = 6
  setTimeout(next, 2, null, obj)
}

function func3 (obj, next) {
  obj.c = 77
  setTimeout(next, 0, null, obj)
}

const f = ffs([
  func1,
  func2,
  func3,
  function (arg) {
    // ok
    console.log(arg)
  }
], function (err) {
  // error case
  console.log(err)
})

f({ a: 3 })

Output:

{ a: 4, b: 6, c: 77 }

License

Licensed under MIT.

FAQs

Package last updated on 29 Nov 2017

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