1.0.1 • Published 5 years ago
is-useragent-weixin v1.0.1
is-useragent-weixin
Install
npm i is-useragent-weixin
Usage
import isUserAgentWeixin from 'is-useragent-weixin'
const ua = navigator.userAgent // get UA string from navigator or somewhere else
const isWeixin = isUserAgentWeixin(ua)
console.log(isWeixin) // outputs whether the browser is weixin