Problem This is a follow-on to my previous question: Enforcing set environment variables While learning more about JavaScript, node, and […]
Category: Node Js
Fetching user details, posts, and comments using promises in ExpressJS
Problem I’m creating an API service in NodeJS using Express (version 4) Framework. Created an MVC architecture for the same […]
Concurrent fire and forget async task queue
Problem I had to do a lot of IO stuff on my server running Node JS where I did not […]
Beginner Node.js app using Heroku w/ Mailchimp API
Problem I’d like some feedback on the readability and style of the following code. It’s a simple Node.js app that […]
Twitter bot to post game of thrones memes
Problem I created a twitter bot, that can parse a subreddit and post content from there to Twitter. I am […]
Calculate all possible combinations of an array of arrays or strings
Problem I’m using code adapted from this Stack Overflow question to calculate all possible combinations from an array, which may […]
Parallel computation to be merged, depending on single call
Problem Steps: Get AMOUNT from a call to API endpoint /a, e.g. AMOUNT == 5 (in the code it is […]
Making two sequential asynchronous requests using promises
Problem The following code is making two asynchronous requests to obtain the desired data. The second request needs to access […]
Recursive function to copy over an object with very specific constraints
Problem I totally suck at recursion. I have a function that works but it also looks horribly wrong. I would […]
Parsing HTML in Node.js with regex
Problem I’m looking for an effective way to parse html content in node.JS. The objective is to extract data from […]