
import {
isEmpty,
toKebabCase,
sleep,
deepClone,
} from '@rtorcato/js-common'
const data = { a: 1 }
const copy = deepClone(data)
await sleep(200)
toKebabCase('Hello World')
// 'hello-world'npm install @rtorcato/js-commonEverything in one place
Nine focused categories. 44 modules. Import exactly what you need.
Dates, times and timezones.
Arithmetic, rounding and randomness.
Formatting, slugs, HTML and i18n.
Passwords, emails, URLs and guards.
Arrays, objects, maps and JSON.
Promises, debounce, retries and aborts.
Env, OS, Node and process helpers.
Pino logger and console capture.
Colors, crypto, currency, files and more.
Use with AI
One skill teaches your coding agent the subpath-import rules, the three error idioms and which modules are Node-only.
npx skills add https://github.com/rtorcato/js-common \ --skill js-common
/plugin marketplace add rtorcato/js-common /plugin install js-common@js-common
AGENTS.md. It ships in the npm tarball, so it is already in your node_modules.node_modules/@rtorcato/js-common/AGENTS.md
Sibling projects
More from @rtorcato — same conventions, same release pipeline.
Framework-agnostic building blocks for Node.js APIs — errors, auth, rate limiting, OpenAPI, Express + Hono.
Tree-shakeable TypeScript wrappers around 40+ browser Web APIs — one subpath per spec.
Shared, tree-shakeable TypeScript database utilities for Node projects.
Typed TypeScript wrappers and helpers for Cloudflare bindings and APIs.
Published React 19 component library — shared UI primitives.
SwiftUI package of reusable views and helpers to build apps faster.
Shared, tree-shakeable TypeScript helpers for Supabase — client, auth, and database utilities.
One wizard to scaffold TypeScript, linting, testing, and releases for any JS project.
Production-grade database schema deployment with the ergonomics of a JSX component.
