npm.io
1.0.4 • Published 4 years ago

user-icon-generator

Licence
MIT
Version
1.0.4
Deps
1
Size
5 kB
Vulns
0
Weekly
0
Stars
2

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

   _____ _                  ____                               _               _ 
  / ____| |                |  _|                              | |__           | |
 | (___ | |_ __ _ _   _    | |  _ __  ___ _ __     __   ____  | __ |   __  __ | |
  \___ \| __/ _` | | | |   | | |  _ \| __ |  _ \ / _  \| ___| | |  _  / _ \/ _` |
  ____) | || (_| | |_| |   | |_| |_| | | || | | |  ___/| |__  | |_| ||  __/ (_| | 
 |_____/ \__\__,_|\__, |   |___|_____|_| || | | |\___| | ___| |____ | \___|\__,_|
                   __/ |                                      
                  |___/                                       

Connect

Linkedin Gmail

Keywords