initials-avatar-generator
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -5,23 +5,24 @@ var colors = require('./color'); | ||
var hex = require('./utils').randomHex; | ||
module.exports = | ||
{ | ||
generate: function (conf, next) { | ||
module.exports = function () { | ||
return { | ||
generate: function (conf, next) { | ||
conf = conf || {}; | ||
conf = conf || {}; | ||
if (!conf.width) { | ||
conf.width = 100; | ||
if (!conf.width) { | ||
conf.width = 100; | ||
} | ||
if (!conf.font) { | ||
conf.font = new fonts.Bariol(68); | ||
} | ||
if (!conf.color) { | ||
conf.color = "#3214FF"; | ||
} | ||
picture(conf).one(function (img) { | ||
next(img); | ||
}); | ||
} | ||
if (!conf.font) { | ||
conf.font = new fonts.Bariol(68); | ||
} | ||
if(!conf.color){ | ||
conf.color = "#3214FF"; | ||
} | ||
picture(conf).one(function (img) { | ||
next(img); | ||
}); | ||
} | ||
}; |
{ | ||
"name": "initials-avatar-generator", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "a random avatar generator base on node and node-imagemagick", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10968451
362