Skip to main content
js-common — common JavaScript utilities and helpers for modern projects. Simple. Reusable. Reliable.
app.ts
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-common
Ultra-lightweight
Ultra-lightweight
~277 B core bundle; 50–200 B per module.
Tree-shakeable
Tree-shakeable
Named subpath exports — ship only what you import.
TypeScript-first
TypeScript-first
Strict types, generics preserved, JSDoc-rich in your IDE.
CLI included
CLI included
Run utilities from your terminal via npx.

Everything in one place

Nine focused categories. 44 modules. Import exactly what you need.

View all modules →

Use with AI

One skill teaches your coding agent the subpath-import rules, the three error idioms and which modules are Node-only.

Read the rules →
Any coding agent
Pull the skill into any tool the skills CLI supports.
npx skills add https://github.com/rtorcato/js-common \
  --skill js-common
Claude Code
The repo is its own plugin marketplace — add it, then install the skill.
/plugin marketplace add rtorcato/js-common
/plugin install js-common@js-common
Cursor, Copilot, Codex
They read 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.