Displaying 1 to 20 from 54 results

node-thunkify - Turn a regular node function into one which returns a thunk

  •    Javascript

Turn a regular node function into one which returns a thunk, useful for generator-based flow control such as co.

gnode - Run node with ES6 Generators, today!

  •    Javascript

gnode is a very light wrapper around your node executable that ensures ES6 Generator support, even on versions of node that do not support ES6 Generators natively.You use it exactly like the regular node executable, except that you do not need to pass the --harmony-generators flag. That is where the magic happens.

co-aws - AWS wrapper for generators

  •    Javascript

AWS client for generators.Only EC2 is supported right now, aws-sdk is massive, but if you feel like wrapping the rest or want to help maintain this library let me know! I just need EC2 for now.




co-parallel - Execute thunks in parallel with concurrency support

  •    Javascript

Parallel execution with concurrency support that maintains result ordering.Execute thunks in parallel, with the given concurrency defaulting to 5.

co-prompt - sane terminal user-input for node.js using thunks / generators

  •    Javascript

Sane terminal user-input for nodejs that return thunks for co.Prompt for user input with msg.

co-ssh - SSH client for generators

  •    Javascript

SSH client for generators.


co-each - Parallel forEach for generators

  •    Javascript

Parallel forEach for generators.as in Array#forEach and yield when all are done. Functions are being executed in parallel.

co-level - LevelUp wrappers for "co"

  •    Javascript

LevelUP wrappers for co.Currently you have to pass the flag --harmony to node and need at least version 0.11.0.

co-read - Consume a readable stream generator-style

  •    Javascript

Also check out /example.js for a complete example using http streams, both streams1 and streams2 style.Read a chunk from stream.

co-wait - setTimeout generator style

  •    Javascript

setTimeout generator style.Wait for ms milliseconds before yielding.

redux-co - cojs middleware for Redux

  •    Javascript

redux-co is a drop-in replacement for redux-thunk (and indeed passes its test suite). It's meant to support async actions through yieldables as well as plain thunk functions.Redux Thunk middleware allows you to write action creators that return a function instead of an action. The thunk can be used to delay the dispatch of an action, or to dispatch only if a certain condition is met. The inner function receives the store methods dispatch and getState() as parameters.

co-emitter - Generator powered emitter for sync and async

  •    Javascript

The Emitter may be used as a mixin or a standalone object.Registers generator as a listener for name.

l8 - Task manager for javascript with promises, dataflows and actors

  •    Javascript

l8 is an *experimental* pthread/erlang inspired task manager for javascript. Simple tasks becomes 'paroles', complex tasks become functions broken in 'steps'. l8 comes with synchronisation and distribution tools including semaphores, mutexes, message queues, generators, actors and socket.io proxied actors, among others.

co-mocha - Enable support for generators in Mocha tests

  •    Javascript

Enable support for generators in Mocha tests using co. Use the --harmony-generators flag when running node 0.11.x to access generator functions, or transpile your tests using traceur or regenerator.

hapi-async-handler - Adds support for ES7 async functions to hapi route handlers

  •    Javascript

ES7 introduces async functions, which are functions that support the await keyword and return promises. This hapi plugin adds a handler called async that allows you to write your route handlers using async functions. You can also use hapi-async-handler with Node.js, generator functions (and the yield keyword), and co today. There are examples of both styles of use shown below. Define an async function that receives request and reply like a normal route handler and assign it the async property of the route handler.