@void0/platform
v1.3.0
Published
Detects if the current code is running on client or server side.
Downloads
1
Maintainers
Readme
@void0/platform
This package detects if the current code is running on client or server side..
Usage
- Install the package:
npm install --save @void0/platform
- Import the variables exported from the package:
import { isClient, isServer } from '@void0/platform'
Depending on the current platform, their value will be either true or false.