Displaying 1 to 20 from 29 results

yepnope.js - A Script Loader For Your Conditional Builds

  •    Javascript

TL;DR: we've replaced what yepnope used to do with a very minimal script to help you do what we think is best for your apps. The authors of yepnope feel that the front-end community now offers better software for loading scripts, as well as conditionally loading scripts. None of the APIs for these new tools are quite as easy as yepnope, but we assure you that it's probably worth your while. We don't officially endorse any replacement, however we strongly suggest you follow an approach using modules, and then package up your application using require.js, webpack, browserify, or one of the many other excellent dependency managed build tools.

gulp-if - Conditionally run a task

  •    Javascript

A ternary gulp plugin: conditionally control the flow of vinyl objects. Note: Badly behaved plugins can often get worse when used with gulp-if. Typically the fix is not in gulp-if.

Winterfell - Generate complex, validated and extendable JSON-based forms in React.

  •    Javascript

Winterfell allows you to build up complex, multi-page forms with conditional questions, validation and conditional-page switching via a JSON schema, rendered by React. Winterfell was initially made for a project in a sector that required a large, complex form with questions that would result in more questions or different pages when you clicked next. With an easy to write schema and a high level of customisation, comes a great power.




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.

fork-stream - Fork a stream in multiple directions according to a function

  •    Javascript

Fork a stream in multiple directions according to a function. fork-stream basically gives you conditional branching for streams. You supply the logic, fork-stream supplies the streaming.


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.

p-if - Conditional promise chains

  •    Javascript

It's just a passthrough if condition is false and doElse is not provided.Returns a thunk that returns a Promise.

feature-toggle - A painless feature toggle system in JavaScript

  •    Javascript

A painless feature toggle system in JavaScript. Decouple development and deployment.Also supports AMD and standalone. Just load the UMD module in the ./dist folder.

promise-conditional - Use if-then-else in promise chains

  •    Javascript

It relies on any-promise to find a Promise library. You can use bluebird, q, when, or the native Promise implementation of Node.js or the browser.Starts a condition chain. This is exported via require('promise-conditional').

if-exp - :tophat: Conditional expressions for JavaScript

  •    Javascript

Now, if-exp will yield a function depending on the conditions and we directly execute it resulting in a lazy statement evaluation.

react-if - 🌗 Render React components conditionally (UNMAINTAINED)

  •    Javascript

Render React components conditionally. If condition evaluates to true, renders the <Then /> block will be rendered, otherwise renders the <Else /> block. Either block may be omitted.

p-break - Break out of a promise chain

  •    Javascript

See "How do I break out of a promise chain?" for a better way. Starts the break. Any .then()'s between here and pBreak.end() are skipped.

tryer - Conditional and repeated function invocation for node and browser.

  •    Javascript

Because everyone loves a tryer! Conditional and repeated function invocation for node and browser. Sometimes, you want to defer calling a function until a certain pre-requisite condition is met. Other times, you want to call a function repeatedly until some post-requisite condition is satisfied. Occasionally, you might even want to do both for the same function.

react-cond - Lisp-Style conditional rendering in react.

  •    Javascript

Make conditional rendering in react simple and expressive. react-cond is implemented as a component, which takes n clauses as its children. Each clause is an array with a condition and a component. The first child-component, where the condition evaluates to true gets rendered in a Cond component. React-cond is designed to work great with FP-libraries like Ramda. React-cond exports the component Cond and a function T.

gulp-match - Does a vinyl file match a condition?

  •    Javascript

Does a vinyl file match a condition? This function checks the condition on the file.path of the vinyl-fs file passed to it. A vinyl-fs file.

ternary-stream - A ternary stream: conditionally control the flow of stream data

  •    Javascript

A ternary stream: conditionally control the flow of stream data