is-kit

Lightweight, zero-dependency toolkit for building isFoo style type guards in TypeScript. Runtime-safe 🛡️, composable 🧩, and ergonomic ✨.

👉 See full document

Why?

Tired of writing the same isFoo again and again? Let is-kit do it for you:

  • Less boilerplate
  • Type-safe
  • Composable
  • Zero-dependency

☕ Grab a coffee, let is-kit do the boring work.

Install

Node via npm

pnpm add is-kit
# or
bun add is-kit
# or
npm i is-kit
# or
yarn add is-kit

ESM and CJS builds are provided for npm consumers. Types are bundled.

JSR (TypeScript source)

// Deno/Bun/JSR-aware tooling
import { define, and, or } from 'jsr:@nyaomaru/is-kit';

Quick start

Build is functions from tiny, composable pieces:

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help