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 400,000 packages pre-installed, including mops with all npm packages installed. Try it out:

var mops = require("mops")

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

mops v3.0.2

The operation queue


The operation queue.

Build Status NPM version Dependency Status devDependency Status Code Climate Test Coverage Inline docs

var action1 = new mops.Action(function() {
    return Promise.reject(new mops.Error('blablabla'));

var action2 = new mops.Action(function() {
    return new mops.Queue(this)

var action3 = new mops.Action(function() {
    return new Promise(function(resolve) {
            new mops.Queue(this)

new mops.Queue(new mops.Context({ /* ... */ }))
    .then(action1, param1, param2)
    .then(action2, action3)
    .then(function() {}, function() {})
    .catch(function() {})
    .then(function() {
        return new mops.Queue(this)


npm install mops
bower install mops


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