Node.js Articles
Less than a week ago, Node.js 20 release. While it’s not the current LTS release, it will be this coming October 2023. You’re probably wondering why this post is about Ubuntu 20.04 LTS considering there is a newer LTS release and multiple non-LTS releases that I could be targeting. Kinda
[…]
Node.js has included a persistent history with it’s REPL (real-eval-print loop) for quite some time now. It’s a fantastic quality of life feature, and it even supports reverse-i-search. The other day, I got to wondering, where the heck does this history even live? Turns out, it’s just living in a
[…]
Buffers are powerful stuff. They make it easy to work with raw binary data, and streaming data can leverage them. Many third-party Node.js dependencies leverage buffers in one way or another, especially libraries dealing with data transport. So what the heck are we supposed to do with a Buffer when
[…]
Periodically, I check my site analytics to see which posts are getting the most traffic. It never ceases to amaze me at how many posts documenting older versions of Ubuntu, as far back as 16.04 LTS, still receive regular traffic. While they may not be evergreen forever, there’s something to
[…]
Parameter Store only supports a limited number of character for the parameter name. As per the error message you’re presented with, Only a mix of letters, numbers and the following 3 symbols .-_ are allowed. What that error fails to mention is that you can actually use a fourth symbol,
[…]
Parameter Store has slowly become one of my favorite things about AWS. It makes it easy to share things between ECS tasks and services, and Lambdas. The parameters can be references inside of a CodeBuild buildspec file, and it’s all language agnostic, which is handy if you are running different
[…]
Recently, while attempting to build a Docker container, I ran into a bit of a dilemma. Upon running npm install --production I was greeted with this less than ideal error message: > @company/[email protected] prepare > husky install sh: husky: command not found Well of course husky isn’t installed, as it’s
[…]
Parameter Store, part of AWS Systems Manager gives you a quick and easy way to store parameters that you’d like to use in your applications. By selecting the SecureString type, you get the added bonus of encryption for you most secret parameters. By default, when you fetch a SecureString type
[…]
Last week we discussed converting CSV to JSON in JavaScript. This week, we’re going to talk about going in the opposite direction, converting JSON back to CSV. Similar to last week, we’re going to use the immensely popular papaparse library. As it turns out, even though it’s touted as the
[…]
Parsing CSV data isn’t as easy as splitting the string up into individual lines, then splitting it by the delimited (in this case commas). Some of the values may have quotes around them, sometimes the values themselves have line breaks. Then there’s the potential that the data itself is malformed.
[…]
It’s that time of year again, for not just a new version of Node.js, but for a new version of Ubuntu as well! Sadly though, my preferred method of installing Node.js on Ubuntu isn’t quite ready for Ubuntu 22.04 LTS. That’s okay though, I don’t like to upgrade to a
[…]
I’ved used Axios a ton, but I’ve only ever used it to make AJAX requests. In fact, I don’t ever remember a time when I’ve needed to download a file and save it to disk in Node.js. That changed recently with a new side gig I’ve been helping out with.
[…]
As All Hallows Eve approaches, we are greeted with a brand new “current” release of Node.js, version 17. For those out there are aren’t aware of how Node.js releases work, even numbered releases eventually get promoted to long-term support (LTS) status, while odd numbered releases, will not. They are effectively
[…]
While I’m a pretty big fan of TypeScript, there’s some stuff that drives me up a wall. One of those things recently came to light during the release of TypeScript 4.4 on a Friday afternoon. So it was nearing both end of day and end of week, and we were
[…]
As the meme goes, the object with the largest mass in our universe is the node_modules directory. Generally speaking, storage is cheap, and while an unkept set of dependencies can be quite messy (and often times a security hazard), the size of your node_modules directory tends to not be of
[…]
Ubuntu tends to drop a new version of their April release shortly after a new version of Node.js drops. Every other year, this Ubuntu release is a long-term support release, which has a longer shelf life in terms of support and maintenance compared to their interim releases. True to form
[…]
As much as I love to sling code, I love that we live in a world where you can stand on the shoulders of giants and easily leverage other people’s hard work by way of Open Source libraries. Simply referred to as “dependencies”, these little code gems can save a
[…]
While looking into some deployment issues recently, I ran into some logic that was in dire need of being refactored. The logic in the build process was installing all dependencies with npm, then removing the node_modules directory, just to install the production dependencies again. Yes, you read that right, the
[…]
Recently, while working on a new project, I needed to create a series of nested directories. From the command-line, it’s easy enough, just pass -p to mkdir and it will create all of the parent directories automatically. With modern versions of Node.js, specifically 10 and above, you can achieve the
[…]
For the most part, I do the majority of my debugging with Node.js / JavaScript’s console.log(). It’s quick and dirty but it gets me what I’m looking for. The exception being when I am working with larger objects, specifically any object that is nested three or more levels deep. Here’s
[…]
New Ubuntu and Node.js versions released recently. While neither is a long-term service (LTS) release, they still represent the best that both parties have to offer. Even though Ubuntu 20.10 is here, it’s still shipping with an older version of Node.js, v12.x to be exact. If you’re like me, you
[…]
Generally speaking, I don’t use dots (periods, full stops, whatever else they may be called) in the URI for a website. That was, until I made the . an allowable character for user names on one of my projects. Allowing the character was a big deal at all with Express.js
[…]
Big week for both the Node.js universe and the Ubuntu universe. Node.js version 14.x dropped on Tuesday the 21st with Ubuntu 20.04 LTS coming in hot on Thursday the 23rd. Both releases are important because they are both long term support releases. Node.js v14.x isn’t currently LTS, but it will
[…]
The latest and greatest long term service release of Ubuntu is here and there’s no reason that you shouldn’t get to enjoy the latest and greatest (soon to be) long term service release of Node.js as well. Follow these quick and easy steps to install Node.js v14.x on your shiney
[…]
Even though Ubuntu 20.04 LTS is right around the corner, that doesn’t mean you’re going to jump right on it. If you’re waiting for that first point release but still want to harness the power of the latest and greatest version of Node.js, you can follow these quick and easy
[…]