@yr/runtime
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

NPM Version

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
}

/@yr/runtime/

    Package Sidebar

    Install

    npm i @yr/runtime

    Weekly Downloads

    8

    Version

    3.0.0

    License

    MIT

    Unpacked Size

    26.4 kB

    Total Files

    15

    Last publish

    Collaborators

    • yr
    • saegrov