Some random notes about issues encountered when developing with Astro for the first time, and fixes I came up with.
An introductory guide to the different parts of Google Lighthouse, how to use it via CLI and NodeJS, and strategies for customizing its configuration.
Approaches for using CSURF for CSRF protection, but only on certain routes, and some with the ability to extract the generated token from the request.
CLI and module for packing files into directories or archives, based on ignorelist files and glob patterns. Built with TypeScript and NodeJS, and highly configurable.
NodeJS-powered automation that extracts all the tutorial docs out of the Svelte repo and combines them into a single formatted HTML document.
A short guide on how to get and use local binary paths for packages installed through NPM or Yarn, under node_modules, for multiple OSes.
How to launch a shell with NodeJS, keep it open, and pipe commands in while capturing output. Also, a discussion on how this impacts performance.
How to disable Chrome's default stdout log messages that come through Selenium Webdriver on NodeJS, such as the "DevTools listening on ws..." message.
CLI and module tool - static-build-cache package - built to help avoid redundant builds for static website projects.
How and why to use OS temporary directories to create files outside your source code directory for scripted tests.
Simple NPM script for detecting whether your code is executing inside of Glitch or not. Detects based on environmental variables and/or hosting info.
How to setup NodeJS based tasks in Windows Task Scheduler, with details for both Yarn and NPM entries. Also explores comparison with CRON and alternatives.
An adventure in trying to write a Gatsby remark plugin to wrap specific markdown blocks (aka MD AST nodes) in custom classed div HTML elements.
Simple example showing how to use http-proxy-middleware with a NodeJS powered Google Cloud Function.
How to test that an array does not include any members of another array with Chai JS and Mocha framework. Explains workaround and why certain tests don't work.
Tips and tricks on sharing global variable values, inject values, capturing variables, and general NodeJS workarounds for if you can't edit a file.
Figuring out why stat is returning blank birthtimes on Unix/Linux and how NodeJS got around this with an update to fs.stat through its libuv dependency.
Automated file timestamp extractor: git-date-extractor NPM package and CLI tool. The tool lets you retrieve file creation and modification dates based on Git history.
Solutions and tips on how to use "created" and "last updated" date and timestamps with Gatsby and Git, including a fully automated approach with git hooks.
A beginner attempt at creating automatic folder directory listing index pages within Gatsby, using createPages, GraphQL, MarkdownRemark and allDirectory.
Some tips on using Fabric.js as a dependency in your project, without requiring that other devs have Cairo installed in order to build.
Reusable Node script that can be passed CLI arguments for a remote file to be downloaded, and optionally integrity checked against a known file hash.
Some simple ways to execute NodeJS code through the command line interface, as well as pipe output in and out.