# uc-fun

> > 工具函数库

Latest version **1.3.4** (published 2026-01-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install uc-fun
pnpm add uc-fun
yarn add uc-fun
bun add uc-fun
```

## Health

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

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

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 1.3.4 |
| Published | 2026-01-20 |
| First published | 2019-06-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 211.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | lin-123 |
| Maintainers | lin-123 |

## Links

- npm: https://www.npmjs.com/package/uc-fun
- npm.io page: https://npm.io/package/uc-fun

## Recent versions

- 1.3.4 (latest) — 2026-01-20
- 1.3.3 — 2026-01-16
- 1.3.2 — 2025-12-17
- 1.3.1 — 2025-11-25
- 1.3.0 — 2025-07-28
- 1.2.8 — 2025-07-28
- 1.2.7 — 2025-07-28
- 1.2.6 — 2025-07-28
- 1.2.5 — 2025-07-28
- 1.2.4 — 2025-05-30
- 1.2.3 — 2025-04-21
- 1.2.2 — 2025-03-26
- 1.2.1 — 2025-03-26
- 1.2.0 — 2025-02-20
- 1.1.1 — 2025-02-16
- … 15 more at https://npm.io/package/uc-fun/versions

## README

# uc-fun

> 工具函数库

## USAGE
- `npm install -S uc-fun`
- `npm install babel-plugin-transform-imports --save-dev `
-  .babelrc plugin参数增加配置项
    ```json
    {
      // package.json
      "babel": {
        "plugins": [
          ["transform-imports",
            {
              "uc-fun": {
                "transform": "uc-fun/lib/${member}",
                "preventFullImport": true
              }
            }
          ]
        ]
      }
    }
    ```
- .eslintrc 配置。 当引入 uc-fun eslint报错的时候配置以下两行
    ```json
    {
      // ...
      rules: {
        // ...
        "import/no-unresolved": "off",
        "import/extensions": "off",
      }
    }
    ```
- `import { timeFormat } from 'uc-fun'; `

## CONTRIBUTION

### Scripts
- pnpm install
- npm start 本地开发启动
- npm test 测试
- npm run docs 生成文档
- npm run build 构建
- npm run release 发布

### Quick Start
- src 写函数逻辑
- test 中是单测逻辑， 写完执行 npm test

## REFERENCE
- `[ts]+[mocha]+[powser-assert]` https://github.com/power-assert-js/espower-typescript
- [typedoc](https://typedoc.org/guides/overview/)

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