initials-avatar-generator
Advanced tools
Comparing version 1.0.5 to 1.1.0
@@ -1,1 +0,1 @@ | ||
exports.image = require('./lib/image'); | ||
exports = require('./lib/image'); |
@@ -5,16 +5,23 @@ var colors = require('./color'); | ||
var hex = require('./utils').randomHex; | ||
module.exports = function (conf, next) { | ||
conf = conf || {}; | ||
if (!conf.width) { | ||
conf.width = 100; | ||
module.exports = | ||
{ | ||
generate: function (conf, next) { | ||
conf = conf || {}; | ||
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); | ||
} | ||
picture(conf).one(function (img) { | ||
next(img); | ||
}); | ||
}; |
{ | ||
"name": "initials-avatar-generator", | ||
"version": "1.0.5", | ||
"version": "1.1.0", | ||
"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
10968411
361