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

vo

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vo

Vo is a control flow library for minimalists

  • 3.0.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
318
increased by80.68%
Maintainers
1
Weekly downloads
 
Created
Source

img

Vo is a control flow library for minimalists.

Features

  • Seamlessly supports promises, generators, synchronous & asynchronous functions.
  • Vo is composable, allowing you to intuitively orchestrate complex work flows
  • Easily catch and fix errors anywhere in the pipeline
  • Returns a promise that you can yield on or "await"
  • Supports both stack and pipeline task flow
  • Tiny (4kb minified + gzip)
  • Browser & server support
  • Well-tested

Installation

  • Node.js or Browserify: npm install vo
  • Standalone: vo.js & vo.min

Getting Started

An updated guide will be available soon. For now, take a look at the tests for now.

Things to keep in mind

Binding a generator function isn't consistently implemented yet

function * a () {
  // this === ctx
}

vo(a.bind(ctx))

The following will work on node 5 and latest chrome, but not on latest safari or node 4. Latest babel does not fix this problem.

Just to be safe, I'd install co-bind and do this instead:

var bind = require('co-bind')

function * a () {
  // this === ctx
}

vo(bind(a, ctx))

Test

We have a comprehensive test suite. Here's how you run it:

npm install
make test

License

MIT

Keywords

FAQs

Package last updated on 11 Mar 2016

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