Detect your environment: Node.js, Browser, and CommonJS.