# @deot/helper-utils

> 通用 JavaScript / TypeScript 工具集合，覆盖函数控制、数据处理、浏览器调度、图片转换和 Promise 辅助。

Latest version **1.1.8** (published 2026-04-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @deot/helper-utils
pnpm add @deot/helper-utils
yarn add @deot/helper-utils
bun add @deot/helper-utils
```

## Health

**Score 45/100 (D)** — status: active.

Positive: no vulnerabilities.

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

## Facts

| | |
|---|---|
| Version | 1.1.8 |
| Published | 2026-04-07 |
| First published | 2023-07-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | deot |

## Links

- npm: https://www.npmjs.com/package/@deot/helper-utils
- npm.io page: https://npm.io/package/@deot/helper-utils

## Recent versions

- 1.1.8 (latest) — 2026-04-07
- 1.1.7 — 2026-03-05
- 1.1.6 — 2026-03-02
- 1.1.5 — 2025-10-08
- 1.1.4 — 2024-06-27
- 1.1.3 — 2023-11-22
- 1.1.2 — 2023-11-16
- 1.1.1 — 2023-08-25
- 1.1.0 — 2023-08-24
- 1.0.3 — 2023-08-21
- 1.0.2 — 2023-08-17
- 1.0.1 — 2023-07-13

## README

# @deot/helper-utils

### `Utils`
```js
import * as Utils from '@deot/helper-utils';
```

```js
// or
import { Utils } from '@deot/helper';
```

| 方法                                                                 | 说明                             |
| ------------------------------------------------------------------ | ------------------------------ |
| [asterisk](./src/asterisk.ts)                                      | 文字加`*`                         |
| [autoCatch](./src/auto-catch.ts)                                   | 捕获异常                           |
| [canvasToImage](./src/canvas-to-image.ts)                          | 转图片信息                          |
| [cloneDeepEasier](./src/clone-deep-easier.ts)                      | 深拷贝                            |
| [compressImage](./src/compress-image.ts)                           | 压缩图片                           |
| [dataURLToFile](./src/dataURL-to-file.ts)                          | base64转文件                      |
| [debounce](./src/debounce.ts)                                      | 防抖                             |
| [def](./src/def.ts)                                                | 定义                             |
| [flattenDecodeURIComponent](./src/flatten-decode-uri-component.ts) | 深度解码                           |
| [flattenJSONParse](./src/flatten-json-parse.ts)                    | 深度反序列化                         |
| [getPropByPath](./src/get-prop-by-path.ts)                         | 根据路径找值                         |
| [getUid](./src/get-uid.ts)                                         | 生成唯一id                         |
| [hasOwn](./src/has-own.ts)                                         | 是否在原型上                         |
| [numberToUnit](./src/number-to-unit.ts)                            | 大数据转成中文单位                      |
| [preZero](./src/pre-zero.ts)                                       | 加零                             |
| [raf](./src/raf.ts)                                                | raf                            |
| [random](./src/random.ts)                                          | `range` 和 `probs`              |
| [sleep](./src/sleep.ts)                                            | 等待                             |
| [throttle](./src/throttle.ts)                                      | 节流                             |
| [genterateString](./src/genterate-string.ts)                       | 随机生成指定长度的字符串                   |
| [toPromise](./src/to-promise.ts)                                   | 让返回对象可操作且能直接使用`await instance` |

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