npm install happy-cua --save
or
yarn add happy-cua
UA.isIOS(ctx.headers['user-agent']);
UA.getIOSVersion(ctx.headers['user-agent']);
UA.isAndroid(ctx.headers['user-agent']);
UA.getAndroidVersion(ctx.headers['user-agent']);
UA.isWeixin(ctx.headers['user-agent']);
UA.isAlipay(ctx.headers['user-agent']);
UA.isQQ(ctx.headers['user-agent']);
UA.isIPad(ctx.headers['user-agent']);
UA.isSafari(ctx.headers['user-agent']);
UA.getSafariVersion(ctx.headers['user-agent']);
UA.getFullSafariVersion(ctx.headers['user-agent']);
UA.isChrome(ctx.headers['user-agent']);
UA.getChromeVersion(ctx.headers['user-agent']);
UA.getFullChromeVersion(ctx.headers['user-agent']);