ES6+ first
Converted the whole module to ES6+ and added tests using vanilla-test as well as hooking up to Travis CI. The module will work in both node and standards-compliant browsers as is. If you need support for older browsers you can either use v4.x or transpile the module.