A modern, lightweight utility library for JavaScript and TypeScript.
npx @cyref/jsCyrefJS is a modern, lightweight utility library for JavaScript and TypeScript, built to make everyday development simpler, cleaner, and more productive.
Clean and intuitive utilities designed to keep your code simple and readable.
Lightweight utilities with minimal overhead, built for modern applications.
Useful building blocks that fit naturally into different projects and workflows.
CyrefJS provides small, focused utilities that help you replace repetitive code with clean and readable solutions.
const chunks: number[][] = [];
for (let i = 0; i < numbers.length; i += 3) {
chunks.push(numbers.slice(i, i + 3));
}import { chunk } from "@cyref/js";
const chunks = chunk(numbers, 3);A focused collection of lightweight utilities designed to make everyday JavaScript and TypeScript development simpler.
Practical utilities for working with arrays and collections.
Simple tools for transforming, formatting, and working with strings.
Useful helpers for reading, transforming, and managing objects.
Small utilities for calculations, ranges, and numeric operations.
Convenient helpers for working with dates and time.
Performance-focused utilities for controlling function execution.
Clear and reusable helpers for common JavaScript type checks.
Utilities for parsing, building, and working with URLs.
Practical helpers for validating common values and formats.
Install CyrefJS, import the utilities you need, and start writing cleaner JavaScript and TypeScript.
Add the package to your project with a single command.
$ npm install @cyref/jsImport a utility and use it wherever you need it.
import { chunk } from "@cyref/js";const numbers = [1, 2, 3, 4, 5, 6, 7];const result = chunk(numbers, 3);console.log(result);[
[1, 2, 3],
[4, 5, 6],
[7]
]Start using focused, lightweight utilities designed to make everyday development simpler and more enjoyable.