@pedrouid/environment
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i @pedrouid/environment

Weekly Downloads

54,799

Version

1.0.1

License

MIT

Unpacked Size

74 kB

Total Files

21

Last publish

Collaborators

  • pedrouid