image-convert
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -10,2 +10,3 @@ // Copyright 2016 Arshpreet Wadehra | ||
let quality = 100,output_format="jpg",size=undefined; | ||
let callback = arguments[arguments.length-1]; | ||
let max_allowed_parameters = 5; | ||
@@ -15,4 +16,4 @@ let min_allowed_parameters = 2; | ||
arguments[arguments.length-1](new Error("Parameters Mismatch"),null); | ||
else if(typeof quality[0] == "function") | ||
arguments[arguments.length-1](new Error("Parameters Mismatch"),null); | ||
else if(typeof arguments[0] == "function") | ||
arguments[arguments.length-1](new Error("URL REQUIRED"),null); | ||
let img = arguments[0]; | ||
@@ -19,0 +20,0 @@ if(typeof quality[1] != "function") |
{ | ||
"name": "image-convert", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "convert image and return static jpg and can resize from URL", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
3438
38