Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

egg-extend-ua

1.0.3 • Public • Published

egg UA扩展

plugin.js中配置

exports.useragent = {
  enable: true,
  package: 'egg-extend-ua'
};

ctx公开对象

this.ctx.isMobile;
this.ctx.isIOS;
this.ctx.isAndroid;

Install

npm i egg-extend-ua

DownloadsWeekly Downloads

12

Version

1.0.3

License

MIT

Unpacked Size

4.06 kB

Total Files

5

Last publish

Collaborators

  • avatar