So this post is a general overview of my node cli tools project, that is a collection of nodejs powered command line interface tools. The main idea of this project is to just have a collection of node cli tools to write about for the sake of new content for my site here. However the tools also follow a general theme of creating tools that help with the process of creating and maintaining one ore more simple static websites.
The way I started this project is by creating a new folder, make it the current working path, and use npm to initialize a new node project. I then npm install all the various npm packages I intend to use with the node cli tools as needed just with any other nodejs project, but I do something different with the package.json file. I added a bin key to the JSON of the package.json file that is an object with a bunch of key object pairs where the key name is the command name that I want to use in the command line when using a command, the the value is a path to the script that I want to run when calling the command.
So I started out making a project folder and initializing it just like any other npm project.
I installed some packages that I will be using with the various node cli tools such as yargs for option parsing, mkdirp for creating paths, ejs as a template engine, and marked to quickly parse markdown into html.