Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@miapp/env

Package Overview
Dependencies
Maintainers
7
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@miapp/env

各环境变量、条件判断,淘宝、支付宝等app识别

  • 1.0.7
  • latest
  • npm
  • Socket score

Version published
Maintainers
7
Created
Source

小程序工具 ~ 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';
    

FAQs

Package last updated on 14 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc