Flatlogic Bot c2aa0f3687 V5
2026-02-16 07:39:54 +00:00

30 lines
407 B
Markdown

# which-runtime
Detect if you are in Bare or Node and which os etc
```
npm install which-runtime
```
## Usage
``` js
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