# @lazy-cjk/str-util-trim

> Trim whitespace and special characters from strings with customizable options

Latest version **1.0.7** (published 2026-09-11) · ISC license · 0 weekly downloads

## Install

```sh
npm install @lazy-cjk/str-util-trim
pnpm add @lazy-cjk/str-util-trim
yarn add @lazy-cjk/str-util-trim
bun add @lazy-cjk/str-util-trim
```

## Health

**Score 70/100 (B)** — status: active.

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2026-09-11 |
| First published | 2024-02-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 26.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 26 |
| Author | bluelovers |
| Maintainers | bluelovers |
| Keywords | trim, string, whitespace, strip, sanitize, util, create-by-yarn-tool, create-by-tsdx |

## Links

- npm: https://www.npmjs.com/package/@lazy-cjk/str-util-trim
- Repository: https://github.com/bluelovers/ws-string
- Homepage: https://github.com/bluelovers/ws-string/tree/master/packages/@lazy-cjk/str-util-trim#readme
- Issues: https://github.com/bluelovers/ws-string/issues
- npm.io page: https://npm.io/package/@lazy-cjk/str-util-trim

## 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

- 1.0.7 (latest) — 2026-09-11
- 1.0.6 — 2026-09-11
- 1.0.5 — 2026-09-11
- 1.0.1 — 2024-02-03

## README

# @lazy-cjk/str-util-trim

> Trim whitespace and special characters from strings with customizable options

## 安裝 (Installation)

```bash
# 使用 yarn / Using yarn
yarn add @lazy-cjk/str-util-trim

# 使用 yarn-tool / Using yarn-tool
yarn-tool add @lazy-cjk/str-util-trim
# yt 是 yarn-tool 的別名 / yt is an alias for yarn-tool
yt add @lazy-cjk/str-util-trim

# 使用 pnpm / Using pnpm
pnpm add @lazy-cjk/str-util-trim

# 使用 npm / Using npm
npm install @lazy-cjk/str-util-trim
```

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