New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

hexcolor-random

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexcolor-random

Library for generating random color in the form of HEX code

latest
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

How Get random HEX Code

To get HEX Code you Need:

  • Install Libary - npm i hexcolor-random
  • Import Libary - const/let VARIABLE NAME = require('hexcolor-random')
  • Enter in your code - RandomHEXCode.randomHEXCode()

RandomHEXCode.randomHEXCode() - Does not receive any arguments

Example

const RandomHEXCode = require('hexcolor-random') 
// The name of the variable can be any

const obj = new RandomHEXCode
console.log(obj.randomHEXCode())

Arguments from obj.randomHEXCode() = A40FBC(Example) In String Format

Keywords

hex

FAQs

Package last updated on 18 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts