package
Detect if you are in Bare or Node and which os etc
npm install which-runtimeGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Estimated unpacked size across 1 packages.
13.8 kB
Includes dependencies.
Detect if you are in Bare or Node and which os etc
npm install which-runtimeimport {
runtime, // bare, node, or browser
platform, // the platform string, ie darwin, win32, etc
arch, // which arch, arm64, ia32, x64 etc
isBrowser,
isBare,
isNode,
isLinux,
isWindows,
isMac,
isIOS,
isAndroid
} from 'which-runtime'Apache-2.0
davidmarkclements
huperekchuno@googlemail.com