which-runtime
Detect if you are in Bare or Node and which os etc
Last updated 4 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.2.1                                ...           latest (4 months ago)

5 Versions

  • 1.2.1                                ...           4 months ago
  • 1.2.0                                ...           10 months ago
  • 1.1.0                                ...           10 months ago
  • 1.0.0                                ...           10 months ago
  • 0.0.0                                ...           10 months ago
Maintainers (1)
Downloads
Total 1
Today 1
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (1)
Dependents (1)

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