Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

premailer-api

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

premailer-api - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

7

package.json
{
"name": "premailer-api",
"version": "1.0.1",
"version": "1.0.2",
"description": "Node wrapper for the Premailer API (premailer.dialect.ca/api)",
"homepage": "https://github.com/JedWatson/node-premailer",
"author": {
"name": "Jed Watson",
"email": "jed.watson@gmail.com"
"name": "Jed Watson"
},

@@ -31,5 +30,5 @@ "keywords": [

"bugs": {
"url": "https://github.com/timrwood/moment/issues"
"url": "https://github.com/JedWatson/node-premailer/issues"
},
"license": "MIT"
}

@@ -101,3 +101,8 @@ var _ = require('underscore'),

}
apiResponse = JSON.parse(body);
try {
apiResponse = JSON.parse(body);
} catch(ex) {
next(ex);
return;
}
if (options.fetchHTML) {

@@ -104,0 +109,0 @@ getHTML();

@@ -6,3 +6,3 @@ node-premailer

node-premailer simplifies api integration by calling the Premailer API to inline css styles (and opther options such as removing comments, classes and ids), then retrieving the generated html and text from their respective URLs before passing them to your callback.
node-premailer simplifies api integration by calling the Premailer API to inline css styles (and other options such as removing comments, classes and ids), then retrieving the generated html and text from their respective URLs before passing them to your callback.

@@ -62,10 +62,10 @@

- See http://premailer.dialect.ca/api for full list of options. All options have aliases for node.js style variable names.
- adapter
- baseUrl || base_url
- lineLength || line_length
- linkQueryString || link_query_string
- preserveStyles || preserve_styles
- removeIds || remove_ids
- removeClasses || remove_classes
- removeComments || remove_comments
- `adapter`
- `baseUrl` || `base_url`
- `lineLength` || `line_length`
- `linkQueryString` || `link_query_string`
- `preserveStyles` || `preserve_styles`
- `removeIds` || `remove_ids`
- `removeClasses` || `remove_classes`
- `removeComments` || `remove_comments`

@@ -72,0 +72,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc