# @tntd/utils

> TNTD前端业务代码工具库

Latest version **1.4.7** (published 2026-07-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install @tntd/utils
pnpm add @tntd/utils
yarn add @tntd/utils
bun add @tntd/utils
```

## Health

**Score 55/100 (C)** — status: active.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 1.4.7 |
| Published | 2026-07-06 |
| First published | 2020-03-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 138.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | td-tnt, bruceliu68, bernardzhang, mizy, zhouzefei, xiaofei.wang, anthonyli, popoqaq, ezios, z337198954, kobingogo, mcfly001, ankitter, mgcr, a1226062445 |

## Links

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

## Dependencies (2)

- [file-saver](https://npm.io/package/file-saver.md) ^2.0.2
- [universal-cookie](https://npm.io/package/universal-cookie.md) ^4.0.4

## Recent versions

- 1.4.7 (latest) — 2026-07-06
- 1.4.6 — 2026-05-28
- 1.4.5 — 2026-05-28
- 1.4.4 — 2026-05-28
- 1.4.3 — 2026-05-11
- 1.4.2 — 2026-04-29
- 1.4.1 — 2026-04-09
- 1.4.0 — 2026-04-09
- 1.3.0 — 2026-03-26
- 1.2.0 — 2026-03-26
- 1.1.9 — 2026-03-19
- 1.1.8 — 2026-02-06
- 1.1.7 — 2026-02-06
- 1.1.6 — 2026-01-29
- 1.1.5 — 2026-01-28
- … 29 more at https://npm.io/package/@tntd/utils/versions

## README

# @tntd/utils
TNTD前端业务代码工具库，支持TS引用

> 目的：高效率完成前端业务代码

我们把业务开发中常用的工具类函数，统一封装到`@tntd/utils`包下，以提高开发效率。

## 安装使用
```bash
$ npm install --save-dev @tntd/utils
```
````javascript
import { getCookie } from "@tntd/utils";

const cookie = getCookie("test");
```` 

## 支持按需加载(推荐)
安装babel插件
```bash
$ npm install babel-plugin-tntd-utils --save-dev
```
.babelrc中添加如下配置即可
```json
"plugins": [
    [
      "babel-plugin-tntd-utils",
      {
        "library": ["@tntd/utils"]
      }
    ],
]
```

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