A Node.js Module which suggests random colour names and hexcode
Ensure you have NodeJs and node package manager (npm) installed on your machine
Clone the repository using git clone https://github.com/ArafatAbdussalam/ColourModules
Install the dependencies using npm install
Create a branch using git checkout -b my-branch
Add and edit your file using git add my-file.js
Make your commit message using git commit -m "this is the changes I made"
Push to the branch using git push
Create a new folder for your project in the root directory
Initialize the package using npm init -y
which answers "yes" for all questions
Install the module using npm install --save ../Colors
Load the module using require("colors")
The module has the functionality getRandomColors()
with the name
and code
property.