# snail-env

> 网易蜗牛读书官网浏览器环境检测工具方法

Latest version **1.4.0** (published 2019-07-03) · ISC license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.0 |
| Published | 2019-07-03 |
| First published | 2018-07-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | hzliushichuan@corp.netease.com |
| Maintainers | liushichuan |

## Links

- npm: https://www.npmjs.com/package/snail-env
- npm.io page: https://npm.io/package/snail-env

## Recent versions

- 1.4.0 (latest) — 2019-07-03
- 1.3.3 — 2019-01-24
- 1.3.2 — 2018-12-21
- 1.3.1 — 2018-12-11
- 1.3.0 — 2018-11-08
- 1.2.1 — 2018-11-08
- 1.2.0 — 2018-11-08
- 1.1.4 — 2018-08-09
- 1.1.3 — 2018-07-20
- 1.1.2 — 2018-07-20

## README

# 蜗牛读书官网当前网页所处环境判断方法

## 用法

###安装
```bash
    npm i snail-env --save
```
或者
```bash
    yarn add snail-env
```
###使用
```javascript
    import getEnvInfo from 'snail-env'
    const envInfo = getEnvInfo()
    console.log(envInfo.env, envInfo.pro)
```
- env字段为当前网页的环境 
    - dev 开发环境
    - test 测试服环境
    - pre 预发布环境
    - online 线上环境

- pro字段为当前环境所需访问的jsonp数据协议地址

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