How to Modify URL Query Parameters in Node.js

Posted on Leave a commentPosted in Programming

In my previous post, I suggested that string concatenation is an unreliable way to modify URL queries. Let’s explore this idea a little further (or, just skip to the tl;dr if you just want the solution). First, let’s write a function that appends a URL query parameter via string concatenation:

Now, let’s throw some […]

Babel 6 won’t work, and I hate everything!!!

Posted on Leave a commentPosted in Programming

So, you just installed the latest version of Babel, and you transpiled your ES6 code into ES5. At least, that’s what you thought. But then, your code exploded at runtime, and your dog left the room disgust. What could have possibly gone wrong? Dismayed, you glanced at the transpiled output to see the following:

[…]