# @acrool/js-utils

> Common javascript utils methods for project development

Latest version **3.2.28** (published 2025-11-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install @acrool/js-utils
pnpm add @acrool/js-utils
yarn add @acrool/js-utils
bun add @acrool/js-utils
```

## Health

**Score 45/100 (D)** — status: stable.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 3.2.28 |
| Published | 2025-11-16 |
| First published | 2024-07-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=14 |
| Dependencies | 2 |
| Unpacked size | 104.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 15 |
| Maintainers | imagine10255, garychien |
| Keywords | typescript, js-utils |

## Links

- npm: https://www.npmjs.com/package/@acrool/js-utils
- Repository: https://github.com/acrool/acrool-js-utils
- Homepage: https://github.com/acrool/acrool-js-utils#readme
- Issues: https://github.com/acrool/acrool-js-utils/issues
- npm.io page: https://npm.io/package/@acrool/js-utils

## Dependencies (2)

- [dayjs](https://npm.io/package/dayjs.md) ^1.x
- [big.js](https://npm.io/package/big.js.md) ^7.0.1

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

- 3.2.28 (latest) — 2025-11-16
- 3.2.26 — 2025-09-16
- 3.2.26-alpha.1 — 2025-09-16
- 3.2.26-alpha.0 — 2025-09-16
- 3.2.25 — 2025-05-21
- 3.2.25-alpha.0 — 2025-05-20
- 3.2.24 — 2025-05-20
- 3.2.23 — 2025-05-19
- 3.2.23-alpha.0 — 2025-05-19
- 3.2.22 — 2025-05-16
- 3.2.21 — 2025-05-16
- 3.2.21-alpha.1 — 2025-05-15
- 3.2.21-alpha.0 — 2025-05-15
- 3.2.20 — 2025-05-08
- 3.2.20-alpha.2 — 2025-04-30
- … 36 more at https://npm.io/package/@acrool/js-utils/versions

## README

# Acrool JS Utils

<a href="https://acrool-js-utils.pages.dev/" title="Acrool JS Utils - This is a commonly used JS toolbox, designed to facilitate rapid daily development.">
    <img src="https://raw.githubusercontent.com/acrool/acrool-js-utils/main/example/public/og.webp" alt="Acrool JS Utils Logo"/>
</a>

<p align="center">
    This is a commonly used JS toolbox, designed to facilitate rapid daily development.
</p>

<div align="center">

[![NPM](https://img.shields.io/npm/v/@acrool/js-utils.svg?style=for-the-badge)](https://www.npmjs.com/package/@acrool/js-utils)
[![npm](https://img.shields.io/npm/l/@acrool/js-utils?style=for-the-badge)](https://github.com/acrool/acrool-js-utils/blob/main/LICENSE)

[![npm downloads](https://img.shields.io/npm/dm/@acrool/js-utils.svg?style=for-the-badge)](https://www.npmjs.com/package/@acrool/js-utils)
[![npm](https://img.shields.io/npm/dt/@acrool/js-utils.svg?style=for-the-badge)](https://www.npmjs.com/package/@acrool/js-utils)

</div>


## Features

type use `strictNullChecks` and `strictNullChecks`

- **[Array](/src/array)** - Methods related to handling arrays, such as groupBy, unique, deleting arrays, and immutable methods for adding to arrays.
- **[Browser](/src/browser)** - Queries related to browser functionalities, such as console.log, scroll height, window clientHeight.
- **[Convert](/src/convert)** - Type conversion, color code format conversion, file to base64, base64 to blob.
- **[Date](/src/date)** - Handling date ranges, simplifying date display, converting total seconds into hours, minutes, and seconds, etc.
- **[Dom](/src/dom)** - Handling functions related to the DOM, such as manipulating Class, inserting iFrame, inserting Script, copying to clipboard, downloading blob.
- **[Equal](/src/equal)** - Determining if it's empty (including 0, empty array, blank string, null, empty object), whether it's JSON, and Compose matching.
- **[Number](/src/number)** - Handling currency formatting, decimal point retention, and obtaining the difference between two ranges.
- **[Object](/src/object)** - Handling enhanced type support for Object.keys, retaining true properties in an Object, inverting objects, and so on.
- **[String](/src/string)** - Processing of strings, such as case conversion to camel case, enhanced string splitting, and so on.
- **[Uri](/src/uri)** - Handling URL-related tasks, such as encoding & decoding QueryString, obtaining the main domain, subdomain, and so on.

## Installation

date dependencies [dayjs](https://day.js.org/) library

```bash
yarn add @acrool/js-utils
```

## Examples

These are examples of imports for various types. Refer to the documentation inside each library for other methods.

```tsx
import {groupBy} from '@acrool/js-utils/array';
import {getScrollHeight} from '@acrool/js-utils/browser';
import {emptyToNull} from '@acrool/js-utils/convert';
import {simpleDate} from '@acrool/js-utils/date';
import {copyToClipboard} from '@acrool/js-utils/dom';
import {isEmpty, isNotEmpty} from '@acrool/js-utils/equal';
import {formatCurrency} from '@acrool/js-utils/number';
import {objectKeys} from '@acrool/js-utils/object';
import {removeHtmlTag} from '@acrool/js-utils/string';
import {decodeQueryString} from '@acrool/js-utils/uri';
import {delay} from '@acrool/js-utils/prmoise';
```

## Add module
./build-post-processors.js


# Publishing

```bash
$ yarn build && npm publish ./dist --access=public
```

## License

MIT © [Acrool](https://github.com/acrool) & [Imagine](https://github.com/imagine10255)

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