Comparing version 0.9.3 to 0.9.4
@@ -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, |
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