@miapp/env

1.0.7 • Public • Published

小程序工具 ~ env 各环境变量、条件判断

NPM包

@miapp/env

使用

  1. 安装 yarn

    npm install yarn -g
    
  2. 添加依赖

    yarn add @miapp/env
    
  3. 应用

    import { 
      UA,
      OS,
      osVersion,
      platform,
      //支付宝系列App
      isAPs,
      //淘宝系列App
      isTBs,
      //识别是否阿里小程序新容器
      isAriver,
      isAliApp,
      //天猫
      isTmall,
      //手淘
      isTaobao,
      //支付宝
      isAlipay,
      //飞猪
      isAlitrip,
      //高德
      isGaode,
      //口碑
      isKoubei,
      //闲鱼
      isFM,
      //UC
      isUC,
      //微博
      isWeibo,
      //微信
      isWeiXin,
      isWindVane,
      appVersion
    } from '@miapp/env';

Readme

Keywords

none

Package Sidebar

Install

npm i @miapp/env

Weekly Downloads

1

Version

1.0.7

License

MIT

Unpacked Size

3.53 kB

Total Files

3

Last publish

Collaborators

  • shaoyouqing
  • jackieyoho
  • lamo
  • kingback
  • kehanshi
  • f-loat
  • azure_jyx