Determine if the current runtime is server (Node.js) or browser. Usage var runtime = require('@yr/runtime'); if (runtime.isServer) { // Server specific code } else { // Browser specific code }