@void0/platform
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

@void0/platform

This package detects if the current code is running on client or server side..

Usage

  1. Install the package:
npm install --save @void0/platform
  1. 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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.3.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.3.0
    1
  • 1.2.1
    0
  • 1.1.0
    0

Package Sidebar

Install

npm i @void0/platform

Weekly Downloads

1

Version

1.3.0

License

ISC

Unpacked Size

54.5 kB

Total Files

36

Last publish

Collaborators

  • drixsonic