Socket
Socket
Sign inDemoInstall

universal-env

Package Overview
Dependencies
Maintainers
4
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

universal-env

Judge runtime environment


Version published
Weekly downloads
2.3K
decreased by-12.47%
Maintainers
4
Weekly downloads
 
Created
Source

universal-env npm

Judge runtime environment

Support

browser weex miniApp

Install

$ npm install universal-env --save

Usage

import { isWeex, isWeb, isMiniApp, isReactNative, isNode } from 'universal-env';

APIS

isWeex: boolean

Checks if environment is a weex environment.

isWeb: boolean

Checks if environment is a web environment.

isMiniApp: boolean

Checks if environment is a mini app environment.

isReactNative: boolean

Checks if environment is a React Native environment.

isNode: boolean

Checks if environment is a Node.js environment.

Keywords

FAQs

Package last updated on 18 Jun 2019

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