# @mudas/env

> A plugin for environment

Latest version **0.0.5** (published 2021-06-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @mudas/env
pnpm add @mudas/env
yarn add @mudas/env
bun add @mudas/env
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2021-06-24 |
| First published | 2020-04-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 27.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | mudas |
| Maintainers | mudas |
| Keywords | env, user-agent |

## Links

- npm: https://www.npmjs.com/package/@mudas/env
- Repository: https://github.com/aosnow/env
- Issues: https://github.com/aosnow/env/issues
- npm.io page: https://npm.io/package/@mudas/env

## Dependencies (1)

- [fsevents](https://npm.io/package/fsevents.md) *

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

- 0.0.5 (latest) — 2021-06-24
- 0.0.4 — 2021-03-15
- 0.0.3 — 2021-03-15
- 0.0.2 — 2020-04-20
- 0.0.1 — 2020-04-07

## README

# env
[![npm version](https://img.shields.io/npm/v/@mudas/env.svg)](https://www.npmjs.org/package/@mudas/env)

> A plugin that supports Vue to dispatch global events.

## Setup
install：
```npm
npm i @mudas/env -S
```

You need to add configuration for vue-cli to correctly translate the es module in node_modules:
```js
// vue.config.js:
module.exports = {
    transpileDependencies: [
      '@mudas/*' // all of node_module for '@mudas'
    ]
}
```


### Usage

```js
import { parsingUserAgentEnv, parsingAppletEnv, parsingURLParams } from '@mudas/env';

// Applet ENV
parsingApplet({ ...parsingUserAgent(), ...parsingURLParams() }).then((data) => {
    // ... return types/EnvHolderType & { wechatApplet:boolean, alipayApplet:boolean }
});

```

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