npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

which-runtime

1.3.2

@mafintosh

npmHomeRepoSnykSocket
Downloads:1078666
$ npm install which-runtime
DailyWeeklyMonthlyYearly

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