@jswork/runtime-env

Runtime-env is a JS library for detecting environments like Web, WeChat MiniProgram, and JSSDK.