Yarn on the Rise

Yarn on the Rise

Titans such as Facebook and Google have teamed up to make a faster and better package manager in comparison to npm. It is called Yarn. Though, don’t be alarmed this package management tool takes packages from NpmJS and Bower registries supporting parallel dependency installations.

read more

Quick Introduction to Hapi

Quick Introduction to Hapi

Just a disclaimer before we start, I have worked with Express and will definitely not say it is a better framework but just a different one. Hapi.js is a web framework for rapidly building web applications, REST API and services.

Hapi was created around the idea that configuration is better than code, that business logic must be isolated from the transport later. – Erin Hammer

Since, it is quite similar to Express, let us compare the syntax between Express and Hapi for some common functionality that the frameworks will be used to implement.

read more

How to Automate an npm install if package.json is Modified using Git Hooks

How to Automate an npm install if package.json is Modified using Git Hooks

Currently, most (if not all) of my projects contain a package.json which is frequently modified to manage my dependencies in the project. But when collaborating we usually have to checked with every git pull to see if the package.json has been changed, if so we ensure that that we do a npm install. This in most cases is a bottleneck and frequently leads to errors.

read more

Permission API

Permission API

The browser by itself packs alot of powerful API functionalities. But most of the time these APIs that are provided can leak sensitive user information to the public. Think about geolocation, audio/video access (get camera access) etc and you’ll get an idea of the insecurities that it packs. Hence, there have been initiatives to make the use of these APIs more secure (I recently faced a problem at my company when chrome decided to deprecate the use of “Powerful Features” on insure origins). But most of the time the user has to prompted to gain access to these APIs. Actually, it seems to be not so.

read more

Sticky Footer

Sticky Footer

When a footer is placed at the end of the body, we usually tend to have an issue with it when there isn’t much content in the body. This leaves room for alot of whitepace below the footer. The quickest way to resolve this issue is through the use of flexbox, which is an advanced CSS3 tool for building adaptive layouts.

read more