Detect environments in JavaScript similar to the way Laravel does
github.com/whitneyit/detect-environment