which-runtime
Detect if you are in Bare or Node and which os etc
Last updated 6 months ago by mafintosh .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ npm install which-runtime 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.4.0                                ...           latest (6 months ago)

9 Versions

  • 1.4.0                                ...           6 months ago
  • 1.3.2                                ...           a year ago
  • 1.3.1                                ...           a year ago
  • 1.3.0                                ...           2 years ago
  • 1.2.1                                ...           2 years ago
  • 1.2.0                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
  • 0.0.0                                ...           3 years ago
Downloads
Total 29
Today 0
This Week 0
This Month 10
Last Day 0
Last Week 1
Last Month 9
Dependencies (0)
None
Dev Dependencies (4)

© 2010 - cnpmjs.org x YWFE | Home | YWFE