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

avatars

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

avatars - npm Package Compare versions

Comparing version 0.9.3 to 0.9.4

4

index.js

@@ -112,5 +112,5 @@ var crypto = require('crypto'),

var patternHeight = params.pheight?params.pheight:16;
var ceed = params.ceed?params.ceed.toString():Math.random().toString();
var seed = params.seed?params.seed.toString():Math.random().toString();
var fileName = params.filename?params.filename:null;
var hash = { val: crypto.createHash('md5').update(ceed).digest("hex") };
var hash = { val: crypto.createHash('md5').update(seed).digest("hex") };

@@ -117,0 +117,0 @@ // generate colors

{
"name": "avatars",
"version": "0.9.3",
"version": "0.9.4",
"description": "Pixel avatar generator",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -5,3 +5,3 @@ # avatars

This module using strings as ceed for generator. There are some examples:
This module using strings as seed for generator. There are some examples:

@@ -62,3 +62,3 @@ *Some random string* (with 3 colors):

------------------- | -------------
ceed | Some string that will be used as a ceed for randomizer (default: random string)
seed | Some string that will be used as a seed for randomizer (default: random string)
width | Width of the output image in px (default: 256)

@@ -77,3 +77,3 @@ height | Height of the output image in px (default: 256)

var params = {
ceed: 'Some Random Name', // can be username, login, id etc
seed: 'Some Random Name', // can be username, login, id etc
width: 500,

@@ -80,0 +80,0 @@ height: 500,

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