Month:

June 2018

Styling Output from Command-line Node.js Scripts with Chalk

The command-line is powerful, but oftentimes it’s bland and boring. Dark text on a light background, light text on a dark background. It can be seriously bleak. Fortunately it doesn’t have to be a monochromatic wasteland. With the addition of chalk to your project, you can easily style and colorize script output, providing not just …
Read more

Handling Command-line Arguments in Node.js Scripts

If JavaScript is your language of choice, then you’ve probably written your fair share of command-line scripts that run on Node.js. Oftentimes you can get away with writing simple one-off scripts that only serve a single purpose. Other times you may want things to be more customizable and flexible and that’s where being able to …
Read more

Uploading Images to a Node.js Backend Using Multer and Express

File uploads from the frontend are pretty much useless without an API on the backend to receive them and save them to a database, so here we are! This post of ours goes over our Vue.js frontend setup. ? Recommended course ⤵ Wes Bos’ Learn Node Installation First things first, prepare your Node.js project by …
Read more