Now, it's time to engage in actual implementation details.
In this recipe, we will write some code for our hsl-to-hex module.
Now, it's time to engage in actual implementation details.
In this recipe, we will write some code for our hsl-to-hex module.
Let's ensure that we have a folder called hsl-to-hex, with a package.json file in it. The package.json file should contain hsl-to-rgb-for-reals as a dependency. If there isn't a node_modules folder, we need to ensure that we run npm install from the command line with the working directory set to the hsl-to-hex directory.
To get started, let's create a file called index.js in the hsl-to-hex folder, then open it in our favorite text editor.