3.0.0 • Published 6 years ago
@yr/runtime v3.0.0
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
}
Determine if the current runtime is server (Node.js) or browser.
var runtime = require('@yr/runtime');
if (runtime.isServer) {
// Server specific code
} else {
// Browser specific code
}