npm.io
1.4.0 • Published 2 months ago

which-runtime

Licence
Apache-2.0
Version
1.4.0
Deps
0
Size
14 kB
Vulns
0
Weekly
0
Stars
7

which-runtime

Detect if you are in Bare or Node and which os etc

npm install which-runtime

Usage

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