Posts

Nodejs - Quick Tips #3

Babel - Requiring ES2015 File from ES5

In the situation where you desire to use a ES5 file to refer to a ES2015 file, the on-the-fly compilation option of Babel can be one of the ways to do so.

This case might come up when you are intending to run an init file that you do not want to perform any Babel compilation, but you still want the ES5 file to serve as the entry point for your module.

Categories: #JavaScript
Tags: #NodeJs
Meteor - Quick Tips #1

Redirecting for Non-Logged-In Users

When an app has more than one URL and any other URL other than the /home URL is restricted for logged-in users, than this requireLogin function will direct users back to the home URL when the user is not logged in. This is assuming that the IronRouter package is used.

Categories: #JavaScript
Tags: #Meteorjs