It’s a collection of templates to help you kick-start your next vanilla JS project. It includes three patterns for scoping your code:
- The Immediately Invoked Function Expression (or IIFE)
- The Revealing Module Pattern
- The Universal Module Definition (or UMD)
Within the Revealing Module Pattern and UMD, you can also decide to allow users of your plugin to pass in their own options, and optionally use a constructor pattern to allow multiple instances of a script to run at once.