Back to Categories
JavaScript
Page 1 of 2
Articles that cover JavaScript and TypeScript development topics. This can be examples of how to solve problems using JavaScript or posts describing new Node.js modules I've published that are written in JavaScript or TypeScript. This page lists all posts in the category, in reverse chronological order.
Note: An AI Generated pill displayed in the list below indicates that the post description displayed on the page was generated from the post content using Generative AI (GenAI). The post content itself was written by a human (me).
Certificate to Arduino Command-line
Posted Friday, January 24, 2025 at 06:59 AM in Arduino, JavaScript, Internet of Things (IoT)Before I created the web application described in Automated Public Cert to Arduino Header Conversion, I started with a simple node.js command-line utility. I like command-line tools and starting with the Node version made sense to me. I switched to the web app version once I realized that most people who needed to do the certificate conversion to Arduino wouldn't have node installed on their development systems.
Timezone Fix for the Eleventy Stats Plugin
Posted Sunday, January 12, 2025 at 08:10 AM in Eleventy, JavaScriptAI Generated I noticed a bug in my Eleventy Plugin Post Statistics where posts published on January 1st were counted as being published on December 31st of the previous year. The issue stemmed from the plugin converting dates to UTC. To fix it, I added the timezone offset to the date values, converting them to the local time zone. I also had to adjust some code to resolve a TypeScript compiler error.
Eleventy Packages Page
Posted Saturday, January 4, 2025 at 09:07 AM in Eleventy, JavaScript, Static Site GeneratorsDescribes an Eleventy global data file I created that allows me to easily display a list of my npm packages on this site.
Eleventy 3 Upgrade Fixed
Posted Monday, December 30, 2024 at 11:05 AM in Eleventy, JavaScript, Static Site GeneratorsIn my Eleventy 3 Migration post yesterday, I described a process I used to migrate several Eleventy sites from V2 to V3. As part of that process, I was able to skip some important upgrade/migration steps because my development and deployment environments run Node.js version 22. Specifically, even though Eleventy 3 expects all modules to use ESM, a feature in Node.js 22 allowed my sites to build and deploy successfully without it. This post describes how I completed the successfully migration to ESM.
Displaying Eleventy Version On A Page
Posted Sunday, December 29, 2024 at 11:25 AM in Eleventy, JavaScript, Static Site GeneratorsDescribes how I display Eleventy build information on this site and how I had to change the process for Eleventy 3.0.
Eleventy 3 Upgrade
Posted Sunday, December 29, 2024 at 10:11 AM in Eleventy, JavaScript, Static Site GeneratorsI run quite a few sites on Eleventy; you can see the complete list on this site's Sites area. The Eleventy team released version 3.0 a while back and I finally got around to upgrading some of the sites. This post describes the process I used to migrate a couple of the sites.
Conditional Prompting Using Prompts
Posted Sunday, November 10, 2024 at 12:18 PM in Node.js, JavaScriptOver the years, I published a variety of Node.js modules and CLIs; the CLIs because I wanted to automate some operation I needed to make easily repeatable. For my CLIs, I started building them using command-line arguments, but I quickly forgot the arguments and order. Next I used configuration files, but then that tied me into a specific file or set of files for different operations. Eventually I started using an npm module called prompts that allows me to prompt for all of the configuration options either as the only input into the program or for writing the settings to a default configuration file. Yesterday I spent some time figuring out how to do conditional prompts, so that's the topic of this post.
Added Timestamp to Posts
Posted Sunday, April 7, 2024 at 07:08 PM in Eleventy, JavaScriptIn my previous post, I described how I updated my Eleventy New Post utility to add a
timestamp
property to new post's front matter. With that in place, I updated the site's Home Page, Articles Page and at the top of every Post. I encountered a little issue with that implementation related to time zones, so I decided to dig deeper into the implementation on this site and how I solved the time zone issue.Building a documentation Site Using Docusaurus
Posted March 30, 2024 in Static Site Generators, JavaScriptAI Generated I recently built a website for my software company and needed a place to publish product documentation. After exploring different options, I settled on using Docusaurus, a documentation static site generator. This post describes my first impressions of the platform.
Eleventy Navigation Set URL to First Item in Collection
Posted March 24, 2024 in Eleventy, JavaScriptI'm building a new web site for a software company I created using 11ty, and one of the things I want to do in this site is have the Products menu item open the product page for the first product in a sorted list of product pages.
Updated Eleventy Future Post Plugin
Posted January 11, 2024 in Eleventy, JavaScriptIn yesterday's post, I announced my Future Post plugin for Eleventy and mentioned that I didn't configure the plugin so it would render posts with a future date when testing the site. Since then I found some time to look at the implementation for that and decided to go ahead and add it to version 0.0.2 which I published today.
Hiding Future Posts in Eleventy
Posted January 10, 2024 in Eleventy, JavaScript, Static Site GeneratorsDescribes how to hide posts with a future publishing date in an Eleventy site.
Google Cloud Multiple Functions in a Project
Posted January 8, 2024 in Cloud Development, JavaScript, Node.jsIn my previous post Coding Google Functions Using TypeScript I showed how to code Google Functions using TypeScript. Something else I wanted for my Google Cloud Functions project was to be able to manage multiple functions in a single GitHub project. This post describes how to do it.
Coding Google Functions Using TypeScript
Posted January 7, 2024 in Cloud Development, JavaScript, Node.jsDescribes how to code Google Cloud Platform Functions using TypeScript.
Eleventy File List Plugin
Posted December 27, 2023 in Eleventy, JavaScript, Static Site GeneratorsDescribes an Eleventy plugin I created that enables a site to display a list of downloadable files.
Execa Node Process Spawning
Posted December 26, 2023 in Node.js, JavaScriptThis post shares my thoughts on Execa, an older solution than zx but provides very similar capabilities. I covered both solutions in my All Things Open 2023 session.
Adding a GitHub Repository List to an Eleventy Site (part 2)
Posted December 23, 2023 in Eleventy, JavaScriptAn extension of the previous post that shows how to add a list of GitHub repositories to this site using authenticated access to the GitHub REST API.
Adding a GitHub Repository List to an Eleventy Site
Posted December 22, 2023 in Eleventy, JavaScriptI decided to add a list of GitHub repositories to this site; not because the site needs it, but because I wanted to learn how to do it. I built a quick and easy approach (with limitations) and this post describes how I did it.
Migrating from Cipher to Cipheriv
Posted December 19, 2023 in Node.js, JavaScriptI have a Firebase project that uses a Firebase function to generate a URL containing encrypted data and another function to decrypt the data when someone invokes the URL (opens it in a browser). The functions use the Node.js Crypto library to do the encrypting and decrypting and I noticed recently in the library's docs that the library's
createCipher
method was deprecated and I needed to migrate my project to usecreateCipheriv
instead. In this post, I demonstrate how I did it.zx for Simplified Node Process Spawning
Posted November 26, 2023 in Developer Tools, JavaScript, Node.jsA recap of a portion of my All Things Open 2023 presentation covering the `zx` project.
Page 1 of 2