Skip to content

Env

Category
Last Changed
8月15日16时0分

Check if the current environment.

Usage

osVersion

ts
import { osVersion } from 'comuse-shared'

const version = osVersion()
console.log(version)

isClient

ts
import { isClient } from 'comuse-shared'

if (isClient)
  console.log('isClient')

isAlipay

ts
import { isAlipay } from 'comuse-shared'

if (isAlipay())
  console.log('Alipay')

isWechat

ts
import { isWechat } from 'comuse-shared'

if (isWechat())
  console.log('Wechat')

Source

SourceDocs

Changelog

v4.1.2 on 8/15/2025
d074e - feat: add function getQueryParam

Released under the MIT License.