zap-base-dom-ready just translating (and testing) some old code to ES6, nothing to see here ;-) Install $ npm install zap-base-dom-ready Usage import ready from 'zap-base-dom-ready'; ready ready(() => { // .. });