@doneup/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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i @doneup/environment

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

70.4 kB

Total Files

29

Last publish

Collaborators

  • gregb-du