# nuke-env

> 环境判断

Latest version **2.3.12** (published 2019-09-26) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install nuke-env
pnpm add nuke-env
yarn add nuke-env
bun add nuke-env
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.3.12 |
| Published | 2019-09-26 |
| First published | 2016-11-09 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 53.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | doub |
| Maintainers | doub, fnatic, leanhunter |
| Keywords | nuke, env |

## Links

- npm: https://www.npmjs.com/package/nuke-env
- Repository: git@gitlab.alibaba-inc.com:nuke/env
- npm.io page: https://npm.io/package/nuke-env

## 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

- 2.3.12 (latest) — 2019-09-26
- 2.1.3 (beta) — 2018-08-15
- 2.3.11 — 2019-09-26
- 2.3.10 — 2019-09-26
- 2.3.9 — 2019-09-26
- 2.3.8 — 2019-09-25
- 2.3.7 — 2019-07-24
- 2.3.6 — 2019-07-19
- 2.3.5 — 2019-07-02
- 2.3.4 — 2019-05-10
- 2.3.3 — 2019-04-28
- 2.3.2 — 2019-01-15
- 2.3.1 — 2019-01-15
- 2.3.0 — 2018-11-14
- 0.3.6 — 2018-10-25
- … 73 more at https://npm.io/package/nuke-env/versions

## README

# Env

- category: API
- chinese: 环境判断
- type: API 能力

---

## 设计思路

用于获取当前的运行环境信息，如客户端名称，weex 或 web，设备尺寸信息等。

## 如何使用

```
const { isWeex, isWeb, appInfo, deviceWidth, deviceHeight, scale } = Env;
```

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