Package Exports
- which-runtime
- which-runtime/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (which-runtime) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
which-runtime
Detect if you are in Bare or Node and which os etc
npm install which-runtimeUsage
import {
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'License
Apache-2.0