# @ewtd/eutils

> EUtils -- Ewt front end generic methods library!

Latest version **1.0.12** (published 2024-08-29) · ISC license · 0 weekly downloads

## Install

```sh
npm install @ewtd/eutils
pnpm add @ewtd/eutils
yarn add @ewtd/eutils
bun add @ewtd/eutils
```

## 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.0.12 |
| Published | 2024-08-29 |
| First published | 2021-04-07 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 63.4 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | EUtils_Group |
| Maintainers | tangbei, fansolc, glynodejs, iceydu, koshi, yukap, jiaguishan, yangfenglin |
| Keywords | E-Utils, ewt, EUtils |

## Links

- npm: https://www.npmjs.com/package/@ewtd/eutils
- npm.io page: https://npm.io/package/@ewtd/eutils

## Dependencies (1)

- [js-cookie](https://npm.io/package/js-cookie.md) ^2.2.0

## Recent versions

- 1.0.12 (latest) — 2024-08-29
- 1.0.11 — 2022-11-30
- 1.0.10 — 2022-10-25
- 1.0.9 — 2022-10-25
- 1.0.9-beta.1 — 2022-09-05
- 1.0.9-beta.0 — 2022-09-02
- 1.0.8 — 2022-04-20
- 1.0.9-cloud.0 — 2022-04-11
- 1.0.7 — 2021-10-19
- 1.0.6 — 2021-07-17
- 1.0.4 — 2021-07-17
- 1.0.3 — 2021-07-17
- 1.0.2 — 2021-07-17
- 1.0.1 — 2021-04-07

## README

# EUtils
EWT前端工具库

## 一、安装
### 1.  直接引入eUtils.min.js
``` html
  <script src="eUtils.min.js"></script>
  <script>
    var test = EUtils.test();
  </script>
```

### 2.  npm/yarn安装
    npm install --save @ewtd/eutils

## 二、使用
### 1.  整包引用
    import EUtils from '@ewtd/eutils';

    const demo = EUtils.test();
### 2.  引用具体某一函数
    import { durationFormat } from '@ewtd/eutils';

    const demo = durationFormat(60);

## 三、客户端按需打包配置
客户端工程中引入时，为了减小最终打包后的包体积，可引入按需打包技术，工程最终只会将你项目中用到的方法打包，未引用的方法将不会被打入最终的目标文件，配置方法如下：

### 1. 安装依赖
    为了实现按需打包，引入插件：babel-plugin-import

    npm install --save-dev babel-plugin-import

### 2. 配置.babelrc
    {
      "plugins":[["import",
        {
          "libraryName": "@ewtd/eutils",
          "libraryDirectory": "src",
          "camel2DashComponentName": false,
          "camel2UnderlineComponentName": false,
        }
      ]]
    }

## 四、文档

### 文档站

https://admin.mistong.com/eutils/manual/global.html

### 文档站更新

1. 执行命令 `yarn run docs` 生成最新文档到 `out` 目录;
2. 拷贝 `out` 目录下的内容到 `eutils-doc` 仓库的 `dist/manual` 目录下；
3. 打开 `eutils-doc` 仓库的 `release` 分支并提交代码到 git 仓库；

> `eutils-doc` git 仓库地址是 `http://git.mistong.com/commonjs/eutils-doc`
3. 前往自动发布平台搜索 `eutils-doc`，发布即可；

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