Rare find

Ow. Check that function inputs are the right type before your code breaks.

sindresorhus.com/ow

Vaya's read on this project

Problem, audience, market, and the verdict — sign in to see it.

Updates

October 2025
  • Release —
  • 3.1.1
  • Prevent publishing broken builds
  • Fix CI
  • Release —
  • 3.1.0
  • Update dependencies
  • Add tests for const value validation patterns
  • Add `ow.validate()` method that returns validation results without th…
  • Fix `ow.any()` not working in collection shape methods
  • Fix type narrowing not working with reusable validators
  • Add `.absent` modifier for optional object properties
  • Add `.custom()` method
September 2025
  • Add `isPredicate` function for programmatic predicate identification
  • Add `string.email` predicate
  • Add `nullable` modifier
  • Add 'Why use Ow?' section and practical examples
  • Release —
  • 3.0.0
  • Require Node.js 20
  • Add TypeScript literal type narrowing for `string.equals()` and `stri…
  • Improve performance of shape validation with optional properties
  • Use modern TypeScript syntax
May 2024
  • Release —
January 2023
  • Release —
October 2022
  • Release —
  • Release —
June 2022
  • Release —
October 2021
  • Release —
September 2021
  • Release —