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.0.5 to 1.1.0

2

index.js

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

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