# @iceywu/utils

> A public TypeScript utility library with curated root exports and explicit module subpaths

Latest version **0.1.0** (published 2026-05-04) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 65/100 (B)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2026-05-04 |
| First published | 2023-12-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 176 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Icey Wu |
| Maintainers | suqiqi |
| Keywords | typescript, utilities, promise, type-guards |

## Links

- npm: https://www.npmjs.com/package/@iceywu/utils
- Repository: https://github.com/IceyWu/iceywu-devkit
- Homepage: https://github.com/IceyWu/iceywu-devkit/tree/main/packages/utils#readme
- Issues: https://github.com/IceyWu/iceywu-devkit/issues
- npm.io page: https://npm.io/package/@iceywu/utils

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2026-05-04
- 0.0.54 — 2026-03-18
- 0.0.53 — 2026-03-18
- 0.0.52 — 2026-03-12
- 0.0.51 — 2025-05-26
- 0.0.50 — 2025-04-16
- 0.0.49 — 2024-11-26
- 0.0.48 — 2024-11-09
- 0.0.47 — 2024-10-19
- 0.0.46 — 2024-08-11
- 0.0.45 — 2024-07-29
- 0.0.44 — 2024-07-24
- 0.0.43 — 2024-07-21
- 0.0.42 — 2024-07-04
- 0.0.41 — 2024-06-07
- … 12 more at https://npm.io/package/@iceywu/utils/versions

## README

# @iceywu/utils

[![NPM version](https://img.shields.io/npm/v/@iceywu/utils?color=a1b858&label=)](https://www.npmjs.com/package/@iceywu/utils)
[![Docs](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@iceywu/utils)

TypeScript utility library.

## Playground

Try the interactive playground online:

- <https://iceywu-devkit.netlify.app/>

## Installation

```bash
pnpm add @iceywu/utils
# or
npm install @iceywu/utils
# or
yarn add @iceywu/utils
```

## Quick Start

```ts
import { to } from "@iceywu/utils";
import { diff } from "@iceywu/utils/array";
import { isString } from "@iceywu/utils/is";

const [error, response] = await to(fetch("https://example.com"));

if (!error && response && isString(response.url)) {
  console.log(response.url);
}

console.log(diff([1, 2, 3], [2]));
```

## Public API

Root:

- `to`
- `toTry`
- `toPro`
- public types re-exported from `@iceywu/utils/types`

Subpaths:

- `@iceywu/utils/promise`
- `@iceywu/utils/is`
- `@iceywu/utils/shared`
- `@iceywu/utils/types`
- `@iceywu/utils/array`
- `@iceywu/utils/async-task`
- `@iceywu/utils/download`
- `@iceywu/utils/lodash-lite`
- `@iceywu/utils/log`
- `@iceywu/utils/network`
- `@iceywu/utils/object`
- `@iceywu/utils/tools`
- `@iceywu/utils/to-pro`

## Legacy Import Mapping

- `src/to/*` -> `@iceywu/utils` or `@iceywu/utils/to-pro`
- `src/array/*` -> `@iceywu/utils/array`
- `src/asyncTask/*` -> `@iceywu/utils/async-task`
- `src/download/*` -> `@iceywu/utils/download`
- `src/is/*` -> `@iceywu/utils/is`
- `src/lodash-lite/*` -> `@iceywu/utils/lodash-lite`
- `src/log/*` -> `@iceywu/utils/log`
- `src/network/*` -> `@iceywu/utils/network`
- `src/object/*` -> `@iceywu/utils/object`
- `src/shared/*` -> `@iceywu/utils/shared`
- `src/tools/*` -> `@iceywu/utils/tools`
- `src/types.ts` -> `@iceywu/utils/types`

## Validation

```bash
pnpm --filter @iceywu/utils build
pnpm --filter @iceywu/utils test
pnpm --filter @iceywu/utils typecheck
pnpm --filter @iceywu/utils check:package
```

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