How many more times will I google it… It’s time to prepare a URL parameters parser implementation that I can easily reuse.…
Browserify is a bundler that magically normalizes all your
npm requirements into something a browser can understand. This means that your whole application can be minified into just 1 script that you can include in a regular HTML page.
Let’s go straight to the point. Sometimes you need an
Array instead of a
for loop. Here are several ways to do it.
What if I tell you generating images is actually an easy task, and you can create a simple placehold.it clone with only a bunch of lines.…
Let’s start by creating an empty folder and initializing our
npm init. We will also include express to set up our application, express-validator to validate the form submission, and mustache (mustache-express) to render the form.
In this example we’ll see how to create an HTTP API with 3 main components: Signup, Login and a login-only route. Let’s start by setting up a new project and including Express for handling the routes, JSON Web Token to handle auto-expiring tokens, and bcrypt to encrypt user passwords. Initialize the new project in an empty folder. We’ll name the main file
index.mjs to utilize top level awaits and have import/export functionality.
In this example we’ll see how to utilize Nightmare, Xvfb and how to properly bootstrap the main application code in order to make a cross-platform HTML → PDF script.…