user-icon-generator
v1.0.4
Published
Npm package to generate user icon using user's fullname.
Downloads
8
Maintainers
Readme
Getting started with icon generation
Installation
This is a Node.js module available through the npm registry.
Before installing, download and install Node.js.
Installation of package is done using the npm install command:
$ npm install --save user-icon-generator
Usage
- Requiring the module
var icons = require('user-icon-generator');
- This icons(fullname,color) method returns a image .
var icons=require("user-icon-generator");
icons("Lokesh Choubisa","black").then((icon)=>
{
if(!icon.error)
{
let image=icon.file;
console.log(image);
}
else
{
console.log(icon.error);
}
})
Output
Want to contribute ?
Please check out this repository here!
Thankyou for being here! 😊
Check out my other Repositories here
_____ _ ____ _ _
/ ____| | | _| | |__ | |
| (___ | |_ __ _ _ _ | | _ __ ___ _ __ __ ____ | __ | __ __ | |
\___ \| __/ _` | | | | | | | _ \| __ | _ \ / _ \| ___| | | _ / _ \/ _` |
____) | || (_| | |_| | | |_| |_| | | || | | | ___/| |__ | |_| || __/ (_| |
|_____/ \__\__,_|\__, | |___|_____|_| || | | |\___| | ___| |____ | \___|\__,_|
__/ |
|___/