Displaying 1 to 20 from 49 results

jsx-control-statements - Neater If and For for React JSX

  •    Javascript

JSX-Control-Statements is a Babel plugin that extends JSX to add basic control statements: conditionals and loops. It does so by transforming component-like control statements to their JavaScript counterparts - e.g. <If condition={condition()}>Hello World!</If> becomes condition() ? 'Hello World!' : null. Developers coming to React from using JavaScript templating libraries like Handlebars are often surprised that there's no built-in looping or conditional syntax. This is by design - JSX by is not a templating library, it's declarative syntactic sugar over functional JavaScript expressions. JSX Control Statements follows the same principle - it provides a component-like syntax that keeps your render functions neat and readable, but desugars into clean, readable JavaScript.

redux-loop - A library that ports Elm's effect system to Redux

  •    Javascript

A port of the Elm Architecture to Redux that allows you to sequence your effects naturally and purely by returning them from your reducers. Yes! Absolutely.

node-blocked - Check if the event loop is blocked

  •    Javascript

Check if a node event loop is blocked.If You're running Node.js 8+ you can get a stacktrace pointing to the blocking function using very similar blocked-at package.




p-times - Run promise-returning & async functions a specific number of times concurrently

  •    Javascript

Returns a Promise that is fulfilled when all promises returned from mapper are fulfilled, or rejects if any of the promises reject. The fulfilled value is an Array of the fulfilled values returned from mapper in order.Number of times to call mapper.

p-whilst - While a condition returns true, calls a function repeatedly, and then resolves the promise

  •    Javascript

Think async version of the while statement.While condition returns true, executes action repeatedly, and then resolves the promise. Rejects if action returns a promise that rejects or if an error is thrown anywhere.


gl-gif - Quickly and easily generate looping GIFs using WebGL

  •    Javascript

Quickly and easily generate looping GIFs with WebGL using @jnordberg's gif.js.Note that if you change the size of your canvas after creating the encoder, gif.tick will throw an error.

ticker - Game/animation loop helper

  •    Javascript

A module for running animation and game loops with browserify.You've probably heard of requestAnimationFrame: a helpful method for running animations at higher frame rates than setInterval. It works really well for rendering animations to the screen, adjusting the speed to fit your screen refresh rate and battery life, etc.

temporal - Non-blocking, temporal task sequencing. For use with robots built with Johnny-Five

  •    Javascript

Non-blocking, temporal task sequencing. temporal does NOT use setTimeout or setInterval, however there is a cost for using "recursive" setImmediate to create an extremely fast, async execution loop. CPU usage is expected to peak when using temporal, because the internal ticker needs to execute as fast as possible and as many times per second as possible. It's this speed that allows temporal to review the internal schedule for tasks to execute more than once per millisecond, which is needed to create preferential execution cycles for hardware programming.temporal is not good for sparse task scheduling.

eventedloop - :curly_loop: Evented loops for timed events & games.

  •    Javascript

An event-based loop class which can take arbitrary numbers of intervals/callback pairs. Based on Node.js EventEmitter. Created with game loops in mind.You can do as many as you like, but I highly recommend you take it easy an don't overdo it. In newer versions of Chrome, 50 intervals seems to have no detrimental effects, but of course it depends on what is happening in the callback. An example of a situation with 50 intervals is available in this demo.

canvas-loop - canvas loop/scale utility

  •    Javascript

Yet another canvas shell utility, built on canvas-fit and raf-loop. Useful for full-screen retina canvas demos.See demo.es6 for a full demo.

raf-loop - a minimal requestAnimationFrame render loop

  •    Javascript

A minimal requestAnimationFrame render loop for node and the browser, using high-performance timing where possible.Creates a new loop with an optional function to receive tick events. The function will be called with delta time as the first parameter, in milliseconds.

each-async - Async concurrent iterator (async forEach)

  •    Javascript

Like async.each(), but tiny.I often use async.each() for doing async operations when iterating, but I almost never use the other gadzillion methods in async.

p-do-whilst - Calls a function repeatedly while a condition returns true and then resolves the promise

  •    Javascript

Think async version of the do…while statement.Executes action repeatedly while condition returns true and then resolves the promise. Rejects if action returns a promise that rejects or if an error is thrown anywhere.