# @just4/util

> Utility functions and classes.

Latest version **2.0.0** (published 2024-10-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install @just4/util
pnpm add @just4/util
yarn add @just4/util
bun add @just4/util
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2024-10-11 |
| First published | 2021-04-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 9.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Mr.Luo |
| Maintainers | heeroluo |
| Keywords | utility, util |

## Links

- npm: https://www.npmjs.com/package/@just4/util
- Repository: https://github.com/heeroluo/just4
- Homepage: https://github.com/heeroluo/just4#readme
- Issues: https://github.com/heeroluo/just4/issues
- npm.io page: https://npm.io/package/@just4/util

## Dependencies (1)

- [mitt](https://npm.io/package/mitt.md) ^3.0.1

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2024-10-11
- 0.1.0-beta.1 (beta) — 2021-04-06
- 1.1.0 — 2023-09-06
- 1.0.1 — 2023-07-10
- 1.0.0 — 2023-01-27
- 0.2.0-beta.1 — 2022-08-25
- 0.1.0-beta.3 — 2021-12-07
- 0.1.0-beta.2 — 2021-04-10

## README

# @just4/util

本程序包主要为 Just4 的其他包提供基础的工具方法和工具类。包括：

- 数组操作。
- 对象操作。
- 日期操作。
- 类型判断。
- 事件操作。

## 安装

```bash
npm i @just4/util
```

## 调用

工具函数和工具类的功能及用法都较为简单，可参阅[API 文档](https://heeroluo.github.io/just4/util/modules/index.html)中的代码示例。

## Changelog

### v2.0.0

- 新增 event 模块，目前仅提供 `PubSub` 类。

### v1.1.0

- 新增 date 模块，目前仅有 `addRelativeTime` 一个方法。

### v1.0.1

- package.json 中增加 `main` 和 `miniprogram` 两个字段。

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