user-icon-generator

1.0.4 • Public • Published

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

Package Sidebar

Install

npm i user-icon-generator

Weekly Downloads

3

Version

1.0.4

License

MIT

Unpacked Size

5.39 kB

Total Files

4

Last publish

Collaborators

  • lokeshchoubisa