Create a Globally Available Custom Pipe in Angular 2

What's pipe in Angular 2 and how can you create your own custom pipe and make it available application wide (globally)? Read on.