JSPM

@u-connect/environment

2.1.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q29661F
  • License MIT

Environment utilities

Package Exports

  • @u-connect/environment
  • @u-connect/environment/dist/cjs/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@u-connect/environment) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

environment npm version

Environment utilities

Description

This library provides utilties to detect environment for Browser, NodeJS and React-Native

Usage

import * as env from 'environment';

// true for NodeJS
env.isNode();

// true for React-Native
env.isReactNative();

// true for Browser
env.isBrowser();

License

MIT License