Socket
Socket
Sign inDemoInstall

gulp-mc-inliner

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gulp-mc-inliner

Gulp plugin for inlining CSS throught MailChimps Inliner API


Version published
0
Maintainers
1
Created
Weekly downloads
 

Readme

Source

gulp-mc-inliner

Gulp plugin for inlining CSS throught MailChimps Inliner API.

NPM

Usage

npm install gulp-mc-inliner --save-dev

Create mailchimp.json file and add your MailChimp API key.

{
  "KEY": "your key goes here"
}

Require both in your gulpfile.js:

var inliner = require('gulp-mc-inliner');
var config = require('config/mailchimp');

gulp.task('inline', function() {
  gulp.src('src/*.html')
    .pipe(inliner(config.KEY))
    .pipe(gulp.dest('email/template.html'));
});

API

inliner(key, strip)

key

Type: String

MailChimp API Key.
Create a API key from your MailChimp Account.

stripCSS

Type: boolean Default: false

Boolean value indicating to the MailChimp API whether to strip CSS from the head tag.


This gulp plugin is a rewite of https://github.com/jayzawrotny/gulp-mc-inline-css with added option to specify whether or not to strip style tags from the head tag.

More features coming soon.

Keywords

FAQs

Last updated on 03 Feb 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc