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

initials-avatar-generator

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

initials-avatar-generator - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

35

lib/image.js

@@ -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",

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