
Security News
/Company News
Socket Is Sponsoring Composer and Packagist
Socket has joined the new Composer and Packagist sponsorship program as a launch sponsor, supporting the team that keeps PHP's package ecosystem secure.
@rzl-zone/utils-js
Advanced tools
A modern, lightweight set of JavaScript utility functions with TypeScript support for everyday development, crafted to enhance code readability and maintainability.
A lightweight, modern TypeScript utility library for Node.js & browser (via bundlers like Webpack, Turbopack, Rollup, esbuild, and higher-level tools like Vite, tsup and tsdown).
It provides reusable helpers to simplify everyday JavaScript and TypeScript tasks projects.
Built with ❤️ by @rzl-zone.
Node.js ≥18.18.0
This package leverages modern JavaScript & TypeScript features that require Node.js version 18.18.0.
Works with:
TypeScript Build Info:
ES2022.ES2022.bundler.ℹ️ Note:
These TypeScript settings are used to build the package, consumers do not need to match these settings unless they plan to build or modify the source code.
npm install @rzl-zone/utils-js@latest
yarn add @rzl-zone/utils-js@latest
pnpm add @rzl-zone/utils-js@latest
⚠️ Starting from version
3.13.0, the following Next.js entry points were removed from@rzl-zone/utils-jsand migrated into the dedicated package@rzl-zone/next-kit.Migrated entry points:
@rzl-zone/utils-js/next➔@rzl-zone/next-kit/utils@rzl-zone/utils-js/next/server➔@rzl-zone/next-kit/utils/server
import { /* … */ } from "@rzl-zone/utils-js/assertions";
import { /* … */ } from "@rzl-zone/utils-js/conversions";
import { /* … */ } from "@rzl-zone/utils-js/errors";
import { /* … */ } from "@rzl-zone/utils-js/events";
import { /* … */ } from "@rzl-zone/utils-js/formatters";
import { /* … */ } from "@rzl-zone/utils-js/generators";
import { /* … */ } from "@rzl-zone/utils-js/operations";
import { /* … */ } from "@rzl-zone/utils-js/parsers";
import { /* … */ } from "@rzl-zone/utils-js/predicates";
import { /* … */ } from "@rzl-zone/utils-js/promises";
import { /* … */ } from "@rzl-zone/utils-js/strings";
import { /* … */ } from "@rzl-zone/utils-js/tailwind";
import { /* … */ } from "@rzl-zone/utils-js/urls";
{ } or right after the package path @rzl-zone/utils-js/<put-cursor-here>, then press Ctrl+Space (Windows/Linux) or Cmd+Space (macOS), or use your editor’s autocomplete shortcut, to see all available functions and types with full TSDoc hints.<!-- jsDelivr -->
<script src="https://cdn.jsdelivr.net/npm/@rzl-zone/utils-js@latest"></script>
<!-- unpkg -->
<script src="https://unpkg.com/@rzl-zone/utils-js@latest"></script>
⚠️ Note:
When using the library via CDN in the browser:
- Always include first the
<script/>tag before your own scripts when using the CDN version.- Some Node.js-specific utilities may not be available, e.g.:
- Category utils of
tailwind.- Any
server-onlyfeatures will not be available.- The global object provided is
RzlUtilsJs.- The CDN bundle is ~373KB+ minified, for production, consider using bundlers or npm packages for smaller size and tree-shaking.
Improve TypeScript editor import suggestions for @rzl-zone/utils-js, so all functions, types, and modules appear instantly when triggering autocomplete — press Ctrl+Space (Windows/Linux), ⌘+Space (macOS), or your editor’s autocomplete shortcut.
This works across modern TypeScript-supported editors (e.g., VSCode, WebStorm, Vim extensions, NeoVim LSP, Cursor) without requiring triple-slash references — the package is fully indexed automatically through your editor’s TypeScript language service, follow steps:
1️⃣ Install @rzl-zone/utils-js.
2️⃣ Create a types folder.
Inside your project root, make a folder called types:
project-root/
├─ src/
├─ types/
│ └─ index.d.ts
├─ tsconfig.json
└─ jsconfig.json
3️⃣ Add the global reference file.
Create types/index.d.ts with this content:
/// <reference types="@rzl-zone/utils-js/.references" />
You can add more references here if needed, for example:
/// <reference types="@rzl-zone/utils-js/.references" />
// eg more references (if needed):
/// <reference types="node" />
/// <reference types="react" />
4️⃣ Update tsconfig.json.
Make sure add types folder to "include", so TypeScript automatically picks up your types folder:
// tsconfig.json
{
"compilerOptions": {
"strict": true,
// other your config...
},
"include": ["src", "types"]
// other your config...
}
5️⃣ Update jsconfig.json (for JavaScript projects).
If you also work with JS, do the same:
// jsconfig.json
{
"compilerOptions": {
"checkJs": true, // Optional, enables type checking
// other your config...
},
"include": ["src", "types"]
// other your config...
}
ℹ️ Tip: For JS projects, consider adding
"checkJs": truefor better IntelliSense.
6️⃣ Restart your editor/IDE.
@rzl-zone/utils-js will appear instantly in autocomplete.import { isServer } from "@rzl-zone/utils-js/predicates";
console.log(isServer());
// ➔ `true` if running on server-side, `false` if in browser.
Help support development: 👉 Become a sponsor.
See CHANGELOG.
See CONTRIBUTING.
Please report issues to rzlzone.dev@gmail.com.
- Rzl App.
- All Contributors.
The MIT License (MIT).
Please see License File for more information.
✅ Enjoy using @rzl-zone/utils-js?
Star the monorepo ⭐ and share it with other JavaScript developers!
📦 Explore other packages under @rzl-zone
FAQs
A modern, lightweight set of JavaScript utility functions with TypeScript support for everyday development, crafted to enhance code readability and maintainability.
The npm package @rzl-zone/utils-js receives a total of 209 weekly downloads. As such, @rzl-zone/utils-js popularity was classified as not popular.
We found that @rzl-zone/utils-js demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
/Company News
Socket has joined the new Composer and Packagist sponsorship program as a launch sponsor, supporting the team that keeps PHP's package ecosystem secure.

Research
/Security News
Benign-looking npm packages split malicious functionality across a dependency chain that deploys a cross-platform RAT targeting Alibaba developers.

Research
/Security News
Two Joyfill npm beta releases contain an import-time implant that uses blockchain transactions to retrieve a remote-access trojan.