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 mailman-client with all npm packages installed. Try it out:

var mailmanClient = require("mailman-client")

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

mailman-client v0.0.2

Mailman client written in JavaScript

Description

A Node.js REST client for mailman-core.

Installing

$ npm install mailman-client

Testing

$ npm test

Generating docs

$ npm run docgen

Code coverage

$ npm run cover

Running JSHint

$ npm run jshint

Quick start

> var Client = require('mailman-client');
> var cli = new Client({endpoint : 'http://localhost:8001/3.0/'
                        'username' : 'restadmin',
                        'password' : 'restpass'
                        });
                        
// Usage with a callback function
> var cb = function(err,data) {
    if (err) {
        console.log(err);
    }
    else {
        console.log(data);
    }
};
> cli.getLists(cb);

// Promises
> cli.getLists().then(console.log)

Links

Metadata

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