# @pedrouid/environment

> Environment utilities

Latest version **1.0.1** (published 2021-05-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install @pedrouid/environment
pnpm add @pedrouid/environment
yarn add @pedrouid/environment
bun add @pedrouid/environment
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2021-05-03 |
| First published | 2021-05-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 72.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Pedro Gomes |
| Maintainers | pedrouid |
| Keywords | env, environment, utils, browser, node, react-native |

## Links

- npm: https://www.npmjs.com/package/@pedrouid/environment
- Repository: https://github.com/pedrouid/environment
- Issues: https://github.com/pedrouid/environment/issues
- npm.io page: https://npm.io/package/@pedrouid/environment

## Alternatives

- [replicas-cli](https://npm.io/package/replicas-cli.md) — 3.0K weekly downloads
- [env-contract](https://npm.io/package/env-contract.md) — 133 weekly downloads
- [@openveo/api](https://npm.io/package/@openveo/api.md) — 61 weekly downloads
- [@ryniaubenpm2/cumque-error-reiciendis](https://npm.io/package/@ryniaubenpm2/cumque-error-reiciendis.md) — 54 weekly downloads
- [ts-global-type-extra](https://npm.io/package/ts-global-type-extra.md) — 11 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2021-05-03
- 1.0.0 — 2021-05-03

## README

# environment [![npm version](https://badge.fury.io/js/%40pedrouid%2Fenvironment.svg)](https://badge.fury.io/js/%40pedrouid%2Fenvironment)

Environment utilities

## Description

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

## Usage

```typescript
import * as env from 'environment';

// true for NodeJS
env.isNode();

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

// true for Browser
env.isBrowser();
```

## License

[MIT License](LICENSE.md)

---
_Source: https://npm.io/package/@pedrouid/environment · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
