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. 46 modules. Import exactly what you need.

View all modules →

Sibling projects

More from @rtorcato — same conventions, same release pipeline.