2022-11-28
|~1 min read
|125 words
Previously, I wrote about using to pretty print objects. Unfortunately, there’s a limitation: objects with circular references. This is…
2022-11-28
|~2 min read
|310 words
I was working on updating my blog and I wanted to have excerpts. Unfortunately, the excerpts were coming in with a lot of additional context…
2022-11-28
|~1 min read
|125 words
When using Node, it’s often necessary to know if the path you’re referencing is a file or directory. If you don’t handle these cases, it’s…
2022-11-28
|~1 min read
|187 words
Quick and dirty notes on getting a node app up and running on Heroku: Download the CLI Login to Heroku Push your code up to Heroku — you can…
2022-11-28
|~1 min read
|93 words
is middleware for servers in Node. It will automatically parse the data in a response or request and can be “used” by the server as desired…
2022-11-28
|~2 min read
|229 words
This is all about how to get the variables from a into a node script using source with If you don’t want to use , however, you can inject…
2022-11-28
|~3 min read
|450 words
Kent C Dodds has a walkthrough of getting an Express App up and running with some context for why he made the decisions. https://kentcdodds…
2022-11-28
|~2 min read
|347 words
I haven’t had many opportunities to play around with building CLIs or reading data from with Node in a while, so today I decided to play…
2022-11-28
|~5 min read
|915 words
I’ve been writing recently about setting up projects with Typescript as well as Babel and ESLint. Those explorations, however, we all in…
2022-11-28
|~1 min read
|185 words
In learning about different approaches to loading environment variables in Node projects, I came across an option for Node that can require…
2022-11-28
|~1 min read
|133 words
In Node, the module provides platform agnostic ways to interrogate the operating system. For example, the method: Returns the string path…
2022-11-28
|~2 min read
|311 words
There are a number of ways to check if a file or directory exists in Node, but one of the simplest is the synchronous method on the module…
2022-11-28
|~3 min read
|408 words
I’ve been exploring Node CLIs lately, which means I needed a better understanding of how all of the wonderful CLIs I use daily work…
2022-11-28
|~1 min read
|189 words
Yesterday, when I was writing about using Node to create ASCII art, there was a detail I overlooked - the number. As a reminder, the…
2022-11-28
|~1 min read
|148 words
I was digging through the source code of the Serverless CLI recently when I came across this little nugget that I thought was really cool…
2022-11-28
|~4 min read
|751 words
When making network requests with Javascript there are a number of options. One of my favorites is fetch, native and promise based it…
2022-11-28
|~2 min read
|341 words
Recently I was working on a project structured as a mono repo - smaller projects within a larger maintained their own dependencies. I wanted…
2022-11-28
|~2 min read
|277 words
In learning more about password management and salting/hashing (which I wrote about here) - I found bcrypt (which I wrote about using here…
2022-11-28
|~14 min read
|2678 words
When it comes to properly managing passwords, I think of breakfast. Okay, that’s not true. I always think of breakfast. But it is true that…
2022-11-28
|~3 min read
|555 words
Turns out Node has for exactly this purpose. From the docs: Asynchronous readdir(3). Reads the contents of a directory. The callback gets…
2022-11-28
|~1 min read
|127 words
The following is a simple that I’ve found helpful when writing simple node applications. I’ve found myself copying and pasting it between…
2022-11-28
|~2 min read
|234 words
This is not going to be a deep dive into Node’s environmental variables, but rather a quick look at how you may use environmental variables…
2022-11-28
|~2 min read
|349 words
In node projects, many times a package will have its own CLI. React, Storybook, Typescript and Gatsby all have their own for example. How do…
2022-11-28
|~3 min read
|487 words
Another entry in my Package Discovery series. Today, I’m looking at logging with ! Two steps to easily generate more readable logs: Install…
2022-11-28
|~3 min read
|590 words
When I was first learning about Javascript (so, several months ago), I found this article from Douglas Crockford about private variables and…
2022-11-28
|~2 min read
|356 words
I find myself frequently looking up which version of Node and npm I’m running. Today, a colleague showed me how to get it and lots of…
2022-11-28
|~2 min read
|260 words
By default the returns everything from PostgreSQL as a string. Brian Carlson, the author of , provides a solution for fixing this with his…
2022-11-28
|~2 min read
|245 words
As apps grow, the number of routes can balloon. More than that, you may need custom middleware for certain routes and not others - whether…
2022-11-28
|~2 min read
|347 words
Middleware is software that sits between two other pieces of software and can augment, change, modify, or even respond to data it receives…
2022-11-28
|~1 min read
|119 words
One of the challenges of using to monitor changes to a node server and restart is if some changes get cached. I came across rimraf in a…
2022-11-28
|~2 min read
|217 words
If you’re running a node application and you want to debug, but don’t want to use the debugger in your text editor, perhaps your text editor…
2022-11-28
|~4 min read
|681 words
When things that used to work break, I want to understand why. That was the situation recently with , the reliable workhorse behind node…
2022-11-28
|~3 min read
|535 words
It’s not uncommon for larger apps to exceed the default memory allocated to Node. When this happens, you’ll get an errory alerting you that…
2022-11-28
|~5 min read
|934 words
I’ve developed a peculiar habit. I knew I’d developed it, but didn’t know it was peculiar until my lead asked me about it this morning. When…
2022-11-28
|~2 min read
|374 words
In order to understand , part of the Node API, we must first understand its context. Namely, the module and how it fits within the realm of…
2022-11-28
|~5 min read
|917 words
In an effort to learn React, I pulled up React’s introductory tutorial. Almost immediately I hit turbulence. I was in the setup of the…