Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including flux-generate-action-set with all npm packages installed. Try it out:

var fluxGenerateActionSet = require("flux-generate-action-set")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

flux-generate-action-set v0.0.3

Helper tool for FLUX to reduce boilerplate. generates a set of actions from a namespace of constants in the form of (action, data)=> and simply funnels the action while wrapping it in a promise for any actions not defined. Renames the actions form CONSTANT_ACTION_NAME to constantActionName in the process for use with the exported object. For use with Facebook's React FLUX example implementation library ('flux' repo)

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free