7.2 Setting up the directories

For this part, go ahead and create a directory for your library.

In this case, I chose to call my library : HNM Library.

Once you have the folder ready, go to your terminal and cd to this newly created folder.

Then go ahead and enter this command: npm init -y

This command creates the src folder and the package.json file. The src folder (short for source) is where we add the source code for our library.

Go ahead and enter cd src to change directory to src folder.