UNPKG

perfect-logger

Version:

A zero-dependency, isomorphic logger for Node.js and Browsers with plugin support.

12 lines (11 loc) 421 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isBrowser = exports.isNode = void 0; const isNode = () => { return typeof process !== 'undefined' && process.versions != null && process.versions.node != null; }; exports.isNode = isNode; const isBrowser = () => { return typeof window !== 'undefined' && typeof window.document !== 'undefined'; }; exports.isBrowser = isBrowser;