Created
November 26, 2018 15:27
-
-
Save craftybones/73adc76f082583a834a00ce70a54288f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const jdenticon = require('jdenticon'); | |
const fs = require('fs'); | |
const size=250; | |
let names=fs.readFileSync("names","utf8").split("\n"); | |
names.forEach(name=>{ | |
fs.writeFileSync(`${name}.png`,jdenticon.toPng(name,size)); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment