node package manager


Gulp plugin to send HTML to Mail Chimp's Inline CSS API


Takes HTML style tags and converts it to inline CSS using MailChimp's CSS Inliner API for Gulp 3

First, install gulp-mc-inline-css as a development dependency:

npm install --save-dev gulp-mc-inline-css

Then, add it to your gulpfile.js:

var inline = require('gulp-mc-inline-css');
gulp.task('inliner', function() {

Type: String

A required string containing your MailChimp API Key. A best practice is to create a config.json file with an APIKEY and call inliner like so:

 "APIKEY": "zowizjzowjoij#example#madeup#key"
var config = require('./config.json');

Converts the below HTML to the following

      div { color: #fff; background: #000; }
    <div>Hello World</div> 


    <div style="color:#fff;background:#000;">Hello World</div>