Blogs

Changing or Combining …

If you’ve ever needed to easily switch between different .env files during local development this might be helpful. Recently I needed to find a way to switch between different environment files, .env, to change the location/values I was using for local commands. More specifically I needed to …

Update JSON File with …

In this (very) short post I’ll show you a quick way to make simple edits to a .json file from the command line or using bash and NodeJS. Let’s say we want to update a value in a data.json file. With NodeJS installed on our system we can leverage the -p or --print command to evaluate a …

Sending an Array of …

Sometimes you might need to send multiple values for a given parameter in a GET request to your API. For example, you have a GET /users API endpoint and you want to lookup information on several users at once. You might want your query to look something like: /users?username=bob;sally;john. This can …